1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

bashシェルの操作を快適にするキーバインド

Last updated at Posted at 2019-12-07

普段のタイピングからホームポジションを意識して、こまめにTabを押すことを意識するといいことがあるぜ。ちなみにTabは小指でおすんやで。

キーバインド一覧

見やすいかなと思って大文字で書いたけど小文字で使えます

キー 効果
Ctral+A カーソルを行の先頭に移動する
Ctrl+E カーソルを行の末尾に移動する
Ctrl+D 一文字削除(Delete)
Ctrl+H 一文字削除(Backspace)
Ctrl+P 上キーと同じ
Ctrl+N 下キーと同じ
Ctrl+F 一文字右へ
Ctrl+B 一文字左へ
Ctrl+Y ヤンクする
Ctrl+L clearコマンド
Ctrl+S 画面への出力を停止する
Ctrl+Q 画面への出力を再開する
Ctrl+C 実行中のコマンドを中断する
Tab ディレクトリやコマンドの補完
指適当タイピングだとCtrl+?系は使っても恩恵が得られなかったりするかもだけど、Tabは入力ミスも防げるしとっても便利だからたくさん使って。

ちなみにこれはbashのemacsモードで、set -o viでviモードになるよ。僕はemacsモードを使ってるけどvim信者になりたいから移行予定。

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?