01Kali Linux: The Commands You Actually Need
Navigation, reading files, permissions, searching, processes and ports — the foundation every other lab assumes.
About this lab
Nearly every security tool is a command-line tool, and nearly every write-up assumes you can already move around a Linux filesystem without thinking about it. That assumption is where most people stall: not on the hacking, on the shell.
This lab covers the small set of commands that the other seventeen labs quietly depend on — moving between directories, reading files without opening an editor, understanding what a permission string means, finding a file when you only know part of its name, and seeing which processes are listening on which ports.
What you will do
- Move around the filesystem and work out where you are with
pwd,ls -laandcd. - Read files three different ways and learn when each one is the right choice:
cat,less,head/tail. - Decode a permission string like
-rwxr-xr--into who can read, write and execute. - Search file contents with
grep, and find files by name and type withfind. - List running processes and open ports, and identify which process owns a port.
Where this is used
An analyst who has to look up grep -r every time loses minutes on every investigation, and those minutes are the difference between catching an attacker in progress and reading about it afterwards. This is the lab worth repeating until it is boring.
Simulated environment — no real systems are contacted. Only ever test systems you own or are authorised in writing to test.