Linux Hacks

 





So many people are either unaware of it or rarely use it.


In Linux, you can press  "~TAB TAB" to quickly list all the available users on your system.


$ ~TAB TAB


This will save you a couple of keystrokes as compared to other alternative ways.


$ cut -d ":" -f 1 /etc/passwd


or useless use of cat 😂 

$ cat /etc/passwd | cut -d ":" -f 1

Comments