Operating System - HP-UX
1829913 Members
3088 Online
109993 Solutions
New Discussion

How to list files > 1 year in HP-UX?

 
Mei Jiao
Respected Contributor

How to list files > 1 year in HP-UX?

Hello,

May I know how can I list files that is > 1 year in HP-UX?

From # man find, atime, mtime & ctime only apply for 24 hour.

Kindly advice. Thank you.
5 REPLIES 5
Mei Jiao
Respected Contributor

Re: How to list files > 1 year in HP-UX?

I guess I see wrongly:
-atime n -mtime n -ctime n
n --> multiples of 24 hours

So, I can actually do:
# find -mtime +356
Eric Antunes
Honored Contributor

Re: How to list files > 1 year in HP-UX?

Hi Mei,

It depends of what it is important for you: atime refers to the last Access Time; mtime refers to the last Modification Time; ctime refers the last Change Time.

For exemle, to find files not changed for more than a year, execute:

find -ctime +365 -name *...

Best Regards,

Eric
Each and every day is a good day to learn.
Mei Jiao
Respected Contributor

Re: How to list files > 1 year in HP-UX?

By the way, what's the difference with last 'modification' time and last 'change' time?

What are the meanings of 'modification' and 'change'?? ;)
A. Clay Stephenson
Acclaimed Contributor

Re: How to list files > 1 year in HP-UX?

Modification refers to an actual change of data, i.e. the actual
contents of a file; e.g; you modify a line of text from "Cletus" to "Bubba" (or add a "Bubba" record). On the other hand, "change" refers to a file's metadata. i.e. a
chmod, chown, or chgrp.

If it ain't broke, I can fix that.
Mei Jiao
Respected Contributor

Re: How to list files > 1 year in HP-UX?

Thanks Clay for your explanation! :)