How to clear files contents in Linux Logon on to your server – ssh root@192.168.100.100 Navigate to the folder. cd /content/logs Type du -sh to view storage in GB for the folder. To clear the contents for file name : log-we.log echo “” > log-we.log August 15, 2024 by gravity_support Linux 0