password

How to clear files contents in Linux

  1. Logon on to your server – ssh root@192.168.100.100
  2. Navigate to the folder. cd /content/logs
  3. Type du -sh to view storage in GB for the folder.
  4. To clear the contents for file name : log-we.log
    • echo “” > log-we.log