For beginners who come from windows, they often encounter problems. After writing something in VI, they habitually press Ctrl + S to save it, and then they die there. They don't reflect it at all, so they have to restart, use Alt + F2/3/4 in advanced mode to switch to another console for other tasks.
In fact, you should use Ctrl + Q to get in touch with the lock. CTRL + S in Linux means locking the screen display and the screenlock key is an effect. If you don't believe it, try to press scrlk or FN + scrlk.
Some other shortcut keys are reproduced below (original http://hi.baidu.com/rhca/blog/item/6ef8788dd073cc12b21bba65.html)
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
-
- -- Disable the computer
-
- -(,,,...) -Switch toNConsole (s)
-
- -Or--switch to the upper/next virtual terminal
- -Lock the terminal's input/output-when the screen output scrolls too fast, you can use this key to freeze the screen and press it againUnlock.
You can also use the-lock screen and-Unlock method to implement this function. If your console suddenly becomes unresponsive for unknown reasons, you can try this unlock shortcut later, maybe because you accidentally triggered it.CTRL-SThe screen is suspended.
-
- -Or---scroll up or down the console cache. This function also works during startup. After you use (-) to change the console, the cached content is deleted, so scrolling is invalid.
-
- --Refresh the screen.
-
- -Or--killed the current task.
-
- --The role is EOF, that is, end-of-file ). If your cursor is in a blank command line, it will exit bash.ExitCommand exit is much faster.
-
- -Pause the process. Run the following command:BGRun or useFG runs on the front end.
Bash & command-line
- -Move the cursor to the beginning of the command line.
- --Move the cursor to the end of the command line.
- -Clear all characters before the cursor position in the command line.
- --Clear the field on the left.
- --The part is pasted with-or-cleared.
- -The subsequent characters will be searched in the command history cache incrementally.
- -Command line auto-completion-auto-completion of the current command line.If you enable the auto-completion script command parameters and options, you can also perform auto-completion.
- --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:
$ SudoEcho 0>/proc/sys/kernel/sysrq
- ---Synchronize all mounted file systems. All cached data will be immediately written to the disk.
- -- Re-mount all mounted file systems in read-only mode.
- ---Fast restart. Do not run the command without synchronizing or detaching the file system. Otherwise, a serious file system error may occur.
- --, Then --, and ---Synchronize all file systems, remount all file systems in read-only mode, and immediately restart. This is the fastest way to restart Linux.
- -- Outputs other sysrq functions.
X-window shortcut
- -- Or --- change the screen resolution (increase/decrease ). The premise is that multiple available resolutions are written in the X-window server configuration file.
- -- Kills X-server and returns to the logon page. All running applications will be terminated.
- ---Xkill-Click an application to force it to close.
- -- Change the keypad (numeric keypad) on the keyboard into a mouse. After the mouse is started, you can use the keypad for mouse operations. The "and" on the numeric keypad represent the left mouse button and right mouse button, respectively, and the "double-click" button on the numeric keypad.(We are not sure about the translation here. You can refer to the original article. I cannot test this function in my notebook .)
- --(,,,...) -Switch to the nth text console. Generally, ALT + F7 is switched back to X-window.
- --Open a small window for running commands. If you enter an executable command, run it directly. If you enter a file name, the system calls an appropriate application to open it. Enter the URL to open it in the default browser.
KDE shortcut
- ----Direct Shutdown
- ----Restart directly