Script Explanation: deleted_fd_cleanup.sh
This script helps identify and optionally truncate files that have been deleted but are still held open by processes on a Linux system (commonly causing df to show full disk while du shows much less).
Features
- Detects all (deleted) files currently held open by processes using lsof.
- Ensures each PID+FD is handled only once to avoid duplicate operations.