Created
November 23, 2021 19:07
-
-
Save seyerj/b7f4b54f91bd92b84048737722e0a930 to your computer and use it in GitHub Desktop.
truncates target file (/opt/librenms/logs/librenms.log) to last 500 lines
This file contains 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
echo "$(tail -n 500 /opt/librenms/logs/librenms.log)" > /opt/librenms/logs/librenms.log |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment