- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: difference b/w change and modify terms
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
Forums
Discussions
Discussions
Discussions
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
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
07-02-2007 08:21 PM
07-02-2007 08:21 PM
I am little bit confuse with the term modify and change in the output of stat command.
Please clear me about same.
Thanks,
MKS
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2007 12:18 AM
07-03-2007 12:18 AM
Re: difference b/w change and modify terms
Please post the command you used and at least a sample of the output.
stat has many options, at least on Red Hat ES 5.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2007 12:27 AM
07-03-2007 12:27 AM
Re: difference b/w change and modify terms
The command is
# Stat
Regards,
MKS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2007 12:49 AM
07-03-2007 12:49 AM
SolutionThe 'stat' structure maintains three timestamps: an 'atime'; a 'ctime' and an 'mtime'. These timestamps are in units of of Epoch seconds.
The 'atime' represents the last access timestamp of a file or directory.
The 'mtime' represents the last time a file or directory was *modified*; that is, the last time the file was written into. The 'mtime' is coincidently equalivalent to a "creation" moment only when a file (or directory) is first instantiated. There is no creation timestamp.
The 'ctime' is the last time a *change* of permission, ownership or name occured. Changeing any of these attributes does *not* alter the 'mtime' since the contents of the file are not modified.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-04-2007 12:19 AM
07-04-2007 12:19 AM
Re: difference b/w change and modify terms
what i found is that, whenever the contents of files are change(file edit), both the "Modified", and "Change" paramete updates
But when you just change the permission/ownership... the "Change" parameter updates only.
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-04-2007 12:48 AM
07-04-2007 12:48 AM
Re: difference b/w change and modify terms
> what i found is that, whenever the contents of files are change(file edit), both the "Modified", and "Change" parameter updates
That is expected since the file's inode (containing the information retrieved by stat()') would be updated. The 'ctime' represents the inode's last change time, and another field of the inode is the size of a file.
Regards!
...JRF...