Linux cheatsheet
The operating system every cybersecurity learner starts with
How it works
- Everything is a file — Folders, devices and settings appear as files in one tree that starts at /.
- The shell reads you — You type a command; the shell (usually Bash) finds the program and runs it.
- Permissions protect — Every file has an owner and read, write and execute rights.
- Packages install software — Tools like apt download software from trusted repositories.
First steps
pwd- Show the folder you are in
ls -la- List every file, including hidden ones
cd /var/log- Move into the log folder
grep -i error app.log- Find lines that contain "error"
chmod 600 secret.txt- Make a file readable only by you