Skip to content

Instantly share code, notes, and snippets.

@sleepdefic1t
Last active October 12, 2017 12:26
Show Gist options
  • Save sleepdefic1t/7529afb4481c47983d92c0cfa7f019a3 to your computer and use it in GitHub Desktop.
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.
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