Linked Questions

1
vote
0answers
102 views

Getting file crtime under ext4 file system [duplicate]

I'm trying to display a file is creation time. I've been searching and I found out that under ext4 file systems this is something indeed possible to get and it's stored as crtime. As you can see in ...
1
vote
0answers
71 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 ...
171
votes
3answers
493k 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 ...
107
votes
5answers
157k 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.
36
votes
2answers
199k views

Changing a file's “Date Created” and “Last Modified” attributes to another file's

I'm using merge cap to create a merge pcap file from 15 files. For the merged file, I have changed the name to that of the first of the 15 files. But I would also like to change the merged file's ...
29
votes
3answers
17k views

What file systems on Linux store the creation time?

Are there any (good known, reliable) file systems on Linux that store the creation time of files and directories in the i-node table? If there are, is the "changed" time replaced by the creation ...
11
votes
1answer
5k views

How to reliably get timestamp at which the system booted?

I'm aware of the uptime command, but it returns seconds since booted, so if I just substract that number from current timestamp, in theory I can get a different result if second changes after I've ...
6
votes
3answers
7k views

How to change files creation time? (touch changes only modified time) [duplicate]

How to change files CREATION time? I tried to use 'touch' command but it changes only the last modified time - it does not change the first date - creation date. (After checking by 'stat' it still ...
3
votes
5answers
2k views

How to find what device a file is on (and use that in a script)?

I want to find out what device my file is on so that I can use it in a script. I can get this far: $ df . Filesystem 512-blocks Used Available Capacity Mounted on /dev/disk0s2 498438976 ...
11
votes
1answer
673 views

Does Linux have system calls to access all the features of the file systems it supports?

Linux supports many file systems (for example: ext3, NTFS, FAT32, etc.). The following diagram shows how Linux allows a process to access files: So assume that a process called the read() system ...
-1
votes
3answers
1k views

Find the time of the file received in a particular directory

I have a directory called /home/mydir/test A file will be sent from some other team which lands in this directory. How to find what is the time the file came to this particular directory? ( I need ...
6
votes
1answer
346 views

Why does my file have multiple crtime entries?

Using ext4 filesystem I was able to read out the creation time of a file using the approach here. As a result I am indeed provided with a table featuring the crtime (creation time) of the inode(...
1
vote
2answers
33 views

modify time for extracted folder

I just (today is 31-jan-2019) downloaded some random source.tar.gz and extracted it. When I do stat on the resulting folder, I see: Access: 2019-01-31 10:37:26.308991485 +0100 Modify: 2018-11-18 00:...
0
votes
1answer
41 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 ...