Terminal some common shortcut keys
Key |
function |
Ctrl+d |
Keyboard input end or exit terminal |
Ctrl+s |
Pause the current program, pause and press any key to resume running |
CTRL + Z |
Put the current program in the background to run, restore to the foreground for command FG |
CTRL + A |
Move the cursor to the input outfit, which is equivalent to the home key |
Ctrl+e |
Moves the cursor to the end of the input line, equivalent to the END key |
Ctrl+k |
Remove from cursor position to end of line |
Alt+backspace |
Delete a word forward |
Shift+pgup |
Scroll the terminal display up |
Shift+pgdn |
Scroll down the terminal display |
Shell Common wildcard characters
character |
meaning |
* |
Match 0 or more characters |
? |
Match any one character |
[List] |
Match any single character in the list |
[!list] |
Matches a character other than any single character in the list |
[C1-C2] |
Match any single word in c1-c2 such as: [0-9] [A-z] |
{String1,string2,...} |
Match string1 or string2 (or more) one string |
{C1.. C2} |
Match all characters in c1-c2 such as {1..10} |
Get help on the command line
The user can execute the man command to get a detailed description of a command and how to use it:
$ man <command_name>
In order to facilitate the search, the man manual has been processed in fascicle (sub-section), which is usually divided into 8 sections in the work of the UNIX, BSD, OS X and Linux, and is arranged as follows:
section |
description |
1 |
General Command |
2 |
system call |
3 |
library function, covering the C standard function library |
4 |
special files (typically devices in/dev) and drivers |
5 |
file format and conventions |
6 |
games and screensavers |
7 |
miscellaneous |
8 |
system management commands and Daemons Process |
You can use the search/< in man to search for the keywords you want, you can use the N key to switch to the next keyword, shift+n is where the previous keyword is located. Use space (SPACEBAR) to page, enter to scroll down one line, or use J,k (the VIM Editor's move key) to scroll backward one line forward. Press the H key to show use Help (because man uses less as the reader, which is actually the help of the less tool), press Q to exit.
For more detailed help, you can also use the Info command. If you know the purpose of a command, just want to quickly see some of its specific parameters, then you can use the--help parameter, most of the commands will have this parameter, such as:
$ ls --help
Linux terminal operation with some shall commands