filegone(8)

πŸ“¦
version 0.36.1 Β· 2 versions
, in alpine 3.24, nixpkgs unstable

πŸ¦‹ 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 🫢
  • -p PID β€” 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