Many shortcut keys are provided for the most common windows system. Are there any shortcut keys for Linux? Linux shortcuts have different combinations on different terminals. In linux, there are many shortcut keys that are helpful for simplifying the user's use process. The following is a brief introduction:
Under the console/virtual terminal
1. ctrl-alt-delete-Disable the computer
2. alt-fn (f1, f2, f3 ,...) -Switch to the nth Console
3. Switch alt-left or alt-right to the upper or lower virtual terminal.
4. scroll lock-lock the input/output of the terminal-when the screen output scroll too fast, you can use this key to freeze the screen and then press the scroll lock to unlock the screen.
You can also use another method to implement this function. use ctrl-s to lock the screen and ctrl-q to unlock the screen. If your console suddenly becomes unresponsive for unknown reasons, you can try this unlock shortcut later. It may be because you accidentally triggered ctrl-s, which causes the screen to be suspended.
5. shift-page up or shift-page down-top and bottom-scroll console cache. This function also works when scroll lock is started. After using the (alt-fn) console, the cached content is deleted, so scrolling is invalid.
6. ctrl-l-refresh the screen.
7. ctrl-c or ctrl-\-to kill the current task
8. ctrl-d-: The end of the object (end-of-file ). If your cursor is in a blank command line, it will exit bash much faster than you exit with the exit command.
9. ctrl-z-pause the process. Run the command: bg in the background or fg in the front end.
Bash & command-line
1. ctrl-a-move the cursor to the very beginning of the command line.
2. ctrl-e-move the cursor to the end of the command line.
3. ctrl-u-clear all characters before the cursor position in the command line.
4. ctrl-w-clear the field on the left
5. ctrl-y-the part is pasted with ctrl-u, ctrl-k, or ctrl-w.
6. ctrl-r-the characters that follow the command history cache will be searched incrementally.
7. tab-command line auto-completion-Automatic completion of the current command line. If you enable the auto-completion script command parameters and options, you can also perform auto-completion.
8. ctrl-k-Clear the characters from the position of the prompt to the end of the line.
Kernel shortcuts
The following shortcut keys must be enabled in the kernel before they can be used.
You must also enable the magic key combination (sysrq ):
Enable sysrq:
$ Sudo echo 1>/proc/sys/kernel/sysrq
Disable sysrq:
$ Sudo echo 0>/proc/sys/kernel/sysrq
1. alt-sysrq-s-Synchronize all mounted file systems. All cached data will be immediately written to the disk.
2. alt-sysrq-u-remount all mounted file systems in read-only mode.
3. alt-sysrq-B-fast restart. Do not run the command without synchronizing or detaching the file system. Otherwise, a serious file system error may occur.
4. alt-sysrq-s, alt-sysrq-u, alt-sysrq-B-Synchronize all file systems, remount all file systems in read-only mode, and immediately restart. This is the fastest way to restart linux.
5. alt-sysrq-h-output other sysrq functions.
Linux shortcut keys. Skilled use can improve our efficiency.
- Linux compression command 1) tar
- Linux dynamic library and static library
- Detailed introduction to Linux software package dependency
- Details on coexistence of three Linux and windows systems
- Comprehensive Analysis of Linux dynamic library features and Creation