Languages
[Edit]
EN

Bash - get file modification, access and change times

10 points
Created by:
Khloe-Kaiser
578

In this short article, we would like to show how to get a modification, access, and change times for any file under Bash / Linux.

Quick solution (run the following command):

Example output:

Where:

  • Access: 2021-09-14 13:10:32.089482633 +0200
    indicates the time when the file was accessed last time,
  • Modify: 2021-09-14 13:10:46.558002340 +0200
    indicated the time when file content was changed last time (e.g. some data was written),
  • Change: 2021-09-14 13:11:30.923595933 +0200
    indicates the time when file metadata was changed last time (e.g. file name was changed).
1
Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.
Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join