LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
LinkBack Search this Thread
Old 08-13-2007, 10:43 AM   #1
linux2man
Member
 
Registered: Oct 2006
Posts: 33

Rep: Reputation: 16
Question 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
 
Old 08-13-2007, 12:10 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 26,534
Blog Entries: 51

Rep: Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601
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".
 
  


Reply

Tags
atime, ctime, mac, mtime


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
nautilus: changing the appearance of the 'date modified' column? apeekaboo Linux - Software 1 09-23-2011 03:36 AM
[bash] Seeing if a file has been modified before/after a date w3stfa11 Programming 7 10-15-2006 06:02 PM
Find all files created or modified between 2 times MicahCarrick Linux - Software 3 06-29-2006 04:22 PM
php read file creation, modified date problem antony_csf Programming 3 08-18-2004 06:46 AM
Where can I look for the config file for modified date and time ForumKid Linux - General 1 09-19-2003 08:05 AM


All times are GMT -5. The time now is 09:23 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration