Estimated reading: 4 minutes. Optional, no points and no flag.
The Linux command-line interface (CLI) lets you work with a computer by typing commands rather than clicking through windows. You will use it throughout NYITSec CTF challenges.
Opening the terminal
- Launch a challenge when you want a hands-on workspace (the lecture itself does not launch one).
- Use Workspace > Terminal in pwn.college.
- In NYITSec challenges, you may see
hacker@dojo:/nyitsec-ctf$because the terminal starts in a writable, temporary workspace. Other terminals may showhacker@dojo:~$. The$means the shell is ready for a command. Type a command and press Enter.
Navigate around
| Command | What it does |
|---|---|
pwd |
Show your current directory |
ls |
List files here |
ls -la |
List more details, including hidden files |
cd folder |
Move into a directory |
cd .. |
Move to the parent directory |
cd ~ |
Return to your home directory |
clear |
Clear the terminal screen |
/is the filesystem root. An absolute path begins there, such as/nyitsec-ctf/events.log.- A relative path is interpreted from your current directory, such as
events.logwhen you are already in/nyitsec-ctf. ~means your home directory. Your prompt commonly showshackeras your username.
Try these commands in any launched training workspace:
pwd
ls /nyitsec-ctf
cd /nyitsec-ctf
ls -la
Tip: The terminal is not a search box. Exact spelling, spaces, and capitalization matter on Linux.