Библиотека сайта rus-linux.net
4.3. Other Key combinations
GNU/Linux shells have many shortcut keys which you can use to speed up your work, below is a rough list of some (also see CTRL-R in the history section of the commands, over here, Section 4.2).
- CTRL-D
the “end-of-file” (EOF) key combination can be used to quickly log out of any terminal. CTRL-D is also used in programs such as “at” to signal that you have finished typing your commands (the EOF command).
- CTRL-Z
key combination is used to stop a process. It can be used to put something in the background temporarily.
For example, if you were editing a file with vim or emacs just press CTRL-Z to regain control of the terminal do what you want and then type fg to bring it back.
For further information please see Section 9.3.
If fg doesn't work If fg doesn't work you may need to type jobs and then fg job_name or fg job_number
- CTRL-A ═and═ CTRL-E
These key combinations are used for going to the start and end of the line on the command line. Use CTRL-A to jump to the start of the line, and CTRL-E to jump to the end of the line.
- CTRL-K
This key combination can be used to cut or delete what is currently in front of the cursor.
- CTRL-Y
This key combination can be used to paste the last thing you deleted (using CTRL-K or CTRL-W ).
- CTRL-W
This key combination can be used to cut or delete the entire line that has being typed.