I heard that timestamps in APFS are in nanoseconds.
Are there any commands that are able to show APFS timestamps in nanoseconds?
I've tried ls
, stat
but no luck so far.
If the "file system is a newer version" and is labeled as "Apple File System" then your startup disk is using APFS and is not currently rebuildable.
Why the change? Apple has been using the HFS+ file system, and its predecessor HFS, for more than 30 years. As computers have changed, there has been a need to update the way the file system works. These older file systems were designed for smaller disks — even floppy disks — with fewer and smaller files.
Apple File System (APFS), the default file system for Mac computers using macOS 10.13 or later, features strong encryption, space sharing, snapshots, fast directory sizing, and improved file system fundamentals.
Apple File System (APFS) is a proprietary file system developed and deployed by Apple Inc. for macOS Sierra (10.12. 4) and later, iOS 10.3 and later, tvOS 10.2 and later, watchOS 3.2 and later, and all versions of iPadOS.
You can get nanosecond timestamps by requesting floating point output:
% stat -f %Fm foo
1609297230.485880489
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With