shortcut Keys function
CTRL + A moves the cursor to the beginning of the command line. If the command we entered is too long, we want to move the cursor to the beginning of the command line using the
Ctrl+e Move the cursor to the end of the command line
CTRL + C forces the current command to terminate
Ctrl+l Clear screen, equivalent to clear command
Ctrl+u the command before the cursor is deleted or clipped. I entered a long line of command, do not use the BACKSPACE key one character deletion, using this shortcut will be more convenient
Ctrl+k Delete or cut the contents after the cursor
Ctrl+y paste ctrl+u or ctrl+k -cut content
Ctrl+r Search in the history command , after pressing Ctrl+r , the search interface will appear, as long as the search content entered, will be searched from the historical command.
Ctrl+d exit the current terminal.
CTRL + Z pauses and puts in the background. This shortcut is involved in the management of the work, we are detailed in the System Administration section.
Ctrl+s Pause the screen output.
Ctrl+q reply screen Output
10.3.3 input/output redirection
1. Standard input and output
  device   device file name   file descriptor  
keypad /dev/stdin 0 standard input
display /dev/sdtout 1 standard output
display /dev/sdterr 2 standard error Output
2. Output redirection
symbol
| TD style= "padding:0px 7px;border-width:1px;border-style:solid solid solid none;" height= "valign=" Top "width=" 104 ">
action |
|
command > file |
< Span style= "font-family: ' The song Body '; > Output the correct output of the command to the specified file or device in a covered manner. |
command >> file |
< Span style= "font-family: ' The song Body '; > In addition, the correct output of the command is output to the specified file or device. |
|
&NBSP; 2> file |
The way that has been covered, Outputs the error output of the command to the specified file or device. |
Error Command 2>> file |
Output the error output of the command to the specified file or device in an additional way. |
&NBSP
& nbsp correct output and error output save at the same time; |
< P style= "margin:0px;padding:0px;" > command > file &NBSP; 2>&1 |
|
command >> file &NBSP; 2>&1 |
|
command Span class= "Apple-converted-space" >&NBSP; &> file |
|
command Span class= "Apple-converted-space" >&NBSP; &>> file |
in an additional way, The correct output and error output are all companions to the same file. |
commands >> files 1 2>> file 2 |
append the correct output to the file 1 and append the error output to file 2 . |
This article is from the "Wu-Dick" blog, please be sure to keep this source http://9827789.blog.51cto.com/9817789/1638402
Bash Common shortcut key Basics (i)