LoginSignup
1
4

More than 5 years have passed since last update.

シェル初心者のための基本的な操作方法のまとめ

Last updated at Posted at 2017-03-14

カーソル移動

 
  • ctrl + f(前方に1文字分)
  • ctrl + b(後方に1文字分)
  • ctrl + a(行頭)
  • ctrl + e(行末)
  • alt + f (前方に単語1つ分)
  • alt + b (後方に単語1つ分)

文字の削除

  • ctrl + h (カーソル位置の後方に1文字削除)
  • ctrl + d (カーソル位置の1文字削除)
  • ctrl + w (後方にスペース区切りで1単語分削除)

カットとヤンク

  • ctrl + k(カーソル位置から行末までを削除する)
  • ctrl + u(カーソル位置から行頭までを削除する)
  • ctrl + y(最後に削除した内容を挿入する)

実行中のコマンドを強制終了

  • ctrl + c

画面を消去する

  • ctrl + l

コマンド名の補完

  • Tab

コマンド履歴の操作

  • ctrl + p(1つ前のコマンド履歴)
  • ctrl + n(次のコマンド履歴)
  • ctrl + r(インクリメンタル検索)

インクリメンタル検索時の操作

  • 文字の入力(検索語を追加して再検索)
  • ctrl + r (1つ前の検索結果へ移動)
  • enter (現在の検索結果をそのまま実行)
  • esc (現在の検索結果を表示したまま、コマンドラインに戻る)
  • ctrl + g (検索結果を破棄し、プロンプトに戻る)
1
4
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
4