Hands-on task
The log is filling up the disk
The file /var/log/app/app.log is growing uncontrollably (it's already large). Urgently truncate it to zero without deleting the file itself (the service holds an open descriptor on it), and set things up for the future — create a logrotate config /etc/logrotate.d/app with size-based rotation.
- file descriptors
- truncate
- logrotate
- inode
- log management