Tuesday, July 12, 2011

A comprehensive summary of the use of Linux shortcuts

The most common windows system, we give you a lot of shortcuts, then Linux shortcut keys are not?Linux shortcut keys in different terminals have different combinations. under a lot of linux users to simplify the process of helpful shortcut keys, following a brief introduction:
In the console / virtual terminal
1. Ctrl-alt-delete - Shut down the computer 
2. alt-fn (f1, f2, f3, ...) - console switch to n- 
3. alt-left or alt-right - to switch to the up / down a virtual terminal 
4. scroll lock - lock the terminal input / output - the output when the screen scrolling too fast when you can use this key to freeze the screen, press the scroll lock is unlocked. 
Can also be another way to achieve this function, use ctrl-s locks the screen, use ctrl-q to unlock. If your console has unexplained sudden no response can also try to unlock the back of the shortcut key, perhaps because you inadvertently trigger the ctrl-s causes the screen to play dead.
5. Shift-page up or shift-page down - on the scroll the console cache. This feature is scroll lock is also useful for boot time. Using (alt-fn) replacement console was removed after the contents of the cache, so scrolling is invalid. 
6. Ctrl-l - refresh the screen. 
7. Ctrl-c or ctrl-\ - kill the current task 
8. ctrl-d - role eof the end of the file (end-of-file). If your cursor in a blank command line, it will exit the bash, than you use the exit command to exit much faster. 
9. Ctrl-z - suspend the process. Use the command: bg in the background or use fg to run in front.
bash & command-line
1. Ctrl-a - to move the cursor to the beginning where the command line. 
2. Ctrl-e - command line to move the cursor to the end. 
3. Ctrl-u - clears the command line before the cursor position all the characters. 
4. Ctrl-w - cleared the left field 
5. ctrl-y - will be labeled by ctrl-u or ctrl-k or ctrl-w clear part. 
6. Ctrl-r - will automatically increment the command history buffer into the search behind the characters. 
7. Tab - command-line auto-completion - automatically complete the current command line. If you enable auto-completion script command parameters and options can also be automatically filled. 
8. Ctrl-k - remove from location to prompt the end of the line between the characters.
kernel shortcuts
The following shortcuts must be enabled in the kernel before it can use. 
And must 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 - sync all mounted file systems. All data in the cache are immediately written to disk. 
2. Alt-sysrq-u - read-only remount all mounted file systems. 
3. Alt-sysrq-b - fast restart. Do not unmount the file system synchronization and the implementation of the case, otherwise it will cause serious file system errors. 
4. Alt-sysrq-s, and then alt-sysrq-u, then alt-sysrq-b - sync all file system read-only remount all file systems, and immediately restart. This is the fastest way to restart linux. 
5. Alt-sysrq-h - outputs a list of other magic key combination (sysrq) function.
Linux keyboard shortcuts you on so many bar. Skilled use to improve our efficiency.