ofl(1)

πŸ“¦
this version Β· 2 versions
  • debian bookworm, debian trixie, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0, ubuntu jammy, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking (latest)
  • fedora 43, fedora 44
, in debian bookworm, debian trixie, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0, ubuntu jammy, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ ofl β€” open file lister ✨

okay so bestie, this is a page from the hxtools manual β€” section 1, commands, iykyk πŸ’… β€” and it's about a lil tool called ofl. she's giving "who's touching my files" energy and honestly? iconic.


🌸 SYNTAX 🌸

ofl [-P] [-k signalspec] path[...]

that's it. that's the whole vibe. paths, plural, you can pass so many 🫢


πŸ¦‹ DESCRIPTION πŸ¦‹

ofl lists all the processes that have directories or files open or in use within path. like, every single one. no cap.

and bonus feature bestie β€” it can also send a signal to those processes, which is lowkey the whole point if you're trying to free up a mountpoint, for example. 😌


πŸ’– OPTIONS πŸ’–

  • -k signalspec β€” send the given signal to all processes that match. girlboss move tbh.
  • -P β€” show only the PIDs</> of the processes that matched. no extra noise, just numbers. minimalist queen. πŸ‘‘

🌈 DIFFERENCES TO lsof/fuser 🌈

this is the part where ofl ate and left no crumbs:

  • lsof /home/user and fuser /home/user would not list processes that have a descriptor open on /home/user/subdir. πŸ’€ like, they just wouldn't. embarrassing for them honestly.
  • fuser -m /home/subdir would automatically go down to the root of a vfsmount (e.g. /home) and list all processes, instead of limiting to /home/subdir. that's giving "oversharing" energy fr fr β€” ofl stays in its lane 🧚

⭐ SEE ALSO ⭐

hxtools(7)

go read it bestie, it's the whole family πŸŽ€


k so that's the page!! written by the hxtools girlies, dated 2008-11-01 β€” a classic, a legend, an absolute era πŸ‘‘βœ¨ mwah, bye!! πŸ’–
πŸ“¦ where this page comes from