Linked Questions

3
votes
2answers
997 views

Why doesn't unix filesystem store creation time of a file? [duplicate]

Is there any historic reason? Stat stores last accessed time, last modified time and last changed time , but not the creation time! Isn't that important information. I can't understand why the ...
172
votes
3answers
501k views

Get file created/creation time? [duplicate]

Possible Duplicate: How do I do a ls and then sort the results by date created? Is there a command in Linux which displays when the file was created ? I see that ls -l gives the last modified ...
102
votes
7answers
292k views

How to find creation date of file?

I want to find out the creation date of particular file, not modification date or access date. I have tried with ls -ltrh and stat filename.
109
votes
5answers
159k views

How do I do a ls and then sort the results by date created?

In what order are the dated ordered by? Certainly not alphanumeric order. ls -lt sorts by modification time. But I need creation time.
76
votes
5answers
36k views

Birth is empty on ext4

I was just reading up on the Birth section of stat and it appears ext4 should support it, but even a file I just created leaves it empty. ~ % touch test ...
14
votes
7answers
18k views

Shell script for moving oldest files?

How do I write a script for moving just the 20 oldest files from one folder to another? Is there a way to grab the oldest files in a folder?
2
votes
1answer
4k views

Is ctime of find the creation time? [duplicate]

In the man of find the -ctime is said to be : -ctime n File status was last changed n*24 hours ago. See the comments for -atime to understand how rounding affects the ...
2
votes
2answers
123 views

Awk not rendering any result

My goal is to get the file created in the current month in a directory. It seems that the command is correct but not rendering any result: Date=`date '+%b'` echo $Date Oct ls -l | awk -v d="$Date" ...
0
votes
1answer
255 views

How to get new created (not change or modified), & removed files in last 24 hours

I want to write one script where I need the below function : List all the files which are created in last 24 hours. If I give the find command with ctime option then it list all files which are ...
1
vote
0answers
73 views

Why is time of birth of file unknown? [duplicate]

Command stat -c%w /home/knezi/file returns just dash. It means, according to the documentation, that the date of birth in unknown. I've tried plenty of files but all with the same result. The ...
0
votes
1answer
54 views

How to prevent `atime` in Linux from overwriting `Date created` in Windows on NTFS?

From Linux, if I alter files on an NTFS external HD so that I get some specific values for mtime, atime and ctime (readable with the stat command, and with ctime = mtime because one cannot change ...