Clear Log or any file without removing or deleting it and retaining permissions

There are many other ways to do this, but an easy way to remember is this command:
1 |
cat /dev/null > /the/path/to/file.sh |
Monitor your network and internet speed with Docker & Prometheus
744 Updated Apr 13
Python 298 Updated Apr 13
Updated Apr 2