Linux
Command History
history -c # Clear current session history
history -w # Write cleared to file
vi ~/.bash_history # Manual cleanup
shred -zu ~/.bash_history # Shred (extreme)Logs
# Remove all lines containing your IP "192.168.1.100" from auth.log
sed -i '/192.168.1.100/d' /var/log/auth.log
# Remove all lines containing the username "www-data"
sed -i '/www-data/d' /var/log/syslog
/var/log/utmp,wtmp,btmp # Binary logs
/var/log/apache2/access.log # Webserver logsFilesystem
Last updated