System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

Check when an OLD file was last modified

SOLVED
Go to solution
f. halili
Trusted Contributor

Check when an OLD file was last modified

Hello,

I did an ll and could see the timestamp of the files. However for old files, ;ets say from 2008, it only has the date ( no timestamp ).

How do I check the last time a file was modified?

Thanks,
f. halili
derekh
4 REPLIES
Avinash20
Honored Contributor

Re: Check when an OLD file was last modified

There is a software which could be installed to view the timestamp..Let me find it out.
"Light travels faster than sound. That's why some people appear bright until you hear them speak."
Avinash20
Honored Contributor
Solution

Re: Check when an OLD file was last modified

http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=91165
"Light travels faster than sound. That's why some people appear bright until you hear them speak."
James R. Ferguson
Acclaimed Contributor

Re: Check when an OLD file was last modified

Hi:

One way:

# perl -le 'for (@ARGV) {-e $_ and print $_," @ ",scalar localtime((stat($_))[9])}' file

You can pass multiple file and/or directories as arguments.

Regards!

...JRF...
f. halili
Trusted Contributor

Re: Check when an OLD file was last modified

THANKS!
derekh