Hands-on task
Truncate the log of a running export
The report export is running right now and appends to /var/log/reports/export.log, which has grown to 30 MiB. You can't delete the file: the process holds it open, and the space won't come back. Truncate the log to zero in place — same file, same inode, the export keeps writing.
- truncate
- in-place truncation
- inode
- open file descriptor