Home
Packages
Forums
Wiki
GitLab
Security
AUR
Download
コンテンツにスキップ
メインメニュー
メインメニュー
サイドバーに移動
非表示
案内
メインページ
目次
コミュニティに貢献
最近の出来事
おまかせ表示
特別ページ
交流
ヘルプ
貢献
最近の更新
最近の議論
新しいページ
統計
リクエスト
ArchWiki
検索
検索
表示
アカウント作成
ログイン
個人用ツール
アカウント作成
ログイン
キーボードショートカットのソースを表示
ページ
議論
日本語
閲覧
ソースを閲覧
履歴を表示
ツール
ツール
サイドバーに移動
非表示
操作
閲覧
ソースを閲覧
履歴を表示
全般
リンク元
関連ページの更新状況
ページ情報
表示
サイドバーに移動
非表示
←
キーボードショートカット
あなたには「このページの編集」を行う権限がありません。理由は以下の通りです:
この操作は、次のグループに属する利用者のみが実行できます:
登録利用者
。
このページのソースの閲覧やコピーができます。
[[Category:キーボード]] [[Category:X サーバー]] [[Category:アクセシビリティ]] [[en:Keyboard shortcuts]] [[zh-CN:Keyboard Shortcuts]] この記事では (あまり有名でない) デフォルトのキーボードショートカットのリストとユーザーカスタマイズの情報を提供します。 == 標準のショートカット == === カーネル === There are several low level shortcuts that are implemented in the kernel which can be used for debugging and recovering from an unresponsive system. Whenever possible, it is recommended that you use these shortcuts instead of doing a hard shutdown (holding down the power button to completely power off the system). To use these, they must first be activated with either {{ic|1=sysctl kernel.sysrq=1}} or {{ic|echo "1" > /proc/sys/kernel/sysrq}}. If you wish to have it enabled during boot, edit {{ic|/etc/sysctl.d/99-sysctl.conf}} and set {{ic|1=kernel.sysrq = 1}}. A common idiom to remember this is "'''R'''eboot '''E'''ven '''I'''f '''S'''ystem '''U'''tterly '''B'''roken" (also referred to as "REISUB"). Alternatively, think of it as "BUSIER" backwards. {| class="wikitable" ! Keyboard Shortcut ! Description |- | {{ic|Alt+SysRq+r}} '''Unraw''' | Take control of keyboard back from X. |- | {{ic|Alt+SysRq+e}} '''Terminate''' | Send SIGTERM to all processes, allowing them to terminate gracefully. |- | {{ic|Alt+SysRq+i}} '''Kill''' | Send SIGKILL to all processes, forcing them to terminate immediately. |- | {{ic|Alt+SysRq+s}} '''Sync''' | Flush data to disk. |- | {{ic|Alt+SysRq+u}} '''Unmount''' | Unmount and remount all filesystems read-only. |- | {{ic|Alt+SysRq+b}} '''Reboot''' | Reboot |- |} {{Tip| * [[ディスプレイマネージャ]]を使っていて {{ic|Alt+SysRq+e}} でログイン画面が表示される場合 (もしくは自動ログインが有効になっていてデスクトップが表示される場合)、[[systemd|サービスファイル]]の {{ic|1=Restart=always}} ディレクティブが原因です。必要ならば、[[systemd#ユニットファイルの編集|ユニットを編集]]してください。ただし "REISUB" シーケンスを止めることはできません。 * If all the above combinations work except {{ic|Alt+SysRq+b}}, try using the contralateral {{ic|Alt}} key. * On laptops that use {{ic|Fn}} key to differentiate {{ic|SysRq}} from {{ic|PrtScrn}}, it may not actually be necessary to use the {{ic|Fn}} key (i.e., {{ic|Alt+PrtSc+''letter''}} could work). }} See [[wikipedia:Magic SysRq key|Magic SysRq key - Wikipedia]] for more details. === ターミナル === ==== 仮想端末 ==== {| class="wikitable" ! Keyboard Shortcut ! Description |- | {{ic|Ctrl+Alt+Del}} | Reboots Computer (specified by the symlink {{ic|/usr/lib/systemd/system/ctrl-alt-del.target}}) |- | {{ic|Alt+F1}}, {{ic|F2}}, {{ic|F3}}, ... | Switch to ''n''-th virtual console |- | {{ic|Alt+ ←}} | Switch to previous virtual console |- | {{ic|Alt+ →}} | Switch to next virtual console |- | {{ic|Scroll Lock}} | When Scroll Lock is activated, input/output is locked |- | {{ic|Shift+PgUp}}/{{ic|PgDown}} | Scrolls console buffer up/down |- | {{ic|Ctrl+c}} | Kills current task |- | {{ic|Ctrl+d}} | Inserts an EOF |- | {{ic|Ctrl+z}} | Pauses current Task |} ==== Readline ==== GNU readline is a commonly used library for line-editing; it is used for example by Bash, FTP, and many more (see the details of {{Pkg|readline}} package under "Required By" for more examples). readline is also customizable (see man page for details). {| class="wikitable" ! Keyboard Shortcut ! Description |- | {{ic|Ctrl+l}} | Clear the screen |- | colspan=2 align="center" | '''Cursor Movement''' |- | {{ic|Ctrl+b}} | Move cursor one character to the left |- | {{ic|Ctrl+f}} | Move cursor one character to the right |- | {{ic|Alt+b}} | Move cursor one word to the left |- | {{ic|Alt+f}} | Move cursor one word to the right |- | {{ic|Ctrl+a}} | Move cursor to start of the line |- | {{ic|Ctrl+e}} | Move cursor to end of the line |- | colspan=2 align="center" | '''Copy & Paste''' |- | {{ic|Ctrl+u}} | Cut everything from line start to cursor |- | {{ic|Ctrl+k}} | Cut everything from the cursor to end of the line |- | {{ic|Alt+d}} | Cut the current word after the cursor |- | {{ic|Ctrl+w}} | Cut the current word before the cursor |- | {{ic|Ctrl+y}} | Paste the previous cut text |- | {{ic|Alt+y}} | Paste the second latest cut text |- | {{ic|Alt+Ctrl+y}} | Paste the first argument of the previous command |- | {{ic|Alt+.}}/{{ic|_}} | Paste the last argument of the previous command |- | colspan=2 align="center" | '''History''' |- | {{ic|Ctrl+p}} | Move to the previous line |- | {{ic|Alt+n}} | Move to the next line |- | {{ic|Ctrl+s}} | Search |- | {{ic|Ctrl+r}} | Reverse search |- | {{ic|Ctrl+j}} | End search |- | {{ic|Ctrl+g}} | Abort search (restores original line) |- | {{ic|Alt+r}} | Restores all changes made to line |- | colspan=2 align="center" | '''Completion''' |- | {{ic|Tab}} | Auto-complete a name |- | {{ic|Alt+?}} | List all possible completions |- | {{ic|Alt+*}} | Insert all possible completions |- |} === X11 === {| class="wikitable" ! Keyboard Shortcut ! Description |- | {{ic|Ctrl+Alt+F1}}, {{ic|F2}}, {{ic|F3}}, ... | Switch to ''n''-th virtual console |- | {{ic|Shift+Insert}} <br> {{ic|Mouse Button 3}} | Copy selected text to clipboard, or paste from clipboard |- |} == ユーザーカスタマイズ == === Readline === This example adds keys that allow (in ''vi-mode'') to search backward through the history for the string of characters between the start of the current line and the point. This is a non-incremental search. {{hc|.inputrc| set editing-mode vi set keymap vi-insert "\C-r": history-search-backward "\C-e": history-search-forward }} === X11 === 一般的なショートカットや、デフォルトで無効になっているショートカットは [[Xorg でのキーボード設定#よく使われる XKB オプション]]を見て下さい。 === Firefox === [https://addons.mozilla.org/en-us/firefox/addon/customizable-shortcuts/ customizable-shortcuts] アドオンを使ってください。 === X-selection-paste のキーバインディング === Users who prefer to work rather with the keyboard than the mouse may benefit from a key binding to the paste operation of the '''middle mouse button'''. This is especially useful in a keyboard-centered environment. A workflow example is: #In Firefox, select a string you want to google for (with the mouse). #Hit {{ic|Ctrl+k}} to enter the "Google search" field. #Hit {{ic|F12}} to paste the buffer, instead of moving the mouse pointer to the field and center-click to paste. {{Note|{{ic|Shift+Insert}} has a similar yet different functionality, see [[#X11]]: {{ic|Shift+Insert}} inserts the clipboard buffer, not the x-selection-paste buffer. In some applications, these two buffers are mirrored.}} The method suggested here uses three packages available in the [[official repositories]]: * {{Pkg|xsel}} to give access to the x-selection-buffer content. * [[Xbindkeys]] to bind a key-stroke to an action. * {{Pkg|xvkbd}} to pass the buffer string to the application by emulating keyboard input. This example binds the x-selection-paste operation to the {{ic|F12}} key: {{hc|.xbindkeysrc| "xvkbd -no-jump-pointer -xsendevent -text "\D1`xsel`" 2>/dev/null" F12 }} The {{ic|"\D1"}} code prefixes a 100 ms pause to inserting the selection buffer (see the [http://homepage3.nifty.com/tsato/xvkbd/ xvkbd home page]). {{Note|Depending on your X configuration, you may need to drop the {{ic|-xsendevent}} argument to xvkbd.}} The key codes for keys other than {{ic|F12}} can be determined using {{ic|xbindkeys -k}}. '''References:''' * [http://unix.stackexchange.com/questions/11889/pasting-x-selection-not-clipboard-contents-with-keyboard Pasting X selection (not clipboard) contents with keyboard] * [http://homepage3.nifty.com/tsato/xvkbd/ xvkbd home page] '''XMonad Window Manager''' In the {{Pkg|xmonad}} window manager there is a built-in function to paste the x-selection-buffer content. In order to bind that function to a key-stroke (here {{ic|Insert}} key) the following configuration can be used: {{hc|xmonad.hs| import XMonad.Util.Paste ... -- X-selection-paste buffer , ((0, xK_Insert), pasteSelection) ] }} '''Using xdotool''' - command-line X11 automation tool With the {{Pkg|xdotool}} it is possible to create a short cut which actually paste the content of the X-Selection buffer via triggering the middle mouse button. Instead of hit the text as separate key strokes. The command for the short cut is: <code>xdotool getwindowfocus key --window %1 click 2</code> The command get the window which has focus from the xserver and triggers a click of button 2 which is the middle mouse button. == Tips and tricks == * If you like a keyboard-centered workflow, you might also appreciate a [[Window manager#Tiling_window_managers|tiling window manager]]. == 参照 == * [https://www.kernel.org/doc/Documentation/sysrq.txt The Linux Magic System Request Key - Kernel documentation] * [http://lnag.sourceforge.net/lnag_html/node5.html Linux Newbie Administrator Guide - Shortcuts and Commands] * [http://tldp.org/HOWTO/Keyboard-and-Console-HOWTO.html The Linux keyboard and console HOWTO]
このページで使用されているテンプレート:
テンプレート:AUR
(
ソースを閲覧
)
テンプレート:Hc
(
ソースを閲覧
)
テンプレート:Ic
(
ソースを閲覧
)
テンプレート:Man
(
ソースを閲覧
)
テンプレート:Note
(
ソースを閲覧
)
テンプレート:Pkg
(
ソースを閲覧
)
テンプレート:Tip
(
ソースを閲覧
)
キーボードショートカット
に戻る。
検索
検索
キーボードショートカットのソースを表示
話題を追加