Clear Bash Command History File

For security reasons, you may want to clear out your bash command-line history file periodically. Use the following commands to delete / truncate your bash command history record.

history -c # clear the bash runtime history list
history -w # write the cleared list to disk (save)

The following articles were used for inspiration and reference:

About notesbytom

Keeping technology notes on WordPress.com to free up my mind to solve new problems rather than figuring out the same ones repeatedly :-).
This entry was posted in Linux and tagged , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s