history -c で履歴削除

bash のお話。

$ history

で過去に使ったコマンドの履歴を表示できるのは知ってたけど。

$ history -c

でコマンド履歴をクリアできる事が判明。お便利。

外部のサーバーにログインして操作した後も
これでコマンドの履歴を消しておけばスッキリ。

潔癖症の君と僕にオススメ。

bash のコマンドは覚えると便利なのがまだまだありそう。
Manpage of BASH

linux | Permalink | Comment | Trackback URL |

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*