Quick Unix question

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • X37375787
    • Jul 2026

    #1

    Quick Unix question

    How do you show all users on a machine?

    I assume it's done with 'pw' but I couldn't find any info in the man pages.
  • fris
    Too lazy to set a custom title
    • Aug 2002
    • 55693

    #2
    you could look at the /etc/passwd file
    Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.

    Comment

    • etech
      Confirmed User
      • Feb 2004
      • 1148

      #3
      w

      Comment

      • etech
        Confirmed User
        • Feb 2004
        • 1148

        #4
        Originally posted by etech
        w
        When you type w in the command line, it will give you a list of all logged in users.

        If you want a complete list, just type,
        less /etc/passwd

        Comment

        • X37375787

          #5
          Originally posted by fris
          you could look at the /etc/passwd file

          thanks!

          Comment

          • ldinternet
            Confirmed User
            • Apr 2001
            • 8245

            #6
            Hack that shit, son.

            Comment

            Working...