Linux & CLI Quick Start (Optional)


NYITSec CTF 2026.

Linux & CLI Quick Start (Optional)

Start here if you are new to Linux or command-line tools. This is a short, self-paced, ungraded reading mini-lecture to support our upcoming NYITSec Linux/CLI workshop.

Learn how to navigate Linux, read and search files, and ask AI for explanations or hints while still solving challenges yourself.

Need help while solving? pwn.college has SENSAI, an optional AI assistant that can use context from your active challenge and workspace. Start a challenge and select Help in the top navigation bar to ask for hints, explanations, or troubleshooting. ChatGPT and other AI tools are also welcome in this dojo.

No challenge, no flag, no points, and no required completion. You can skip this module and begin CTF Fundamentals at any time.

Open the three learning resources below in order. When you are ready, move on to CTF Fundamentals → First Incident: SSH Log Investigation.


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

  1. Launch a challenge when you want a hands-on workspace (the lecture itself does not launch one).
  2. Use Workspace > Terminal in pwn.college.
  3. In NYITSec challenges, you may see hacker@dojo:/nyitsec-ctf$ because the terminal starts in a writable, temporary workspace. Other terminals may show hacker@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.log when you are already in /nyitsec-ctf.
  • ~ means your home directory. Your prompt commonly shows hacker as 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.

Estimated reading: 4 minutes. Optional, no points and no flag.

These commands are especially useful for the First Incident: SSH Log Investigation challenge that follows this module.

Command What it does
cat filename Print a small text file
less filename Read a long file, scrolling with the keyboard; press q to quit
head filename Show the start of a file
tail filename Show the end of a file
grep 'text' filename Find lines containing text
find /nyitsec-ctf -type f Find files under the NYITSec workspace
command --help Show command usage, when supported
man command Read a command's manual, when installed

Mini example: investigate a log

cat /nyitsec-ctf/events.log
grep 'service=ssh' /nyitsec-ctf/events.log
grep 'status=blocked' /nyitsec-ctf/events.log

A pipe (|) passes the output of one command to another:

cat /nyitsec-ctf/events.log | grep 'service=ssh'

For many uses, grep 'service=ssh' /nyitsec-ctf/events.log is simpler and does the same filtering.

Try Tab to complete filenames and Up Arrow to reuse your last command.

Create and run your own Bash script

NYITSec challenge data is copied to the writable /nyitsec-ctf workspace. Create your own scripts there. The protected original files and answer verifier stay in /challenge. Your home directory (~, usually /home/hacker) is where to save work that should persist across challenges.

cd /nyitsec-ctf
nano myscript.sh
# After saving and exiting nano:
bash myscript.sh

In nano, press Ctrl+O, then Enter to save, and Ctrl+X to exit. The supplied challenge files are already beside your script in /nyitsec-ctf, so filenames like events.log work directly. Temporary workspace: All files in /nyitsec-ctf are lost when the challenge container is replaced. Copy important work to ~/ before leaving.

Be careful with file-changing commands like rm, mv, chmod, and shell redirection (>). Check what a command will change before running it. Never blindly paste commands you do not understand.

Next: Move on to the AI guidance below, or jump directly to the first CTF challenge.

Estimated reading: 3 minutes. Optional, no points and no flag.

You can ask an AI assistant (such as ChatGPT) to explain, teach, and debug Linux commands. The goal is to understand your actions, not just obtain a flag. Participation does not require AI.

Built-in pwn.college help: SENSAI

SENSAI is pwn.college's optional AI assistant. It can use information about your currently running challenge, including your terminal and filesystem context, to help explain what you are seeing. You do not need a separate AI account.

To use SENSAI:

  1. Start a challenge so SENSAI has an active workspace to help with.
  2. Click Help in pwn.college's top navigation bar to open SENSAI, or visit the SENSAI page.
  3. Ask for a hint, explanation, or troubleshooting step based on what you are investigating. SENSAI may understand the current challenge and your files, so you often do not have to paste the entire problem.
  4. Test the advice yourself and make sure you understand the command or concept before continuing.

Example SENSAI prompt:

I'm doing the NYITSec challenge and I'm stuck. Explain what I should look for next, one step at a time, without giving me the flag or solving the whole investigation.

SENSAI is optional. You can still use ChatGPT or other AI assistants for learning in this dojo. Do not put real passwords, personal data, or sensitive information into your training workspace or an AI chat.

Good prompts to try

Understand a command

I'm learning Linux CLI for a beginner CTF. Explain what grep does, what each part of grep 'ssh' events.log means, and give me a safe practice example.

Ask for a hint, not the answer

I have a simulated log file and need to identify an SSH login that is external and blocked. Don't give me the event ID. Suggest one command or investigation step I should try next, and explain why.

Debug an error

I ran cat events.log and got "No such file or directory." My current directory is /home/hacker. Explain why that happened and show me how to find the correct file path.

Learn from your attempt

Here's my command and its non-sensitive output. Explain what worked, what didn't, and give me a hint for the next step. Don't solve the challenge for me.

A simple method

  1. Try first: read the challenge instructions and inspect the available files.
  2. Ask one specific question: share the command you tried and the exact error, if any.
  3. Verify the suggestion: test it in the terminal; AI can be incorrect.
  4. Explain it back: if you cannot describe what the command does, ask for a simpler explanation.

Safety and fairness

  • Do not paste real passwords, access tokens, private keys, student information, or your unique challenge flag into an AI tool.
  • Use only the intentionally provided CTF environment. Never run suggested commands against university systems or other real-world targets without authorization.
  • Ask what unfamiliar commands do before running them, particularly commands that delete files, modify permissions, or run downloaded scripts.
  • Follow the instructor's or event's AI-use rules. A future competition may restrict AI even if these introductory exercises do not.

Want more practice?

Visit the official pwn.college Linux Luminarium for deeper, interactive CLI lessons.

Ready? Open CTF Fundamentals → First Incident: SSH Log Investigation.