MKFILE(8)

πŸ“¦ version 1042.100.6.0.1, in nixpkgs unstable

✨ mkfile(8): create a file, from the System Manager's Manual ✨

okay bestie, you found the mkfile(8) page and honestly? it's giving β€œmake files that behave” πŸ’…. Let's get into it.

πŸ’– NAME πŸ’–

mkfile β€” create a file. that's it, that's the name, periodt πŸ‘‘

🌸 SYNOPSIS 🌸

mkfile [-nv] size[b|k|m|g] file ...

πŸ¦‹ DESCRIPTION πŸ¦‹

mkfile creates one or more files that are suitable for use as NFS-mounted swap areas. no cap, that's the whole point 🫢.

The sticky bit is set, and by default the file is padded with zeroes. Non-root users must set the sticky bit using chmod(1) β€” so if that's you, grab chmod(1) and handle it, bestie ✨.

The default size unit is bytes, but you can use these suffixes to multiply by the given factor:

  • b β€” multiply by 512
  • k β€” multiply by 1024
  • m β€” multiply by 1048576
  • g β€” multiply by 1073741824

πŸŽ€ OPTIONS πŸŽ€

  • -n β€” creates an empty filename. The size is noted, but disk blocks aren't allocated until data is written to them. it's lowkey β€œreserved, not furnished” energy πŸ›‹οΈ.
  • -v β€” verbose. reports the names and sizes of created files. main character behavior: it announces what it made πŸ‘‘.

🚨 WARNING 🚨

If a client's swap file is removed and recreated, it must be re-exported before the client will be able to access it. This action may only be done when the client is not running.

fr fr, do not skip this part 😭.

🌈 SEE ALSO 🌈

go read those next, iykyk πŸ’œ.

signed off by macOS, dated September 1, 1997, and filed under MKFILE(8) β€” mwah πŸ’‹

πŸ“¦ where this page comes from