xfs_mkfile(8)

πŸŽ€ xfs_mkfile(8) πŸŽ€

✨ NAME ✨

okay so xfs_mkfile is the bestie that creates an XFS file πŸ¦‹ that's literally it, no cap.

πŸ’– SYNOPSIS πŸ’–

xfs_mkfile [ -v ] [ -n ] [ -p ] size[k|b|m|g] filename ...
xfs_mkfile -V

🌸 DESCRIPTION 🌸

bestie, xfs_mkfile makes one or more files for you ✨ by default the file gets padded with zeroes 🫢 the size is in bytes unless you tell it otherwise, and you can slap on a suffix to flag it as kilobytes (k), blocks (b), megabytes (m), or gigabytes (g) πŸ’… it's giving organized.

πŸ‘‘ OPTIONS πŸ‘‘

  • -v β€” Verbose πŸ“£ it reports the names and sizes of the files it creates. main character energy πŸ’œ
  • -n β€” No bytes πŸ™ˆ this makes a holey file, which means it doesn't write any data at all. it just seeks to the end of the file and writes a block. lowkey genius 🧚
  • -p β€” Preallocate 🌈 the file gets preallocated, then overwritten with zeroes, then truncated down to the size you wanted. the way that this one takes the long route 😭
  • -V β€” Version πŸ“ prints the version number and exits. quick and iconic ⭐

⚠️ bestie, the sizes are in bytes by default, so if you want a big file, don't forget the suffix! πŸ’€

okay that's the whole tea 🫢 xfs_mkfile(8) is officially explained, periodt πŸ’–βœ¨

πŸ“¦ where this page comes from