history
SafeShell history
history | grep <word>
Shows past commands. !N re-runs one; !! repeats the last ('sudo !!' is classic).
Examples
sudo !!Re-run last command with sudo
Syntax
history [N] / !N / !!
Before you run it
Keep secrets out of history.
The same reference, with no signal at all
Every command on this site, held on your device. The app adds 632 more: 1,510 commands and 120 fix flows, searchable with no connection. Free to install, no ads (some content is a one-time purchase).
Get it free on the App Store