Skip to content

Instantly share code, notes, and snippets.

@lincerely
Last active May 4, 2018 18:56
Show Gist options
  • Save lincerely/209833d5a612ac55a10fb361485bbdb0 to your computer and use it in GitHub Desktop.
Save lincerely/209833d5a612ac55a10fb361485bbdb0 to your computer and use it in GitHub Desktop.
Print /etc/passwd as beautified table
column -t -s : /etc/passwd
@lincerely
Copy link
Author

Sample result:

[root@localhost ~]$ column -t -s : /etc/passwd
root      x  0   0    root      /root            /bin/sh
daemon    x  1   1    daemon    /usr/sbin        /bin/false
bin       x  2   2    bin       /bin             /bin/false
sys       x  3   3    sys       /dev             /bin/false
sync      x  4   100  sync      /bin             /bin/sync
mail      x  8   8    mail      /var/spool/mail  /bin/false
www-data  x  33  33   www-data  /var/www         /bin/false
operator  x  37  37   Operator  /var             /bin/false
nobody    x  99  99   nobody    /home            /bin/false

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment