Linux Commands Cheat Sheet: Basic Linux Commands

linux commands cheat sheet

Read Time2 Minute, 12 Second

In Linux, we need commands to carry out our tasks. Whether you want to install some application or run, commands are mandatory. From looking at what files are present in your computer to shut down the computer commands are useful. Here are some basic Linux commands. You can download our Linux Commands Cheat sheet PDF.

Linux Commands Cheat Sheet

Now, let us see what basic commands are and their usage.

Linux Commands Cheat sheet: ls – List

This command is used to see the list of files sitting on your computer.

pwd - Print Working Directory

The pwd command gives the current working directory.

cat -  concatenate and print files 

The command: cat filename concatenates files and prints the output on the screen. This is similar to looking at the content of the files in a text editor.

tail - Prints tail from last

This Linux command prints the 10 lines from the last on the screen. If you want to change the number of lines, use tail -n no_of_lines filename.

Who - Tells who is logged in

The “who” command returns the user details of logged in user.


The uname gives information about the system such as kernel name, hostname, and more. Use uname -a to view more information.


The command searches for the file in the system. It can search file matching specific patterns in its name. for case sensitive search: find foldername -name filename and for case insensitive: find foldername -iname filename


The “help” command prints all of the available commands in the terminal.

su - Switch User

The command is used to switch user, if you are switching from normal user to the superuser, you may need to type sudo su. And from superuser to the normal one, just su.

ps - Processes

The ps command displays the currently running processes in the system.


The less command prints the file window by window on the screen. CTRL+F to go forward onto the next screen a CTRL+B for backward towards the previous screen.

Some more linux commands from cheatsheet

cp: copies file from one location to the other.

mv: moves file from one location to the other.

shutdown: shutdowns your computer

shutdown -r : restarts the computer

date: Displays current date and time of your system.

free: shows free and used memory.

man: shows manual of the command

unzip: unizip filename unzips the zip file.

gzip: creates and unzips gzip files.

So these are some of the basic Linux commands you would require in Linux environment from time to time. You can also download this Basic Linux Commands Cheat sheet here.

Also Read: List Of Top SQL Interview Questions