Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to know the creation time of a file in ubuntu?

i am using ubuntu and want to know the creation time of a file even when it gets modified or accessed ?

like image 316
fenec Avatar asked Sep 28 '10 13:09

fenec


People also ask

How can I find out when a file was created?

Windows file propertiesRight-click the file and select Properties. In the Properties window, the Created date, Modified date, and Accessed date is displayed, similar to the example below.

How do you find out when a file was created in Linux?

The easiest way to get the file creation date is with the stat command. As we can see, the creation date is shown in the “Birth” field.

How can I tell who created a file in Linux?

A. You can use ls -l command (list information about the FILEs) to find our the file / directory owner and group names. The -l option is known as long format which displays Unix / Linux / BSD file types, permissions, number of hard links, owner, group, size, date, and filename.

What is file History Ubuntu?

The fhist program is used to keep track of the successive versions of a file. Using this program, you can remember all of your changes to a file, and get back any one of the old versions.


1 Answers

Unfortunately Unix does not store the creation time of a file.

All you are able to get using stat is

  1. time of last access
  2. time of last modification
  3. time of last status change

Note: When using filesystem type ext4 crtime is available!

like image 113
Thariama Avatar answered Oct 10 '22 03:10

Thariama