lsdosattr(1)
π lsdosattr π
okay so bestie, welcome to lsdosattr, section 1 of the General Commands Manual β it's the lil tool that spills the tea on your DOS file attributes π
β¨ NAME β¨
lsdosattr β list DOS file attributes π
πΈ SYNOPSIS πΈ
lsdosattr [ -RadlVh ] [ FILES... ]
π¦ DESCRIPTION π¦
lsdosattr literally lists the DOS attributes, the size, and the VDL (that's valid data length, iykyk) of files. no cap, that's the whole job.
the DOS attributes are, in order:
r(READONLY)h(HIDDEN)s(SYSTEM)v(VOLUME)s(DIRECTORY)a(ARCHIVED)
every file gets shown in 4 columns that represent the attributes, size, and VDL of the file π
and when you pass the -l option, the columns show up in the order of file name, size, VDL and long attributes β main character formatting fr fr β¨
π OPTIONS π
-Rβ list subdirectories recursively π (it goes all the way down, bestie)-aβ do not ignore entries starting with a dot ('.') π (yes, the sneaky hidden ones)-dβ list directories themselves, not their contents π (directory in its own era)-lβ use long attribute names instead of single character abbreviations π-Vβ show version β-hβ show help π«Ά
π₯ EXIT STATUS π₯
0β on success π (we ate)1β when no file could be listed π2β on usage error π3β when an error occurred but at least one file was successfully listed π (partial slay)
π§ NOTE π§
okay this part is the lore, so listen up.
the Linux kernel does not provide a special interface for reading the VDL (valid data length). if the in-kernel exFAT implementation is "VDL-aware", the VDL offset is treated as the start of the "hole" (SEEK_HOLE) that ranges to EOF. therefore, the approximate VDL can be inferred from lseek(2) β and this is why lsdosattr merely prints the first hole it encounters as the VDL. periodt. π
in vFAT, exFAT and NTFS, only the READONLY attribute is controlled through the owner write permission bit. the Linux kernel always sets ARCHIVE on files it creates and modifies. HIDDEN and SYSTEM can only be controlled through ioctl_fat(2). lsdosattr(1) and chdosattr(1) are the wrappers for the ioctl π«Ά
π SEE ALSO π
lsattr(1), ioctl_fat(2) and the documentation on ATTRIB command in Microsoft Windows and various DOS π
and that's the whole page, bestie π this was lsdosattr(1) from the General Commands Manual β the very same lsdosattr(1) that signs off at the bottom, so go forth and vibe check those DOS attributes πβ¨π¦
π¦ where this page comes from
- arch rolling: exfatprogs 1.4.3-1 Β· GPL-2.0-or-later
- fedora 43: exfatprogs 1.4.3-1.fc43 Β· GPL-2.0-only
- fedora 44: exfatprogs 1.4.3-1.fc44 Β· GPL-2.0-only
- nixpkgs unstable: exfatprogs 1.4.3
- ubuntu stonking: exfatprogs 1.4.3-1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms