Dup Ver Goto 📝

StatCommand

PT2/aw/os/linux does not exist
To
19 lines, 106 words, 821 chars Page 'StatCommand' does not exist.

The stat command tells you information about a file at the filesystem level. Some common thing I use:

stat -c "%n -- %s"      # name and size, separated by --
stat -c "%w"            # creation time
stat -c "%x %y %z"      # other times

just running stat file tells you everything in a nicely formatted way.

$ stat google-chrome-stable_current_amd64_2023-03-30.deb 
  File: google-chrome-stable_current_amd64_2023-03-30.deb
  Size: 93863956        Blocks: 183344     IO Block: 4096   regular file
Device: 811h/2065d      Inode: 36191876    Links: 1
Access: (0664/-rw-rw-r--)  Uid: ( 1000/    john)   Gid: ( 1000/    john)
Access: 2023-03-30 13:07:17.341658398 +0100
Modify: 2023-03-30 12:32:00.519738325 +0100
Change: 2023-03-30 13:07:07.201715284 +0100
 Birth: 2023-03-30 12:28:51.964789312 +0100