List of Keyboard Shortcuts

From ArchWiki

Jump to: navigation, search
i18n
English
简体中文

Contents

Kernel

Thse are low level shortcuts that are considered to be used for debugging. Whenever possible, it is recommended to use these instead of doing a hard shutdown (holding power button to shutdown the motherboard).

Must be activated first with echo "1" > /proc/sys/kernel/sysrq


A common idiom to remember this is "Reboot Even If System Utterly Broken"


Left Alt+SysRq+R+ Unraw -- Take control of keyboard back from X
Left Alt+SysRq+E+ Terminate -- Send SIGTERM to all processes, allowing them to terminate gracefully
Left Alt+SysRq+I+ Kill -- Send SIGKILL to all processes, forcing them to terminate immediately .
Left Alt+SysRq+S+ Sync -- Flush data to disk.
Left Alt+SysRq+U+ Unmount -- Unmount and remount all filesystems read-only.
Left Alt+SysRq+B+ Reboot.

Terminal

Virtual console

Keyboard Shortcut Description
Ctrl+Alt+Del Reboots Computer (specified in /etc/inittab)
Alt+F1, F2, F3, ... Switch to n-th virtual console
Alt+ Switch to previous virtual console
Alt+ Switch to next virtual console
Scroll Lock When Scroll Lock is activated, input/output is locked
⇑ Shift+PgUp/PgDown Scrolls console buffer up/down
Ctrl+L Clear screen
Ctrl+C Kills current task
Ctrl+D Inserts an EOF
Ctrl+Z Pauses current Task

Readline

GNU readline is a commonly used library for line-editing, it is used for example by bash, zsh, ftp and many more (see Arch Package details under "Required By" for more examples). readline is also customizable (see manpage for details).

Keyboard Shortcut Description
Cursor Movement
Ctrl+B Move cursor one character to the left
Ctrl+F Move cursor one character to the right
Altl+B Move cursor one word to the left
Alt+F Move cursor one word to the right
Ctrl+A Move cursor to start of the line
Ctrl+E Move cursor to end of the line
Copy & Paste
Ctrl+U Cut everything from line start to cursor
Altl+K Cut everything from the cursor to end of the line
Alt+D Cut the current word after the cursor
Ctrl+W Cut the current word before the cursor
Ctrl+Y Paste the previous cut text
Alt+Y Paste the second latest cut text
Alt+Ctrl+Y Paste the first argument of the previous command
Alt+.or_ Paste the last argument of the previous command
History
Ctrl+P Move to the previous line
Altl+N Move to the next line
Ctrl+S Search
Ctrl+R Reverse search
Ctrl+J End search
Ctrl+G Abort search (restores original line)
Alt+R Restores all changes made to line
Completion
Tab Auto-complete a name
Altl+? List all possible completions
Alt+* Insert all possible completions


X11

Keyboard Shortcut Description
Ctrl+Alt+F1, F2, F3, ... Switch to n-th virtual console
Ctrl+Alt++/- Switch to higher/lower available resolutions
Ctrl+Alt+Backspace Kills X-server (This may not work for recent updates.)
Ctrl+⇑ Shift+Num Lock Toggles keyboard mouse; uses numpad, mouse click is done by 5, use /, *, and -to switch the click to left, middle, and right click
Shift+Insert, Mouse Button 3 Copy selected text to clipboard, or paste from clipboard

Links

Personal tools