LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to Find File Creation Time (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-find-file-creation-time-4175535830/)

jojanmpaul 03-05-2015 06:45 AM

How to Find File Creation Time
 
Hello,
ls -i mb1-pearsond.co.in.db05.cfg
275040 mb1-pearsond.co.in.db05.cfg

debugfs -R 'stat <275037>' /dev/mapper/VGdata-LVdata

debugfs 1.41.12 (17-May-2010)
Inode: 275037 Type: bad type Mode: 0000 Flags: 0x0
Generation: 0 Version: 0x00000000
User: 0 Group: 0 Size: 0
File ACL: 0 Directory ACL: 0
Links: 0 Blockcount: 0
Fragment: Address: 0 Number: 0 Size: 0
ctime: 0x00000000 -- Thu Jan 1 05:30:00 1970
atime: 0x00000000 -- Thu Jan 1 05:30:00 1970
mtime: 0x00000000 -- Thu Jan 1 05:30:00 1970
Size of extra inode fields: 0
BLOCKS:

I am not able get the file created time, its not showing.

jpollard 03-05-2015 06:58 AM

Depends on the filesystem...It only exists under ext4, Btrfs and JFS.

Is this a deleted file?

BTW, you show in the ls inode #275040 but attempt to examine #275037.


All times are GMT -5. The time now is 03:43 AM.