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
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
There is no command just use cut or anything else like awk:
Edit: assuming that your usernames are stored in /etc/passwd and not in central database such as LDAP.Code:cut -d: -f1 /etc/passwd
All [Solved] threads are closed by mods / admin to avoid spam issues. See Howto mark a thread as [Solved]
There are currently 1 users browsing this thread. (0 members and 1 guests)