Week 1 lab · about 45 minutes

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

CommandWhat it does
pwdPrint where you are (working directory)
ls / ls -laList files / list ALL files, including hidden ones that start with a dot
cd /var/logChange directory. cd .. goes up one level, cd ~ goes home
cat fileShow a whole file
head -n 5 file / tail -n 5 fileFirst / last 5 lines
grep "Failed" auth.logShow only lines containing "Failed". Add -i to ignore case, -c to count
cmd | grep x | wc -lThe pipe | sends one command's output into the next. wc -l counts lines
whoami, clear, historyYour user name, clear screen, your past commands