- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- what's the difference of -ctime and -mtime in fin...
Operating System - HP-UX
1819805
Members
2992
Online
109607
Solutions
Forums
Categories
Company
Local Language
юдл
back
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
юдл
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
тАО07-26-2004 04:36 AM
тАО07-26-2004 04:36 AM
what's the difference of -ctime and -mtime in find command?
find / -ctime +2
find / -mtime +2
thanks everyone
find / -mtime +2
thanks everyone
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-26-2004 04:43 AM
тАО07-26-2004 04:43 AM
Re: what's the difference of -ctime and -mtime in find command?
mtime refers to the modification time of the file, while ctime refers to a change in the status information of the file. For example, you could use the touch command to alter the date of the file (the status information), without actually changing the file itself.
At least that's the way I interpret it.
Pete
Pete
At least that's the way I interpret it.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-26-2004 05:12 AM
тАО07-26-2004 05:12 AM
Re: what's the difference of -ctime and -mtime in find command?
Pete's right. Even if you can chnge both change and modification with touch (-c or -m).
You have 3 dates for a file :
. ctime : change time. It gives you the last time a modification was done on the inode. For example chmod. You can see it with ls -lu file.
. mtime : modification time. It gives the last time the file content was modified. For example with vi. It is the one normally displayed by ls -l.
. atime : access time. It gives you the last time the file was accessed. Even cat modifies this date.
Regards,
Fred
You have 3 dates for a file :
. ctime : change time. It gives you the last time a modification was done on the inode. For example chmod. You can see it with ls -lu file.
. mtime : modification time. It gives the last time the file content was modified. For example with vi. It is the one normally displayed by ls -l.
. atime : access time. It gives you the last time the file was accessed. Even cat modifies this date.
Regards,
Fred
--
"Reality is just a point of view." (P. K. D.)
"Reality is just a point of view." (P. K. D.)
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Learn About
News and Events
Support
© Copyright 2025 Hewlett Packard Enterprise Development LP