HOLES(1)

πŸ’– HOLES πŸ’–

okay bestie, so this is the manual page for holes β€” the little tool that finds runs of zero bytes. yeah. it's giving forensic file detective. let's get into it πŸ•΅οΈβ™€οΈβœ¨


✨ SYNOPSIS ✨

holes [-b byte] [-n minlen] [-s] [files ...]

🌸 DESCRIPTION 🌸

so holes goes looking for runs of zero bytes (a.k.a. holes, hence the name, the branding is immaculate) inside the input files you give it β€” or in the standard input if you don't give it any files at all, she's flexible like that πŸ’…

then she prints out:

  • the start addresses β€” in hexadecimal
  • the lengths β€” in decimal

and when you hand her multiple input files, she's gonna prefix each line with the file name so you actually know which file is which. organized queen. πŸ‘‘

the options are as follows, and yes we're going through every single one, no skips:

  • -b byte β€” instead of counting runs of zero bytes, count runs of byte, which has to be a number between 0 and 255. custom hole flavor, obsessed πŸ“
  • -n minlen β€” changes the minimum size of holes reported. by default, only holes of at least 64 bytes get reported. so like, tiny baby holes? not invited. πŸ™ˆ
  • -s β€” prints a summary at the end telling you how many percent of the file are runs of zeroes. the vibe check at the end of the journey πŸ“Šβœ¨

πŸ’€ EXIT STATUS πŸ’€

the holes utility exits 0 on success, and >0 if an error occurs. slay = 0, not slay = bigger than 0. no in between. periodt.


πŸ¦‹ SEE ALSO πŸ¦‹

go read those too, bestie, they're all in the same friend group 🫢


πŸ‘‘ AUTHORS πŸ‘‘

Leah Neukirchen <leah@vuxu.org> β€” the icon, the legend, the moment. 🌈⭐


πŸ’œ LICENSE πŸ’œ

holes is in the public domain. literally free, no strings, no cap. πŸŽ€

to the extent possible under law, the creator of this work has waived all copyright and related or neighboring rights to this work.

http://creativecommons.org/publicdomain/zero/1.0/


and that's the whole page, bestie πŸ’– this beauty shipped with Debian, dated November 8, 2017 β€” a classic that still eats, no notes. now go find some holes. πŸ•³οΈβœ¨

πŸ“¦ where this page comes from