Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: zsh/stat: output file birth time under Linux
2021-06-14 14:09:03 +0200, Vincent Lefevre:
> Could zsh/stat output birth time under Linux, like what stat from
> the GNU coreutils does?
[...]
+1
Adding corresponding glob qualifiers (filter and sort), and
to whereever mtime/atime/ctime are also used would also make
sense.
On Linux, you need the statx() API which has been relatively
recently added to the kernel (and even more recently to glibc,
not sure about other libcs). See
https://unix.stackexchange.com/questions/304779/is-there-still-no-linux-kernel-interface-to-get-file-creation-date/452058#452058
Other Unices including FreeBSD/macOS have had APIs for that for
a long time, I don't think there's much standardisation though.
--
Stephane
Messages sorted by:
Reverse Date,
Date,
Thread,
Author