User Tools

Site Tools


listalluserswiththeirusernameandfullname

List All users with their username and full name

cat /etc/passwd | cut -d: -f1,5 | sed s/:/" "/g

“s/” denotes the replace the next thing the “:” shows what to replace, then the “ ” shows what to replace with and the /g at the end means replace all instances on the line, not jus tthe first one. so that will basically change all colons to spaces on any lines returned.

– Main.FredPettis - 25 Feb 2010

listalluserswiththeirusernameandfullname.txt · Last modified: 2013/01/28 04:29 by 127.0.0.1