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.

Leave a comment