Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

zsh/stat: output file birth time under Linux



Could zsh/stat output birth time under Linux, like what stat from
the GNU coreutils does?

cventin:~> zstat foo
device  2053
inode   21542983
mode    33188
nlink   1
uid     1000
gid     1000
rdev    0
size    0
atime   1623671935
mtime   1623671926
ctime   1623671926
blksize 4096
blocks  0
link    

cventin:~> /usr/bin/stat foo
  File: foo
  Size: 0               Blocks: 0          IO Block: 4096   regular empty file
Device: 805h/2053d      Inode: 21542983    Links: 1
Access: (0644/-rw-r--r--)  Uid: ( 1000/vlefevre)   Gid: ( 1000/vlefevre)
Access: 2021-06-14 13:58:55.440586835 +0200
Modify: 2021-06-14 13:58:46.488605110 +0200
Change: 2021-06-14 13:58:46.488605110 +0200
 Birth: 2021-06-14 13:56:54.992843658 +0200

-- 
Vincent Lefèvre <vincent@xxxxxxxxxx> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)




Messages sorted by: Reverse Date, Date, Thread, Author