Checking Command History
Concept & Overview
Imagine you typed a long, complex network diagnostic command ten minutes ago, and now you need to run it again, but you can't remember the exact options or syntax. Instead of scratching your head or typing it all over, Linux remembers it for you!
- The history command displays a numbered list of all commands you've recently executed.
- You can quickly re-run any item by typing an exclamation point followed by its list number (like !42 to re-execute command #42).
history to view the list of commands you've run in this session.Command Syntax Reference
| Command / Syntax | Description |
|---|---|
history | Display a list of recently executed commands |
Verification Objectives
These conditions will be automatically verified when you run commands inside the interactive terminal simulator:
- ○Run the "history" command
Ready to complete Quest 83?
Test your skills live in the browser terminal with an emulated Linux filesystem, real-time command evaluation, and instant step-by-step hints.