View the file time on Linux with second precision.

In Linux, you can use the ls command to view a file’s timestamp, including the time accurate to the second. By default, the ls command displays the timestamp accurate to the minute, but if you need it down to the second, you can use the –full-time option.

ls --full-time <文件路径>

For example, to view the timestamp (down to the second) of the file located at /path/to/file.txt, you can run the following command:

ls --full-time /path/to/file.txt

This command will display detailed information about the file, including modification time, access time, creation time, etc., down to the second.

Leave a Reply 0

Your email address will not be published. Required fields are marked *


广告
Closing in 10 seconds
bannerAds