Linux Commands Cheat Sheet - LinuxForDevices
Linux Commands Cheat Sheet - LinuxForDevices
Table of Contents
1. Cheat Sheet for Linux commands
1. Files and directories
2. Variables and environment
3. Execution and processes
4. Networking
5. System Administration
6. Package Manangement
2. Further …
grep -i doctor $(find . -name *.txt Find the string “doctor” in all the .txt files.
-print)
Networking
sudo netstat -pant | grep LISTEN Lists the various in-use TCP ports and the
processes using it.
sudo netstat -pan | grep 80 Lists the process listening on port 80.
System Administration
Package Manangement
Further …
Although this Linux commands cheat sheet provides you with the most used commands,
it’s worthwhile to sit down and read the man pages of individual commands. You might
have an obscure problem but going through the man pages, you might stumble upon your
required solution. So, do read the man pages in conjunction with this cheatsheet. They’re
extremely useful.