Clear console command history in Linux

For the second time in as many months I’ve executed a command in SSH that I didn’t mean to because it was still in the console command history from the previous session.  I up-arrowed one too many times and shot myself in the foot.  So, for the second time in as many months I had to look up how to clear the console history.  The command is as follows:

history -c

I’m not sure why I can’t remember that, but at least I have a consistent article to reference now.

Advertisements
  1. No trackbacks yet.

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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s

%d bloggers like this: