STATFILE(1)
π STATFILE(1) π
okay bestie, welcome to the manual for statfile β full manual-name energy: the statfile program. β¨
π SYNOPSIS π
statfile -options file [command arg ...]
β¨ DESCRIPTION β¨
So here's the tea: statfile calls stat() on file, sets the environment variables specified in options according to the stat information, and runs command. π
If file begins with a digit, it's interpreted as a file descriptor, and passed to fstat(). π«Ά
If command is not given, statfile exits zero, indicating that the stat() call was successful. No command? no problem β successful stat() flex. π
The leading - in the options argument is not required. (Not required! optional! lowkey iconic.) β¨
Options are as follows:
π OPTIONS π
lβ calllstat()instead ofstat()dβ set$DEVto the file's device numberiβ set$INOto the file's inode numbertβ set$TYPEto the file's type:-for regular filesdfor directorieslfor symlinkspfor fifossfor socketscfor character devicesbfor block devices
mβ set$MODEto the file's permissions, in octal, e.g.:01777. Also set each of the following to1, or unset them, according to whether that bit is set in the permissions:MODE_SUIDMODE_SGIDMODE_STICKYMODE_RUSRMODE_WUSRMODE_XUSRMODE_RGRPMODE_WGRPMODE_XGRPMODE_ROTHMODE_WOTHMODE_XOTH
nβ set$NLINKto the number of hard links to the fileuβ set$UIDto the file owner's uidgβ set$GIDto the file group's gidrβ set$RDEVto the file's rdev numbersβ set$SIZEto the file's sizeSβ set$BLKSIZEto the block size for this filebβ set$BLOCKSto the number of blocks for this fileAβ set$ATIMEto the file's last access time, as a decimaltime_tvalue, and$ATAI64Nto the corresponding TAI64N label, in hexMβ set$MTIMEto the file's last modification time, as a decimaltime_tvalue, and$MTAI64Nto the corresponding TAI64N label, in hexCβ set$CTIMEto the file's last inode change time, as a decimaltime_tvalue, and$CTAI64Nto the corresponding TAI64N label, in hex
π that's the whole page, bestie β xoxo from the statfile program π
π¦ where this page comes from
- nixpkgs unstable: fdtools 2024.12.07
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms