# Simple Log File Reset/Wipe [![pknw1logo-white.png](https://bookstack.pknw1.co.uk/uploads/images/gallery/2025-01/scaled-1680-/HLPpknw1logo-white-png.png)](https://bookstack.pknw1.co.uk/uploads/images/gallery/2025-01/scaled-1680-/HLPpknw1logo-white-png.png) ##### `/usr/local/bin/wipe` ****Script Headline**** a simple wrapper to truncate any log file or open file by cat'ing /dev/null into the file ``` #!/bin/bash # /usr/local/bin/wipe cat /dev/null > $1 ``` sdfsd
- [ ] `wipe /var/log/auth.log` - [ ] `service rsyslog restart`
****further info****
****Product Home**** [Link](https://www.pknw1.co.uk)
****Documentation**** [Link](https://www.pknw1.co.uk)
****Github**** [Link](https://www.pknw1.co.uk)
****DockerHub**** [Link](https://www.pknw1.co.uk)
****Misc**** [Link](https://www.pknw1.co.uk)
more text more text