HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: Checking if file's modification and access tim...
Operating System - Linux
1827791
Members
2508
Online
109969
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
Forums
Discussions
Discussions
Discussions
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
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
05-18-2005 01:04 AM
05-18-2005 01:04 AM
Checking if file's modification and access time is changed
Hi,
May I know what is the command to check if a particular file has had its access and modification time changed in a Red Hat 8?
Thanks
Danny
May I know what is the command to check if a particular file has had its access and modification time changed in a Red Hat 8?
Thanks
Danny
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2005 01:30 AM
05-18-2005 01:30 AM
Re: Checking if file's modification and access time is changed
Check the options to ls command. On other unix flavors, following can be done and I am sure you have equivalent ls options on redhat.
ls -cl -> shows chnage time
ls -ul -> shows access time
ls -tl -> shows modification time.
There is also a tripwire tool with which you can get what you want and many more things.
Anil
ls -cl -> shows chnage time
ls -ul -> shows access time
ls -tl -> shows modification time.
There is also a tripwire tool with which you can get what you want and many more things.
Anil
There is no substitute to HARDWORK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2005 01:35 AM
05-18-2005 01:35 AM
Re: Checking if file's modification and access time is changed
Try the command 'stat '.
It should return an output similar to:
File: `ping.log'
Size: 2330542 Blocks: 4560 IO Block: 4096 regular file
Device: 303h/771d Inode: 505030 Links: 1
Access: (0644/-rw-r--r--) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2005-05-04 16:38:47.000000000 +1000
Modify: 2004-07-13 14:13:37.000000000 +1000
Change: 2004-07-13 14:13:37.000000000 +1000
Shows access, modification/change time.
It should return an output similar to:
File: `ping.log'
Size: 2330542 Blocks: 4560 IO Block: 4096 regular file
Device: 303h/771d Inode: 505030 Links: 1
Access: (0644/-rw-r--r--) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2005-05-04 16:38:47.000000000 +1000
Modify: 2004-07-13 14:13:37.000000000 +1000
Change: 2004-07-13 14:13:37.000000000 +1000
Shows access, modification/change time.
One long-haired git at your service...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2005 01:44 AM
05-18-2005 01:44 AM
Re: Checking if file's modification and access time is changed
ls -clt will give a long list of files sorted based on their modification time(latest one at the top)
ls -ult will give list of files sorted based on their access time (latest one at the top)
for more info on ls check 'man ls'
also you can use find command to get list of files which are modified/acccessed with in the specified time frame.
check amin, atime, cmin, ctime options of find command, check man find
Gopi
Never Never Never Giveup
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
Support
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP