filegone(8)
π¦ NAME π¦
okay so this is filegone(8) from the System Manager's Manual, and it's literally here to help you trace why a file is gone. The official vibe: filegone β Trace why file gone (deleted or renamed). Uses Linux eBPF/bcc. π
β¨ SYNOPSIS β¨
filegone [-h] [-p PID]
πΈ DESCRIPTION πΈ
bestie, this tool traces why a file is gone/vanished, and it gives you the info on who deleted or renamed the file. π
It works by tracing the kernel vfs_unlink() , vfs_rmdir() , vfs_rename functions. (Yes, those exact functions β no cap.) π§
Since this uses BPF, only the root user can use this tool. π₯
π REQUIREMENTS π
You need CONFIG_BPF and bcc. That's the whole requirements list, periodt. π
π OPTIONS π
-hβ Print usage message. simple as that π«Ά-pPIDβ Trace this process ID only (filtered in-kernel). like, just that one PID, bestie π―
β EXAMPLES β
Trace all file gone events:
# filegone
Trace file gone events caused by PID 181:
# filegone -p 181
π FIELDS π
TIMEβ Time of the event. β°PIDβ Process ID that renamed/deleted the file. πCOMMβ Process name for the PID. π·οΈACTIONβ action on file:'DELETE'or'RENAME'πFILEβ Filename. π
π OVERHEAD π
This traces the kernel VFS file rename and delete functions and prints output for each event. As the rate of this is generally expected to be low (< 1000/s), the overhead is also expected to be negligible. β¨
This is from bcc β https://github.com/iovisor/bcc β and also look in the bcc distribution for a companion _examples.txt file containing example usage, output, and commentary for this tool. π§
π» OS π»
Linux π§
π STABILITY π
Unstable - in development. so like, handle with care, bestie π
π AUTHOR π
Curu Wong β¨
π«Ά SEE ALSO π«Ά
filelife(8) β go check that one too, iykyk π
mwah π β source/version: USER COMMANDS; date: 2022-11-18; page: filegone(8). that's the whole manual, bestie, go trace those files! π
π¦ where this page comes from
- centos-stream 10: bcc-tools 0.36.1-1.el10 Β· Apache-2.0
- centos-stream 9: bcc-tools 0.36.1-1.el9 Β· ASL 2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms