-
-
Save Coldmooon/65a05dfe476d2def25afb6ddb5fcaeb1 to your computer and use it in GitHub Desktop.
To remove the USB Logs files in Ubuntu
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Ubuntu | |
dmesg | |
sudo dmesg --clear | |
sudo cat /var/log/kern.log | grep usb | |
sudo rm -rf /var/log/kern* | |
#old log files | |
sudo zcat /var/log/kern.log.2.gz | grep usb | |
sudo cat /var/log/syslog | grep usb | |
sudo rm -rf /var/log/syslog* | |
cat /dev/null > ~/.bash_history && history -c |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment