๐Ÿง Linux Quick-Start

From zero to oriented in one page โ€” the ground floor of every security career.

The only four questions

pwdWhere am I?
lsWhat is here?
cat <file>What does it say?
historyWhat has been done here โ€” by me, or by someone else?

Permissions in 20 seconds

chmod 600 <file>Owner read+write, nobody else anything. The setting for secrets.
chmod 400 <file>Owner read-only. For files that must never change.
r=4 w=2 x=1The math behind every permission number: owner ยท group ยท everyone.

Processes & logs

psWhat is running. Learn a healthy list by heart; the stranger is the incident.
tail /var/log/auth.logThe diary's latest page.
grep Failed /var/log/auth.logEvery failed login, isolated.
grep -c <pattern> <log>Count, don't print. Scale decides severity.

The habit that compounds

Anything you do three times, script. Your shell history is the first draft of every script: run a sequence once, save it, replay it forever. In the Hackbydoing Academy Linux classroom you do all of this hands-on, in a simulator, in about 35 minutes.

Free from the Hackbydoing Academy โ€” the game that teaches real cybersecurity, attack and defense, on simulated networks. Play free at hackbydoing.com ยท Print this page (Ctrl/Cmd+P) for a clean paper copy.