Which command is used to view an account's password status in a Linux system?

Disable ads (and more) with a premium pass for a one time $4.99 payment

Boost your Linux skills with the CompTIA Linux+ Certification Exam simulator. Engage with multiple choice questions and detailed feedback. Master Linux concepts and prepare for your exam with confidence!

The command that is commonly used to view an account's password status in a Linux system is referred to as "chage." This command is specifically designed for changing the user password expiry information and for displaying details related to password aging.

When you use the "chage" command without any additional parameters, it provides a summary of the password expiration settings for a user account, including information such as the date of the last password change, the minimum and maximum number of days between password changes, and the warning period before a password expires. This makes it an essential tool for system administrators who need to monitor and manage password policies effectively.

In contrast, the other commands listed have different functionalities or are not standard commands in Linux. For instance, "passchk" is not a standard command and does not exist in typical Linux distributions. The "passwd -s" command exists but is limited in functionality as it primarily provides the password status for user accounts in a simplified form; it does not give detailed aging information. The "getpasswd" command is also not a standard command used in typical Linux environments. Thus, "chage" is the most appropriate and widely recognized command for viewing password status in a Linux system.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy