How Do I Delete Old Log Files in Linux?
Contents How Do I Delete Old Linux Logs? How to Clean Log Files in Linux Check the Disk Space from the Command Line. Use the Du Command to See Which Files and...
Contents
How do I delete old Linux logs?
How to clean log files in Linux
- Check the disk space from the command line. Use the du command to see which files and directories consume the most space inside of the /var/log directory. …
- Select the files or directories that you want to clear: …
- Empty the files.
23 февр. 2021 г.
Must Read
How do I delete old log files 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.