Linked Questions

155
votes
7answers
241k 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.
57
votes
3answers
273k 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 ...
36
votes
3answers
24k 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 ...
20
votes
5answers
63k views

get age of given file

How can I get the age of a given file in, at least, days? I'm well aware of ls -lh and similar commands. I want something that will work sort of like this: getfage <FILE> # prints out '12d' (...
10
votes
1answer
4k views

How do I get the creation date of a file on an NTFS logical volume?

I created an NTFS logical volume on my Linux system for Windows file storage because I want to retain the creation date of my files (I would probably zip them into an archive and then unzip them, ...
6
votes
1answer
2k views

When was file created [duplicate]

How can i see when a file was created. I have looked at man page ls -lc is for last modification of file status ls -lu for access time ls -l not exactly indicated which time, last changed? I ...
3
votes
1answer
8k views

How to find files that were most recently created on file system?

I am trying to track the completion of a silent installer by detecting the presence of the last file created by it, but in order to do that I need to find out which file that is. Is there any way to ...
3
votes
0answers
184 views

Portable way of finding files whose birth date is after a given timestamp

According to How to find creation date of file?, in Linux filesystems, such as ext4, Btrfs and JFS, that store the file creation time (aka birth time), it is possible to display the file birth time (...
2
votes
1answer
7k 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
1answer
4k views

Does "freshening" a zip file with the -FS option change the modification time of the file?

I have a zip file that I use as a backup for my work. I use the "freshen" option (-FS) whenever I want to update my backup file. However, the file shows the date of last modification as being the ...
1
vote
1answer
211 views

How to create a bash script that sees all files in a directory and tells me their size and date of creation?

I'm trying to write a bash script that will see all files in a directory, and then tell me each file's size and each of their dates of creation.
0
votes
0answers
40 views

Why does the history command show few commands and the .bash_history file is short even if HISTFILESIZE and HISTSIZE are ridiculously high?

I've read these two questions and the accepted answers on StackOverflow: Unlimited Bash History bash HISTSIZE vs. HISTFILESIZE? However, I still don't understand why in any bash session I can see ...
0
votes
0answers
103 views

How to disable system-wide timestamp of file system?

I am using Fedora 33 (GNOME + kernel-5.10.8-200.fc33) and how can I disable system wide timestamp of file system? For example, I want to disable change time (ctime) and birth time (btime).
0
votes
0answers
175 views

birth/crtime timestamp is recorded on one xfs but not the other xfs filesystem

Two different xfs filesystems on two different Fedora. Why one of them records Birth(crtime) in the inode and why the other one doesn't? How to find the configuration/attribute differences between ...
0
votes
1answer
295 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 ...

15 30 50 per page