Can any one tell me how to find out ctime , mtime ,atime for a file/directory on unix.
Cheers,
Nilesh
Can any one tell me how to find out ctime , mtime ,atime for a file/directory on unix.
Cheers,
Nilesh
Ever heard of the ls command? Check the man page.
when I do the execute ls -l command I get the long listing of the files/dir
what I am after is how to get the ctime,mtime and atime for a file.
/home/den/sedscripts> ls -lc
total 48
-rwxrwxrwx 1 dhawalen ccm_scd 23 Aug 10 10:17 ouput
-rwxrwxrwx 1 dhawalen ccm_scd 147 Aug 10 10:27 sedscript
-rwxrwxrwx 1 dhawalen ccm_scd 134 Aug 10 10:17 testdata
is there any way to find out the same.
also if I want to know why year file in created how would I know tht as above dosent say any thing about year ??
ls -ltr
ls -lutr
ls -lctr
Check MAN page, my dear MAN
Thanks mate.
One of those days where head is buzzing offf....!!!!!!
$ sudo debugfs /dev/sda1
[sudo] password for testman:
debugfs 1.41.3 (12-Oct-2008)
debugfs: cd /home/testman
debugfs: stat filename
debugfs: quit
or
$ stat filename
you could see ctime atime mtime at the same time