historystep 1 of 7
Everything you’ve typed
The shell remembers every command. You already know ↑ steps back through them one at a time. history lists them all, numbered:
$ history 1 ls 2 cat notes.txt 3 history
Your turn, in the terminal
- Run a couple of commands, then list your history