![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| mtime, ctime, and atime | Perderabo | Tips and Tutorials | 2 | 08-30-2007 06:13 AM |
| find . -mtime | topcat8 | UNIX for Dummies Questions & Answers | 1 | 04-26-2006 07:55 AM |
| atime, ctime, mtime somewhere along csize.. | moxxx68 | UNIX for Dummies Questions & Answers | 4 | 03-02-2005 03:14 PM |
| mtime vs ctime | moxxx68 | UNIX for Dummies Questions & Answers | 3 | 11-06-2004 07:57 PM |
| ctime & find | 98_1LE | UNIX for Dummies Questions & Answers | 1 | 06-22-2001 12:33 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
how to find ot ctime , mtime ,atime
Can any one tell me how to find out ctime , mtime ,atime for a file/directory on unix.
Cheers, Nilesh |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
Ever heard of the ls command? Check the man page.
|
|
#3
|
|||
|
|||
|
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 ?? |
|
#4
|
|||
|
|||
|
ls -ltr
ls -lutr ls -lctr Check MAN page, my dear MAN |
|
#5
|
|||
|
|||
|
Thanks mate.
One of those days where head is buzzing offf....!!!!!! |
|
#6
|
|||
|
|||
|
Code:
$ sudo debugfs /dev/sda1 [sudo] password for testman: debugfs 1.41.3 (12-Oct-2008) debugfs: cd /home/testman debugfs: stat filename debugfs: quit Code:
$ stat filename Last edited by lifegeek; 1 Week Ago at 11:47 AM. |
|||
| Google The UNIX and Linux Forums |