Skip to main content

Simple Log File Reset/Wipe

pknw1logo-white.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

Documentation

Link

Github

Link

DockerHub

Link

Misc

Link

more text more text