Linux when was file created




















So no, you can't. GustavoH GustavoH 2 2 silver badges 9 9 bronze badges. It's not necessarily the creation time. It seems ls -l displays Modify time, not Creation or Birth time — truf. As mikyra explained, creation date time is not stored anywhere. Luca Davanzo Luca Davanzo Community Bot 1 1 1 silver badge. Mike Chen Mike Chen 2 2 silver badges 4 4 bronze badges. Not pleasing to most because it requires sudo and debugfs.

Zibri Zibri 7, 2 2 gold badges 42 42 silver badges 39 39 bronze badges. Rocky Li 4, 1 1 gold badge 13 13 silver badges 25 25 bronze badges. Axoloti Axoloti 1. Sign up or log in Sign up using Google. Sign up using Facebook.

Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Podcast Explaining the semiconductor shortage, and how it might end. Does ES6 make JavaScript frameworks obsolete? Featured on Meta. TecAdmin Home Ubuntu Related Posts. Tee Command in Linux with Examples October 26, Handling filenames with spaces in Linux September 15, Christopher on December 2, am. How to find all files creation date and time in unix?? Hi , I wanted to to copies files from one location to another which is created on time When I tried the stat command, it states Birth: -.

So how can I find the creation time of a file? Improve this question. Keep in mind that the 'creation time' of a file is not guaranteed to be accurate. There are many ways to 'fudge' the creation dates on a file. ThomasWard Many more than ways to fudge other file data? See also: unix. Add a comment. Active Oldest Votes. What I tested : Created a directory at specific time.

Accessed it. Modified it by creating a file. I tried the command and it gave an exact time. Then i modify it , and test again , the crtime remained the same , but modify and access time changed. Improve this answer. I post this , because i like to discuss so i can understand better , i am wonder why people say that Linux doesn't support this feature — nux.

Because Linux itself does not. The ext4 filesystem does have this information but the kernel does not provide an API to access it.

Apparently, debugfs extracts it directly from the filesystem so it does not need to use the kernel's API. See here. I tested it. It worked perfectly on ext4 file system — Fahim Babar Patel. Seems like this is ext4 specific? It didn't work with XFS for me. Show 2 more comments. Also just guessing creation times show the date when an ext3 filesystem was converted to ext4?

When I tried the above discoverd that the filespec has to be the tree from the device eg. More Articles You May Like. One question, how do we do this on a logical volume? For example, I am getting below error.



0コメント

  • 1000 / 1000