Learning
-
The Art of Command Line is a very good resource to discover what to learn.
-
To discover what a command does, generally type:
man <command> <command> -h # or <command> --help
-
If you install
tealdeer
, you can type:tldr <command>
This will show you example command usage with easy to understand descriptions.
-
explainshell.com maps a command and its args to the
man
page explanations.
Tips
- Spam the Tab key.
- Learn to navigate lines / words – Ctrl A / Ctrl E; Alt B / Alt F.
- Learn to delete by line / word – Ctrl U / Ctrl K; Ctrl W / Alt D.
- Learn to undo edits – Ctrl Shift Underscore.
- Interrupt / cancel the current input or command – Ctrl C.
You are dangerous when you know a command exists, and run it without knowing what it does.