- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: difference between -ctime and -mtime using fin...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-16-2005 02:27 AM
тАО12-16-2005 02:27 AM
Why do I get no result when I use -ctime but
get -mtime works fine (yields 1 file as expected). What's the difference between two ?
# date
Thu Dec 15 10:22:23 EST 2005
# touch -mt 12011259 ahd_12_15_05.log
# ll ahd_12_15_05.log
-rwxr-xr-x 1 root sys 0 Dec 1 12:59 ahd_12_15_05.log
# find $APP_LOG -name 'ahd*log' -ctime +10
# find $APP_LOG -name 'ahd*log' -mtime +10
/opt/hpws/apache/logs/ahd_12_15_05.log
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-16-2005 02:31 AM
тАО12-16-2005 02:31 AM
SolutionSimply put - mtime is last time of modification of the file itself & ctime is last time of modification of the metadata of the file - owenrship, perms, etc.
HTH,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-16-2005 02:33 AM
тАО12-16-2005 02:33 AM
Re: difference between -ctime and -mtime using find ?
ctime - time of last modification of the inode (file created, mode changed, etc.)
mtime - time of last modification of the file (file created, file changed )
HTH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-16-2005 03:29 AM
тАО12-16-2005 03:29 AM
Re: difference between -ctime and -mtime using find ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-16-2005 03:40 AM
тАО12-16-2005 03:40 AM
Re: difference between -ctime and -mtime using find ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-16-2005 03:56 AM
тАО12-16-2005 03:56 AM
Re: difference between -ctime and -mtime using find ?
Good comment, I noticed this is going on
all weeks, newlings hitting questions,but
then run.
we need some education here !!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-16-2005 04:03 AM
тАО12-16-2005 04:03 AM
Re: difference between -ctime and -mtime using find ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-16-2005 04:04 AM
тАО12-16-2005 04:04 AM
Re: difference between -ctime and -mtime using find ?
http://66.34.90.71/ITRCForumsEtiquette/
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-16-2005 04:22 AM
тАО12-16-2005 04:22 AM
Re: difference between -ctime and -mtime using find ?
Othewise, one could potentially get 30-40pts on one thread. I assume that is how it is suppose to work. Correct me if i am wrong.