LoginSignup
54
48

More than 5 years have passed since last update.

Linux historyコマンド履歴から実行したいとき | 検索方法

Last updated at Posted at 2015-01-17

historyコマンドで履歴を見ることができます。

history

→ 1000件のコマンド履歴を表示

history 100

→ 100件のコマンド履歴を表示

history | grep graceful

→ gracefulコマンドを含む履歴のみを表示 

history | less

→ lessでページコントロール。
ファイルの先頭へ移動: gまたは<
ファイルの末尾へ移動: Gまたは>
1ページ上へ移動 : wまたb
1ページ下へ移動 : z・スペース

検索方法

history実行後[ctrl] + [r] で検索モードに

(reverse-i-search) : hoge

54
48
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
54
48