Results 1 to 2 of 2

Thread: Linux list all the users (accounts)

  1. #1
    Senior Member vamsi's Avatar
    Join Date
    Nov 2009
    Location
    Bangalore / India
    Posts
    263
    Thanks
    138
    Thanked 14 Times in 12 Posts
    Rep Power
    6

    Default Linux list all the users (accounts)

    Hi, is there any command to list all the users in linux ?
    I know about querying this /etc/passwd and getting the info..
    but is there any direct command to get all the users ??

    Thanks
    shebangs

  2. #2
    Never say die nixcraft's Avatar
    Join Date
    Jan 2005
    Location
    BIOS
    Posts
    4,515
    Thanks
    17
    Thanked 814 Times in 511 Posts
    Rep Power
    10

    Default

    There is no command just use cut or anything else like awk:
    Code:
     cut -d: -f1 /etc/passwd
    Edit: assuming that your usernames are stored in /etc/passwd and not in central database such as LDAP.
    All [Solved] threads are closed by mods / admin to avoid spam issues. See Howto mark a thread as [Solved]


Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Postfix user accounts
    By mewrei in forum Mail Servers
    Replies: 4
    Last Post: 1st November 2009, 04:39 AM
  2. List Services Linux Running
    By raj in forum Getting started tutorials
    Replies: 8
    Last Post: 4th October 2009, 07:07 AM
  3. How to view the list of login users
    By enochalbert in forum All about FreeBSD/OpenBSD/NetBSD
    Replies: 2
    Last Post: 24th April 2009, 10:40 PM
  4. Replies: 1
    Last Post: 2nd March 2009, 04:02 PM
  5. Linux list directories and files
    By raj in forum Getting started tutorials
    Replies: 0
    Last Post: 5th May 2007, 01:05 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •