handbook/tools/5.Machine/1.Linux/General/Hide/CLEAR-Logs-and-History.md
2024-08-31 01:07:22 +02:00

264 B

Clear Logs

#Erase logs with shred**
- shred -h
- shred -vfzu auth.log (or the name of the log you want)

Clear History

# Erase History Command
history clear

# Erase History File
cat /dev/null > /home/user/.bash_history