Terminal Commands Reference
Table of Contents
Terminal Commands Reference
This document lists all commands available in the interactive 404 terminal and their behavior.
-
help: Show interactive help menu. In CTF mode shows CTF-specific commands. Clickable commands auto-type.
- Usage:
help
- Usage:
-
ls: List available routes (normal mode) or files (CTF mode). Supports
-ato show hidden files in CTF mode.- Usage:
ls,ls -a
- Usage:
-
pwd: Print the current requested path.
- Usage:
pwd
- Usage:
-
whoami: Show basic visitor/session info and browser string.
- Usage:
whoami
- Usage:
-
ip: Fetch and display your public IP and approximate geolocation (uses ipapi.co). Runs asynchronously.
- Usage:
ip
- Usage:
-
date: Show current date/time.
- Usage:
date
- Usage:
-
history: Show recent commands entered in the terminal session.
- Usage:
history
- Usage:
-
joke: Display a random programming joke.
- Usage:
joke
- Usage:
-
quote: Display an inspirational programming quote.
- Usage:
quote
- Usage:
-
fortune: Show a random fortune-cookie style message.
- Usage:
fortune
- Usage:
-
cowsay: Show an ASCII cow with a random message.
- Usage:
cowsay
- Usage:
-
matrix: Animated Matrix-style display played for a few frames (asynchronous).
- Usage:
matrix
- Usage:
-
sudo: Playful permission-denied responses.
- Usage:
sudo
- Usage:
-
ssh: Simulated SSH connection. If called with
secret(e.g.ssh secret) it enters CTF mode.- Usage:
ssh [target] - Example:
ssh secret→ enters CTF mode with promptctf@secrets:~$
- Usage:
-
hack: Animated mock “hack” progress sequence (asynchronous), then suggests
ssh secret.- Usage:
hack
- Usage:
-
echo: Repeat the provided message.
- Usage:
echo hello world
- Usage:
-
about: Short about text for Xavier’s portfolio.
- Usage:
about
- Usage:
-
socials: Lists configured social links (from
window.SOCIALS). Links open in new tab.- Usage:
socials
- Usage:
-
banner: Displays an ASCII banner of the site header.
- Usage:
banner
- Usage:
-
cat: Read file contents. In CTF mode supports
readme.md,flag.txtand in.hidden/flag.txtshows an encoded flag you can click to copy.- Usage:
cat <filename> - Example (CTF):
cat readme.md,cat flag.txt(in.hiddenwill reveal base64 string)
- Usage:
-
sl: Steam locomotive easter egg (animated train). Typo of
ls.- Usage:
sl
- Usage:
-
man: Show short manual pages for some commands (e.g.,
man cd,man ls).- Usage:
man <command>
- Usage:
-
home: Redirect to home route (uses
ROUTES.homeif available).- Usage:
home
- Usage:
-
clear: Clear the terminal output.
- Usage:
clear
- Usage:
-
secret: A secret helper command. With no args shows a hint;
secret clueorsecret helpprints SSH hint to usessh secret.- Usage:
secret,secret clue
- Usage:
CTF Mode Specific Commands (only available after ssh secret):
-
decode: Decode a base64 string. Clickable decoded output can be copied to clipboard.
- Usage:
decode <base64-string> - Example:
decode RmxhZ3tXM2xsX0QwbjN9⇒Flag{W3ll_D0n3}
- Usage:
-
hint: Show a CTF hint.
- Usage:
hint
- Usage:
-
submit: Submit the decoded flag. On success it redirects to the configured certificate URL.
- Usage:
submit Flag{W3ll_D0n3}
- Usage:
-
exit: Exit CTF mode and return to normal terminal mode/prompt.
- Usage:
exit
- Usage:
Notes
- Many commands accept
-hor--helpto display usage information (e.g.,ls -h,cat -h,decode -h,submit -h). - When a command runs asynchronously (e.g.,
ip,matrix,sl,hack) input is blocked until completion. - Clickable elements (decoded flags, encoded strings) use the Clipboard API when available with fallbacks.
If you want, I can also:
- Generate a printable cheatsheet PDF from this markdown.
- Add this reference into the site navigation or
README.md.
Generated from themes/minimal-portfolio/assets/js/console.js.