LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Created and Modified date (https://www.linuxquestions.org/questions/linux-newbie-8/created-and-modified-date-576776/)

linux2man 08-13-2007 10:43 AM

Created and Modified date
 
Hello;

How I can know Created and Modified date for files by ls or any another tool?

Please, tell me summary about different between Created and Modified date

========
Thanks

unSpawn 08-13-2007 12:10 PM

mtime
The mtime (modify time) is the time when the actual contents of a file was last modified.
This is the time displayed in a long directoring listing (ls -l), or use "ls -lart --full-time".

atime
The atime (access time) is the time when the data of a file was last accessed. Displaying
the contents of a file or executing a shell script will update a file's atime, for example.
You can view the atime with the ls -lu command, or use "ls -laru --full-time".

ctime
In UNIX, it is not possible to tell the actual creation time of a file. The ctime (change time)
is the time when changes were made to the file or directory's inode (owner, permissions,
etc.). It is needed by the dump command to determine if the file needs to be backed up.
You can view the ctime with the ls -lc command, or use "ls -larc --full-time".


All times are GMT -5. The time now is 07:28 PM.