Standard Unix utilities, available on both your local machine and the remote boxes you land on. These are the everyday tools; for the attack-specific commands see the Command Reference, and for the terminal basics see The Terminal. Every command here has a full manual page: man <command>, and man -k <keyword> searches them when you do not know the name.
history lists what you have typed. Press Up and Down to step through it, or Ctrl+R to search as you type, just like a real shell: the prompt becomes (reverse-i-search)`ssh': ssh root@10.0.0.5. Press Ctrl+R again for the next older match, Enter to run it, or Esc to cancel. See Keyboard Shortcuts for the full list.
Shortcuts for commands you type a lot, like a real shell. Define one with alias name='command', then the name runs the command:
Terminal window
aliasll='ls -la'# then: ll /home runs ls -la /home
aliaswallets='tree -a | grep wallet.dat'
Quote the expansion if it contains a pipe or spaces. An alias expands its first word before the command runs, and anything after it is passed along. Aliases cannot shadow a real command.
Command
What it does
alias
List every alias you have defined
unalias <name>
Remove one (unalias -a removes all)
Aliases are saved with your settings and follow you across games. The file lives at /root/.bash_aliases on your own box; edit it by hand with nano /root/.bash_aliases and it syncs back when you save.
These five read the output of the command before them, so they only work after a |. Typing sort /etc/passwd does nothing; cat /etc/passwd | sort is the form that works.
Filter
What it does
head -N
First N lines (default 10)
tail -N
Last N lines (default 10), newest log entries
wc -l -w -c
Count lines, words, characters. `
sort -r -u
Order the lines (-r reverse, -u drop duplicates)
uniq
Collapse repeated ADJACENT lines only. Scattered duplicates survive, so the usual form is `