This is a collection of my notes that I most frequently refer back to. Hopefully some of these may come in handy for others. NOTE: I take no responsibility for your systems if you follow these notes. Always do you own research and make sure you understand fully what it is you are doing.
Sunday, 13 August 2017
Empty log file in Linux
If a log file has grown out of control and you want to empty it out, run the following:
cat
/dev/null > /Path/To/Log
This overwrites the file with the contents of /dev/null which is nothing
No comments:
Post a Comment