Linux has many keyboard shortcuts. Knowing them ma
时间:2007-04-30 来源:LinuxAndrew
Console/terminal
- -- - shuts down computer
- - (, , ,…) - switch to n-th console
- - or - - switch to next/previous virtual terminal
- - locks terminal input/output - allows to read console contents when output is going too fast. To unlock, press Scroll Lock once again.
Alternatively, Scroll Lock can be enabled using - and disabled with -. Try last shortcut if your console hangs for unknown reason - it happened to me many times that I’ve locked it accidentaly by pressing CTRL-S. - - and - - scrolls console buffer up/down. Works also when is enabled. After changing the terminal (-) buffer contents is erased and it is impossible to scroll it.
- - - screen refresh
- - or - - kills current task
- - - stands for EOF (End-of-file). If you type it on en empty command line, it will quit bash. This is so much faster than typing exit
- - - pause process. Use commands: bg to run in background or fg to run in foreground.
Bash & command-line
- - - moves cursor to beginning of command line.
- - - moves cursor to end of command line.
- - - clears command line from cursor position to end of line.
- - - clears command line from cursor position to beginning of line.
- - - clears word to the left
- - - will paste in anything that was deleted by - or - or -
- - command-line autocompletion. Automatically completes current command line.
If autocompletion script is enabled, then also options and applications parameters are autocompleted. - - - followed by characters will do a incremental search of the previous command history
Kernel shortcuts
Following shortcuts must be enabled in kernel, they also must be enabled using proc interface (echo 1 > /proc/sys/kernel/sysrq).
- -- - sync all mounted filesystem. Data in buffers is immediately written to disks.
- -- - remounts mounted filesystems read-only
- -- - performs immediate reboot. Don’t do it without syncing and unmounting as it can cause massive filesystem corruption
- --, then --, then -- - attempts to sync all mounted filesystems, remounts them read-only and immediately reboots computer. Fastest way to reboot Linux.
- -- - prints out list of other SysRQ functions.
X-Windows shortcuts
- -- or --- changes screen resolution (higher/lower). Only if X-Windows server is configured for multiple resolutions.
- -- - kill X-server. Running applications will be terminated.
- -- - xkill - click an application to kill it.
- -- will turn the keypad on the keyboard into the mouse, so you can control the mouse from keyboard. Keys and on the numpad select left mouse click and right mouse click respectively. Mouse click is done by on the numpad.
- -- (, , ,…) - switches to n-th text console.
KDE shortcuts
- --- - direct shutdown
- --- - direct reboot
- - - Starts the run command box. Type a application executable to launch it, folder name to open it, filename to use an appropriate program to launch it, url to go to it in konqueror and any of the numerous web shortcuts(gg, wp) defined by konqueror to activate them.
P.S.
FOR KDE
Ctrl+Alt+Shift+PageDN -> direct shutdown
Ctrl+Alt+Shift+PageUP -> direct reboot
Alt+F2 -> The god of KDE shortcuts. Starts the run command box. Type a application executable to launch it, folder name to open it, filename to use an appropriate program to launch it, url to go to it in konqueror and any of the numerous web shortcuts(gg, wp) defined by konqueror to activate them. And u can use most kde alias protocols to
It shoud be CTRL+ALT+Bksp
Dont forget…
Ctrl-Z to pause and thereafter bg or fg to run the process in background or foreground..
Ctrl-L clears the console screen ( actually a FORM FEED code )
Ctrl-\ kills apps
On bash…
Ctrl-R followed by characters will do a incremental search of the previous command history
CTRL + R and then start typing the beginning of a command you used last week: It will cycle through history. Your very own flux capacitor.
so you can control the mouse from the keyboard.
I think that if you hit CTRL+ALT+F7 while running X window environment it switches back to the virtual console, and CTRL+ALT+F8 switches back to X env
[…] اختصارات لوحة المفاتيح لنظام لينكس […]
呵呵,一句阿拉伯语!原来中东人也在用Linux啊。