#1 India's Top IT Training Institute

On Demand Courses

9 programs

×

About Uncodemy

Know more about who we are and what we stand for.

About Us

About Us

Discover our mission to equip individuals with essential IT skills and industry expertise.

Read More →
UnCodeMy Gallery

UnCodeMy Gallery

Explore highlights from our IT training sessions and success stories.

Read More →
×

Free Resources

Learn, practice and plan your career — bilkul free.

Tutorials

Tutorials

Step-by-step written tutorials to learn any technology at your own pace.

Read More →
Free Counselling

Free Counselling

Book a free video counselling session and pick the right course for you.

Read More →
Online Compiler

Online Compiler

Write, run and test your code online — no setup required.

Read More →

Linux Commands Cheat Sheet PDF Downloads

Download Linux commands cheat sheet PDF from Uncodemy: navigation, files, permissions, text search, processes, networking, packages and shell tips on one page.

4 pages · 111 KB · PDF · Updated 5 Nov 2026

Prepared by: Uncodemy trainer team  ·  Reviewed by: Uncodemy  ·  Last reviewed: 5 Nov 2026

Quick Answer

This Linux commands cheat sheet groups the most used commands by task: moving around, working with files, permissions, searching text, processes, disk and memory, networking, packages and shell shortcuts. Use it as a quick reference while you practise in a terminal; check the manual page with man for options on your system.

Key takeaways

  • Learn navigation, file, permission and search commands first; they cover most daily work.
  • Use man command or command --help to see options on your own system.
  • Pipes connect commands: the output of one becomes the input of the next.
  • Be careful with rm, chmod and sudo, especially with recursive options.
  • Practise in a safe virtual machine or container before touching production.

What is Linux commands cheat sheet?

Linux commands are text instructions typed into a shell to navigate the file system, manage files and processes, search data, configure permissions and control a Linux system without a graphical interface.

How do I use this cheat sheet?

Commands below work on most Linux distributions with a Bash shell. Options can differ slightly between systems, so confirm with man <command> or <command> --help. Practise in a virtual machine or a container, not on a live server.

How do I move around the file system?

pwd                 # show current directory
ls -la              # list all files with details
cd /var/log         # go to a directory
cd ..               # go up one level
cd ~                # go to your home directory
tree -L 2           # show folder tree (if installed)

How do I work with files and folders?

mkdir -p app/logs         # create nested folders
touch notes.txt           # create an empty file
cp a.txt b.txt            # copy a file
cp -r src backup          # copy a folder
mv old.txt new.txt        # move or rename
rm file.txt               # delete a file
rm -r folder              # delete a folder and contents (careful)
cat file.txt              # print a file
less file.txt             # scroll through a file
head -n 20 file.txt       # first 20 lines
tail -n 20 file.txt       # last 20 lines
tail -f app.log           # follow a log as it grows

There is no recycle bin in the shell, so double-check before using rm -r.

How do permissions work?

ls -l shows permissions such as -rwxr-xr--: the first character is the type, then three sets of read (r), write (w) and execute (x) for the owner, group and others.

chmod 644 file.txt        # owner read/write, others read
chmod +x script.sh        # make executable
chown user:group file.txt # change owner and group
sudo command              # run as administrator

Numeric values: read is 4, write is 2 and execute is 1, so 7 means all three. Avoid chmod 777, which gives everyone full access.

How do I search for text and files?

grep "error" app.log              # lines containing error
grep -i "error" app.log           # ignore case
grep -rn "TODO" src/              # search folders recursively with line numbers
find . -name "*.log"              # find files by name
find /var -size +100M             # find large files
wc -l file.txt                    # count lines
sort names.txt | uniq -c          # count repeated lines
cut -d, -f1,3 data.csv            # pick columns from a CSV

How do pipes and redirection work?

ls | wc -l                  # count files
cat app.log | grep ERROR | tail -5
echo "hello" > out.txt      # write to file (overwrites)
echo "more" >> out.txt      # append to file
command 2> errors.txt       # send errors to a file
command > out.txt 2>&1      # send both to a file

How do I manage processes?

ps aux | grep nginx         # find a process
top                         # live view of processes
kill 1234                   # ask a process to stop
kill -9 1234                # force stop (last resort)
bg / fg / jobs              # background and foreground jobs
nohup ./run.sh &            # keep running after logout

How do I check disk, memory and the system?

df -h             # disk space by file system
du -sh folder     # size of a folder
free -h           # memory use
uptime            # load averages
uname -a          # kernel and system info
whoami            # current user
date              # current date and time

How do I check the network?

ping -c 4 example.com           # test reachability
curl -I https://example.com     # fetch headers
curl -o file.zip https://example.com/file.zip
ip addr                         # IP addresses
ss -tulpn                       # listening ports
ssh user@host                   # remote login
scp file.txt user@host:/tmp/    # copy over SSH

How do I install software?

Debian and Ubuntu use sudo apt update and sudo apt install package. Red Hat family systems use sudo dnf install package. Check what a package does before installing, and prefer official repositories.

Which shell shortcuts save time?

Tab completes names, the up arrow recalls history, Ctrl+R searches history, Ctrl+C stops a command, Ctrl+L clears the screen, !! repeats the last command and history lists past commands.

What common mistakes should I avoid?

Running rm -rf with a wrong path or variable, using sudo when it is not needed, editing system files without a backup, forgetting quotes around names with spaces and pasting commands from the internet without reading them.

What small practice tasks help?

Create a folder with three text files, copy them, rename one, search for a word across all of them with grep, count the lines of each with wc, change a file's permission and list the result. Then write a short script that prints today's date and the disk space and make it executable. Repeating tasks like these builds speed more than reading the list. Keep a notes file of commands you forget and review it weekly.

Download Linux Commands Cheat Sheet PDF

Linux Commands Cheat Sheet PDF

The PDF carries the same content as this page in a clean, print-ready layout, so you can read it offline and keep it for revision.

4 pages · 111 KB · PDF · Updated 5 Nov 2026

Download PDF

Sources and further reading

Frequently Asked Questions

What are the most important Linux commands for beginners?
Start with pwd, ls, cd, mkdir, cp, mv, rm, cat, grep, chmod and ps, which cover navigation, files, search, permissions and processes.
How do I see how a command works?
Use man followed by the command name, or run the command with --help to see its options.
What does chmod 755 mean?
The owner can read, write and execute, while the group and others can read and execute.
How do I search for text in files?
Use grep, for example grep -rn "text" folder, to search recursively and show line numbers.
Is it safe to run rm -rf?
It deletes without confirmation and cannot be undone, so check the path carefully and avoid running it with sudo unless you are certain.
Are these PDFs free to download?
Yes. This PDF is free. Fill in the short form at the top of the page and the download starts straight away.