Linux Terminal Lab: find the intruder
Someone broke into the company's AI server last night. You're the security analyst. Use real Linux commands in this fake terminal to find out who did it. Type help to see the commands. Nothing here can harm your computer.
Cheat sheet
| Command | What it does |
|---|---|
pwd | Print where you are (working directory) |
ls / ls -la | List files / list ALL files, including hidden ones that start with a dot |
cd /var/log | Change directory. cd .. goes up one level, cd ~ goes home |
cat file | Show a whole file |
head -n 5 file / tail -n 5 file | First / last 5 lines |
grep "Failed" auth.log | Show only lines containing "Failed". Add -i to ignore case, -c to count |
cmd | grep x | wc -l | The pipe | sends one command's output into the next. wc -l counts lines |
whoami, clear, history | Your user name, clear screen, your past commands |