Delete shell history

Delete the .bash_history file:

# rm -rf ~/.bash_history

Clear the current history stored in RAM:

# history -c

  • 1 Users Found This Useful
Was this answer helpful?

Related Articles

Backup & Restore MySQL Database from Shell

- Backup a database mysqldump -u Username -p dbname > anyname.sql - Restore a database...

SAR (system activity monitor)

SAR (system activity monitor) produces system utilization reports based on the data collected...

Enable php open_basedir Protection

For open_basedir protection to work properly on cPanel servers running PHP in suPHP mode you'll...

Dangerous Linux Binaries

It's recommended to chmod the following linux binaries to 750 to prevent non-privileged users...