history
Shell builtin: history
Shows the commands typed so far.
Usage
history [n]
Description
Show the lines typed in this shell so far, each with its number. With N, show only the last N lines.
Options in the simulator
No options.
8 more options of the real program, not in the simulator yet
Examples
ls Downloads
invoice.pdf photo.jpg
history
1 ls Downloads
2 history hostname
web-01
whoami
lerner
history
1 hostname
2 whoami
3 history Where you learn it
Lessons
- Faster Terminal start
- Help and history Linux Basics, Module 1: Survival basics