This shows you the differences between two versions of the page.
listalluserswiththeirusernameandfullname [2013/01/27 21:29] (current)
|Line 1:||Line 1:|
|+||====== List All users with their username and full name ======|
|+||<file>cat /etc/passwd | cut -d: -f1,5 | sed s/:/" "/g</file>|
|+||"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|