Skip to content

Instantly share code, notes, and snippets.

@abathur

abathur/stat Secret

Last active December 22, 2020 01:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abathur/d60f75de1f4988d5cd1f1f01e32e0c80 to your computer and use it in GitHub Desktop.
Save abathur/d60f75de1f4988d5cd1f1f01e32e0c80 to your computer and use it in GitHub Desktop.
coreutils stat v. bash loadable stat
$ /nix/store/dzk03dsfgq21192x37pfxrrhwqs6y05f-coreutils-8.32/bin/stat LICENSE
Mon Dec 21 2020 19:09:09 -->
File: LICENSE
Size: 1074 Blocks: 8 IO Block: 4096 regular file
Device: 1000008h/16777224d Inode: 13554117 Links: 1
Access: (0644/-rw-r--r--) Uid: ( 501/ abathur) Gid: ( 100/_lpoperator)
Access: 2020-07-23 18:52:43.317401894 -0500
Modify: 2020-07-23 18:52:42.135976606 -0500
Change: 2020-07-23 18:52:42.135976606 -0500
Birth: 2020-07-23 18:52:42.135863995 -0500
Mon Dec 21 2020 19:09:09 (92.4ms)
$ enable -f /nix/store/a19ajww2sj7qk4500pwcxzgr56h57xy5-auditbash/lib/bash/stat stat
Mon Dec 21 2020 19:06:59 -->
Mon Dec 21 2020 19:06:59 (15.98ms)
╓─[ faffer ] master ~/work/faffer
╚═>> abathur in nix-shell on ecf1160e $ stat LICENSE
Mon Dec 21 2020 19:07:05 -->
Mon Dec 21 2020 19:07:05 (1.48ms)
╓─[ faffer ] master ~/work/faffer
╚═>> abathur in nix-shell on ecf1160e $ echo ${STAT[@]}
Mon Dec 21 2020 19:07:21 -->
1 LICENSE 0644 13554117 4096 16777224 1595548363 - 8 501 1074 0 LICENSE 1595548362 1595548362 100
Mon Dec 21 2020 19:07:21 (913µs)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment