historyコマンドの使い方

linuxのコマンド履歴を見るコマンド history

history

history

コマンド履歴が表示される

history -c

コマンド履歴が全削除される

広告

history -d 128

コマンド履歴から、番号指定で特定の履歴をクリアする。コマンドにパスワードを含めてしまった場合(や、恥ずかしいミスタイプをした場合など?)にどうぞ。

![history履歴の数字]

指定した数字のコマンドを再実行できる。コピペして貼り付けるよりエレガントで短時間。

About: dacelo


Leave a Reply

Your email address will not be published. Required fields are marked *