LoginSignup
0
2

More than 5 years have passed since last update.

fc command で指定範囲の履歴を表示

Posted at

fc コマンドとは

以前に実行したコマンドを表示、編集、再実行するユーティリティです。

試行

$ echo 1
$ echo 2
$ echo 3
$ echo 4
$ echo 5
$ history -5
10085  echo 1
10086  echo 2
10087  echo 3
10088  echo 4
10089  echo 5

# 指定範囲のコマンド履歴を表示する
$ fc -l 10086 10088
10086  echo 2
10087  echo 3
10088  echo 4

# 任意のコマンドを呼び出す
$ fc -e - 10086
echo 2
2

外部資料

0
2
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
0
2