Man pages are the authoritative source of information for specific Linux commands. However, seldom do these man pages include practical examples for the commands that might save some time for the user. Here, in this article, I give you the cheat sheet of Linux commands. Let us know in the comments which ones you already knew and if you discovered something new.
Cheat Sheet for Linux commands
For brevity, I have divided this Linux commands cheat sheet into sections. All the commands in a section are often used in conjunction with the other Linux commands in the section. That said, you might also find yourself using a combination of commands in the different sections. That illustrates the power of Linux and the composability of these programs.
Adds “anotherdir” to your PATH, just for your current session.
source ~/.bashrc
Reloads .bashrc file. Required if new variables were added or old ones modified in .bashrc file and it is required that changes take effect without restarting the shell.
Execution and processes
./runmyprogram
Execute a program or shell script in your current working directory (pwd).
./runmyprogram &
Execute a program or shell script as a background task.
Install a package on RedHat based(Fedora, CentOS) systems.
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.
I hope you learned some new commands or a new way of doing a particular thing through this cheatsheet. Let us know which commands you already knew and which ones you didn’t know at all in the comments.