filegone(8)
๐ฆ filegone(8) ยท System Manager's Manual ๐ฆ
โจ NAME โจ
okay so filegone is the tool that tells you why a file vanished ๐ It traces who deleted or renamed it. It runs on Linux eBPF/bcc, so it's giving low-level detective energy ๐ต๏ธโโ๏ธ๐
๐ฎ SYNOPSIS ๐ฎ
filegone [-h] [-p PID]
๐ DESCRIPTION ๐
this traces why a file went poof ๐จ aka it's gone, deleted, or renamed, and tells you who did it ๐ซฃ
it works by tracing the kernel vfs_unlink(), vfs_rmdir(), and vfs_rename functions โจ
โ ๏ธ bestie, this one uses BPF, so only the root user can use this tool. no cap, sorry not sorry ๐ โโ๏ธ
๐ REQUIREMENTS ๐
you'll need CONFIG_BPF and bcc ๐ง
๐ OPTIONS ๐
-hโ pulls up the usage message ๐-p PIDโ only traces this process ID ๐ฏ (filtered right in the kernel, so it's super efficient ๐)
๐ EXAMPLES ๐
Trace all file gone events:
# filegone
Trace file gone events caused by PID 181:
# filegone -p 181
๐ธ FIELDS ๐ธ
TIMEโ when the event happened โฐPIDโ the process ID that renamed or deleted the file ๐ซถCOMMโ the process name for that PID ๐ท๏ธACTIONโ what happened to the file:DELETEorRENAME๐FILEโ the filename ๐
๐ธ OVERHEAD ๐ธ
this traces the kernel VFS file rename and delete functions and prints output for each event. the rate is generally expected to be low (< 1000/s), so the overhead is also expected to be negligible โจ it comes from bcc ๐ฆ
the bcc repo lives here:
https://github.com/iovisor/bcc
also, lowkey important: check the bcc distribution for a companion _examples.txt file ๐ it has example usage, output, and commentary for this tool. iykyk ๐
๐ OS ๐
Linux ๐ง
๐งช STABILITY ๐งช
Unstable - still in development ๐ง so it might be a little chaotic rn ๐ญ
๐ AUTHOR ๐
Curu Wong ๐
๐ SEE ALSO ๐
filelife(8) ๐ง
okay that's the whole tea ๐ซถ go forth and catch those vanishing files ๐ฅโจ love u bestie, bye ๐ (source: USER COMMANDS, dated 2022-11-18 ๐)
๐ฆ where this page comes from
- debian bookworm: bpfcc-tools 0.26.0+ds-1 ยท Apache-2.0
- debian trixie: bpfcc-tools 0.31.0+ds-7 ยท Apache-2.0
- ubuntu noble: bpfcc-tools 0.29.1+ds-1ubuntu7 ยท Apache-2.0
- ubuntu questing: bpfcc-tools 0.31.0+ds-7ubuntu2 ยท Apache-2.0
- ubuntu resolute: bpfcc-tools 0.35.0+ds-1ubuntu2 ยท Apache-2.0
- ubuntu stonking: bpfcc-tools 0.35.0+ds-1ubuntu4 ยท Apache-2.0
- ๐ girlified by anthropic/claude-haiku-5.5 on : a language model's rewrite of the original, under its terms