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 and flow from this site, held on your device and searchable with no connection. Free to install, no ads.
Get it free on the App Store