Interview practice question
Deleted log file still filling the disk
Cloud & DevOps · Linux and Scripting · Intermediate
You deleted a 20 GB log file, but df still shows the disk as full. Why?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Process still holds file open.
- Space freed only when closed.
- lsof +L1 to find.
- Restart/reload or truncate via /proc.
- Use logrotate properly.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.