FSTYP(8)

πŸ“¦
version 757 Β· 3 versions
, in nixpkgs unstable

πŸ’… fstyp(8) β€” identify a file system πŸ’…

okay so bestie, real talk: this page comes from the System Manager's Manual, and it's all about figuring out what kind of volume is living on a device. lowkey detective energy. πŸ•΅οΈβ€β™€οΈβœ¨

🌸 NAME 🌸

fstyp β€” identify a file system

✨ SYNOPSIS ✨

fstyp device

🫢 DESCRIPTION 🫢

The fstyp utility attempts to determine what sort of volume is present on the given device. it's giving "what are you, bestie?" but for disks. πŸ’–

How does it do this? iconic behavior: it operates by iterating over directories that are typically part of the path, searching for files matching the pattern fstyp_*, and running them. it's literally out here running little helper files until something matches. πŸŽ€

If it finds a match, it will print out the file system type name and exit with a return value of 1. yup, 1 β€” that's the match vibe. πŸ‘‘

If it does not find a match, it will not print out anything, and the return value will be 0. silent. mysterious. no notes. πŸ’€

lowkey important: match = it prints the file system type name + return value 1; no match = it prints nothing + return value 0. that's the whole vibe check, periodt. 🫢

mwah πŸ’‹ this lil icon is from Debian, dated August 15, 2005, and it's the FSTYP(8) page in the System Manager's Manual. slay and goodbye. πŸ¦‹βœ¨

πŸ“¦ where this page comes from