HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Disabling file access time
Operating System - Linux
1827262
Members
2331
Online
109717
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:25 AM
05-18-2005 01:25 AM
Disabling file access time
Hi,
I'm trying to disable the access time for a frequently accessed files in the /var/spool area by doing:
$ chattr -A
$date
Wed May 18 21:27:18 MYT 2005
/var/spool/ >>ls -l --time=atime tstgrep
-rw-r--r-- 1 root dasadm1 40 May 18 21:11 tstgrep
/root >>chattr -A tstgrep
/root >>vi tstgrep
/root >>ls -l --time=atime tstgrep
-rw-r--r-- 1 root dasadm1 40 May 18 21:27 tstgrep
From the output above, chattr -A option did not seem to take effect by ignoring the new access time for the file tstgrep (21:27).
May what is the method of disabling the access time to the files on a Linux Red Hat 8?
Thanks
Danny
I'm trying to disable the access time for a frequently accessed files in the /var/spool area by doing:
$ chattr -A
$date
Wed May 18 21:27:18 MYT 2005
/var/spool/ >>ls -l --time=atime tstgrep
-rw-r--r-- 1 root dasadm1 40 May 18 21:11 tstgrep
/root >>chattr -A tstgrep
/root >>vi tstgrep
/root >>ls -l --time=atime tstgrep
-rw-r--r-- 1 root dasadm1 40 May 18 21:27 tstgrep
From the output above, chattr -A option did not seem to take effect by ignoring the new access time for the file tstgrep (21:27).
May what is the method of disabling the access time to the files on a Linux Red Hat 8?
Thanks
Danny
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2005 01:38 AM
05-18-2005 01:38 AM
Re: Disabling file access time
Access time (atime) and modification time (mtime) are different parts of the inode structure.
chattr -A
will only disable the updating of 'atime'.
There is no way to disable updating of a modification time. I can't think of any possible reason you'd want to, that doesn't involve hiding the fact that you've been playing around with things.
If you despratly need to change a modification time, look at the 'touch' command.
chattr -A
will only disable the updating of 'atime'.
There is no way to disable updating of a modification time. I can't think of any possible reason you'd want to, that doesn't involve hiding the fact that you've been playing around with things.
If you despratly need to change a modification time, look at the 'touch' command.
One long-haired git at your service...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2005 02:03 AM
05-18-2005 02:03 AM
Re: Disabling file access time
I believe you should try with +A option of chattr.
eg: chatr +A tstgrep
A is for 'no atime updates' so you should enable it with +A.
Regards,
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