Your Linux Command Line Cheat Sheet

Thanks for joining. Here is your Linux Command Line Cheat Sheet. Bookmark this page so you can come back to it.

1. Download your cheat sheet (PDF)

Files and navigation, permissions, users, processes, networking, packages, searching, archives, disk space and bash scripting basics. Two pages: print it and keep it next to your terminal.

Download the Linux Command Line Cheat Sheet (PDF)

2. Your 5-day practice plan

Twenty minutes a day in a terminal: a Linux virtual machine, WSL on Windows, or a cheap cloud server you own.

  1. Day 1: run ls -la ~ and explain the permissions of five files and folders, including the hidden ones.
  2. Day 2: create a folder with a script inside, make it executable with chmod u+x, run it, then remove execute and read the error.
  3. Day 3: find the setuid programs on your system with find / -perm -4000 -type f 2>/dev/null and look up what each one does.
  4. Day 4: use ps aux, top and ss -tulpn to list what is running and which ports are open.
  5. Day 5: write a 10-line bash script that backs up a folder into a dated .tar.gz file and run it.

3. Replay the interactive labs

The chmod calculator and the umask calculator are always here. Open the labs.

Want the full path, step by step?

Bash Scripting for Network Automation turns the command line into automation: variables, arithmetic and arrays, redirection, exit codes, conditionals, functions and loops, and then real projects such as an IP generator, a subdomain list generator, a network monitor and a network scanner in pure bash. 8.5 hours of lessons with a 30-day refund window.

See the full course

Questions? Just reply to any of my emails. I read every message. Taifun, Ocsaly Academy