Last active
October 12, 2017 12:26
-
-
Save sleepdefic1t/7529afb4481c47983d92c0cfa7f019a3 to your computer and use it in GitHub Desktop.
Raspberry Pi terminal command for force-emptying system logs. Useful for custom images.
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
sudo bash -c 'for i in $(find /var/log -type f); do cat /dev/null > $i; done' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment