Skip to main content
edited tags
Link
Kusalananda
  • 355.8k
  • 42
  • 735
  • 1.1k
Source Link
Wizard
  • 2.6k
  • 5
  • 31
  • 61

The BSD's stat option equivalent to `%y` in GNU

There's an option %y which state the last modification time %y time of last data modification, human-readable

BSD's stat could list verbose information as

    $ stat -x Foo
      File: "Foo"
      Size: 96           FileType: Directory
      Mode: (0755/drwxr-xr-x)         Uid: (  501/   me)  Gid: (   20/   staff)
    Device: 1,4   Inode: 8605007622    Links: 3
    Access: Thu Apr 12 10:28:45 2018
    Modify: Thu Mar 22 09:44:46 2018
    Change: Thu Mar 22 09:44:46 2018

What's the equivalent to %y in BSD stat?