Want a list of users on your FreeBSD?
If you ever want a list of users on your system, use this little script:cat /etc/passwd | cut -d: -f1 | grep -v \#
The cut command selects portions of a file. Use ":" as the delimiting character. And we want only the first field. The grep eliminates lines with # in them, which normally appear at the start of the password file. Exercises for the interested and motivated:
- try the above command without the grep
- remove the \ before the #
- try -f5 instead of -f1.
Hope that helps.
Thank's to : The FreeBSD Diary
Add this page to your favorite Social Bookmarking
About You :
IP Address :
38.107.191.87
United States
Browser :
Unknown
Operating System :
Unknown
38.107.191.87
Browser :
Operating System :
Keep This Site Alive
Your Comments on Tips and Tricks:
- Update Locate Database on Free...
We are specialize in Nike shox: www.sportshoes007.... More... - Internet Explorer 7 Hangs
waduh thanks banget yah, saya juga mengalami hal y... More... - Update Locate Database on Free...
For me (FreeBSD 7.1) it is /usr/libexec/locate.upd... More... - Update Locate Database on Free...
Terimakasih banyak !! :lol: More...

