How to view /etc/passwd file?

QuestionsQuestions8 SkillsProUser Account ManagementSep, 15 2025
0175

To view the contents of the /etc/passwd file, you can use the cat, less, or more command in the terminal. Here are examples of how to do this:

  1. Using cat:

    cat /etc/passwd
  2. Using less:

    less /etc/passwd
  3. Using more:

    more /etc/passwd

These commands will display the contents of the /etc/passwd file. Note that you may need superuser privileges to view this file on some systems, but typically, it is readable by all users.

0 Comments

no data
Be the first to share your comment!