handbook/tools/5.Machine/1.Linux/General/Hide/CLEAR-Logs-and-History.md

19 lines
264 B
Markdown
Raw Normal View History

2024-08-30 23:07:22 +00:00
## 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
```