Kryvex

Level 1 · User · Lesson 2 of 3

Your first Linux commands.

Most servers on the internet run Linux, and most security tools do too. You only need five commands to start finding your way around.

pwd

"Print working directory." Shows which folder you're in.

ls

Lists what's in the folder. ls -a also shows hidden files, whose names start with a dot.

cd name

Moves into a folder. cd .. goes up one level, and cd ~ goes home.

cat file

Prints a file's contents to the screen.

whoami

Shows which user you're logged in as. Attackers run it first after breaking in. So do defenders checking a machine.

Practice: find the flag

This practice terminal runs a small pretend file system in your browser. Somewhere in it is a file containing a flag that starts with KX{. Find it, then paste it below. Type help if you get stuck.

practice terminal (simulated)student@kryvex
student@kryvex:~$

Check yourself

1. Which command shows hidden files?

Lesson complete. Saved in this browser.