Command line history

To view the history of commands of a user.

history

The history of commands are stored in the file .bash_history of user home directory.

To clear complete command line history of a user temporarily for a session.

history -c

Or use space ie.” ” before a command to skip it from being in the history.

Advertisement

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 )

Connecting to %s

Follow

Get every new post delivered to your Inbox.