A guide to the Getting Started tutorial: moving the cursor, keyboard shortcuts for editing a line, recalling commands from history, and Tab completion.
This tutorial is about driving the terminal with the keyboard before you learn any file commands. Getting comfortable with cursor movement, line editing, history, and completion makes everything that follows faster and less frustrating.
Moving the cursor
The Left and Right arrow keys move one character at a time. To jump farther, use these keyboard shortcuts that work across most shells:
Ctrl-A move to the start of the line
Ctrl-E move to the end of the line
These two shortcuts alone save a lot of time. Instead of holding the Left arrow to fix a typo at the start of a long command, press Ctrl-A and you are there instantly.
Command history
You rarely type a command only once. The shell remembers what you have run, and the Up and Down arrows walk through that history:
Up arrow recall the previous command
Down arrow move forward toward the most recent
Find the command you want, edit it if needed, and press Enter. This is the fastest way to rerun or tweak something you just did.
Tab completion
Typing full paths and command names is error-prone. Tab completion does it for you:
- Start typing a command or file name and press Tab.
- If there is one match, the shell completes it.
- If there are several, pressing Tab again lists the candidates.
Tab completion is also a safety check: if a name does not complete the way you expect, it usually means the file does not exist or you are in the wrong directory.
Why this matters
Everything else in WebTerm, from listing files to using Git, is typed at this prompt. The faster and more accurately you can move, edit, and recall commands, the more the terminal feels like a tool rather than an obstacle.