March 07, 2018

MAC(Modify, Access, Creation/Change) time

❑ MAC(Modify, Access, Creation/Change) time : The time information of a file.

❑ Modify time : The time the contents of the file was changed(Not file's property).
❍ Directory file related : Changing the contents of files in the directory(not file's property).
❍ Non-directory file related : save(even if it isn't modified).
❍ The time shown in "ls -al".

❑ Access time : The time the file was read.
❍ Directory file related : ls(However, it doesn't changed by  every "ls". it works sometimes).
❍ Non-directory file related : cat, more, vi, etc. 
❍ The time shown in "ls -ul".

❑ (Windows) Creation time(=Birth time)The time the file was created.
❍ Related : Copy, decompress etc.

❑ (Unix/LinuxChange timeThe time the property of the file was changed(Not file's contents).
❍ The time shown in "ls -cl".


FYI.
- (Windows) The MAC time does not change when changing the file name.
- (Linux) The change time is changed when a file name is changed.
- When the modify time is changed, the change time is also changed.