You Asked: How Do I Flush a Log in Linux?
Contents How Do You Clear a Log File? Delete Saved Console. Log Launch Event Viewer → File (In the Menu) → Options (Here You’ll See the Disk Space in Your File...
Contents
How do you clear a log file?
Delete Saved Console.log
- Launch Event Viewer → File (in the menu) → Options (here you’ll see the disk space in your file and how much space your saved files have consumed in your profile).
- Hit Disk Cleanup and then Delete Files.
- Now Exit and hit OK.
How do you clear the log file in Unix?
Is there a proper way to clear log files on Unix? You can simply truncate a log file using > filename syntax. For example if log file name is /var/log/foo, try > /var/log/foo as root user.