learn / terminal

$ bash ‑‑login

Learn the
terminal.

[ OK ] sandbox ready, nothing here can break

Every corner of cyber runs through a command line. This one is a safe practice shell: nothing you type can break anything, and it resets when you reload.

guest@aq53: ~
GREEN

Tap any command to run it. Then try typing it yourself. Tab finishes names for you, and the up arrow brings back the last command.

Find your way around navigate

  • Print working directory: where you are right now.Windows: cd
  • List what's in this folder.Windows: dir
  • List everything, hidden files too, with details.Windows: dir /a
  • Change directory: step into a folder.
  • Go up one folder.
  • Go home, from anywhere.

Read files read

  • Print a whole file.Windows: type
  • Just the first lines.
  • Just the last lines. Logs are read from the bottom.
  • Count the lines.

Search search

  • Show only the lines with a word in them. BLUE does this all day.Windows: findstr
  • Count the matching lines.
  • Find files by name.

Make and move files

  • Make a folder.
  • Make an empty file.
  • Write text into a file (> replaces, >> adds).
  • Copy a file.Windows: copy
  • Move or rename.Windows: move
  • Delete. There is no trash can.Windows: del

Who and what system

  • Which user you are.
  • Your user and groups.
  • What system this is.
  • What's running.Windows: tasklist
  • Everything you've typed.

Network network

  • Your network addresses.Windows: ipconfig
  • Is it up? WHITE's favorite.
  • Read the manual for any command.Windows: ping /?

Your first flag ctf

  • Every CTF has a folder like this.
  • Read the hint.
  • Hidden files start with a dot.
  • Got it.
RED

When you're ready for real Linux, install it in a virtual machine and practice on legal training platforms. Never run a command you found online without knowing what it does.