LoginSignup
0
2

More than 5 years have passed since last update.

.bash_history

Posted at

ホームディレクトリ下にある.bash_historyファイルには、bashのコマンド実行履歴が保存されている。historyコマンドを使うと、このファイルに書かれている履歴を表示してくれる。

$ history
    .
    .
    .   # 省略
    .
    .
  505  cd
  506  ls
  507  pwd   # 最近使った5件
  508  pwd
  509  history
$ 

デフォルトでは最近1000件までらしい。
保存件数を増やすには、.bash_rcに例えば

HISTSIZE=2000

を追加すると、保存件数が2000件に変更される。

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