分类: LINUX
2006-06-26 12:53:44
While working from the command line, there are a few useful keystrokes that can help you with your session.
The following keystrokes are useful shortcuts at a shell prompt.
Keystroke | Action |
---|---|
While editing a command on the command line, this key combination deletes everything that has been typed in from the cursor's current position forward. | |
Pressing this key combination once ends the current application or process. Pressing it twice exits the shell. | |
At the command line, | |
Suspends the current application. Entering bg after | |
"Kills" a program. This should be a last resort. Try stopping a program with other methods first. | |
Clears the terminal window. |
Table Useful shell prompt keystrokes
ere is a brief list of wildcards and regular expressions:
* — Matches all characters
? — Matches one character
\* — Matches the * character
\? — Matches the ? character
\) — Matches the ) character
The terminal window begins to look crowded very quickly. You can always exit from the terminal window and open a new one, but there is a quicker and easier way to remove the contents displayed in the terminal.
To clear the terminal, enter the command clear at the shell prompt. The clear command clears the terminal, leaving only a new shell prompt at the top of the window.
You can also clear the screen using the keystroke
Sometimes, you may accidentally open a program file or some other non-text file in a terminal window. When you close the file, you could find that the text you are typing does not match the output on the monitor.
In such cases, enter reset to return the terminal window to its default values.