diff --git a/README.md b/README.md index 2989ef7..85e818b 100644 --- a/README.md +++ b/README.md @@ -211,6 +211,7 @@ smart people at [Hashrocket](http://hashrocket.com/). - [Kill Everything Running On A Certain Port](unix/kill-everything-running-on-a-certain-port.md) - [Killing A Frozen SSH Session](unix/killing-a-frozen-ssh-session.md) - [List All The Say Voices](unix/list-all-the-say-voices.md) +- [List All Users](unix/list-all-users.md) - [Only Show The Matches](unix/only-show-the-matches.md) - [Repeat Yourself](unix/repeat-yourself.md) - [Saying Yes](unix/saying-yes.md) diff --git a/unix/list-all-users.md b/unix/list-all-users.md new file mode 100644 index 0000000..cfae2bc --- /dev/null +++ b/unix/list-all-users.md @@ -0,0 +1,11 @@ +# List All Users + +On unix-based systems, all system users are listed with other relevant +information in the `/etc/passwd` file. You can output a quick list of the +users by name with the following command: + +``` +$ cut -d: -f1 /etc/passwd +``` + +[source](http://askubuntu.com/questions/410244/a-command-to-list-all-users-and-how-to-add-delete-modify-users)