- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: file access date
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
11-24-2003 02:46 AM
11-24-2003 02:46 AM
file access date
I have a need to find what file was accessed at 01:52 on November 23 2003, on one of my boxes. How can I go about doing that? Any ideas would be greatly appreciated.
Thanks,
-Bryan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2003 02:51 AM
11-24-2003 02:51 AM
Re: file access date
The -u option of the ls command will give you last accessed date. Just grep for your desired time:
"ls -u /dir |grep 'November 23'"
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2003 02:56 AM
11-24-2003 02:56 AM
Re: file access date
I was looking for something to do a recursive search through the entire system, starting at /.
I should have had a little more detail in my question.
-Bryan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2003 02:57 AM
11-24-2003 02:57 AM
Re: file access date
ls -lut / |grep "Nov 23 01:52"
Trouble is, that will only give you the file name(s), not locations, so you'll then need to do a 2nd pass with find to locate the file(s).
-- Graham
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2003 02:57 AM
11-24-2003 02:57 AM
Re: file access date
# touch -t 0311230151 /tmp/before
# touch -t 0311230153 /tmp/after
# find / \( -newer /tmp/before -a ! -newer /tmp/before)
Regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2003 02:57 AM
11-24-2003 02:57 AM
Re: file access date
you can try something like this:
find
regards,
John K.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2003 02:59 AM
11-24-2003 02:59 AM
Re: file access date
# touch -t 0311230151 /tmp/before
# touch -t 0311230153 /tmp/after
# find / \( -newer /tmp/before -a ! -newer /tmp/before \)
This will work even for old timeframes.
Regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2003 03:01 AM
11-24-2003 03:01 AM
Re: file access date
# touch -t 0311230151 /tmp/before
# touch -t 0311230153 /tmp/after
# find / \( -newer /tmp/before -a ! -newer /tmp/after \)
please no points for these tipos ...
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2003 05:04 AM
11-24-2003 05:04 AM
Re: file access date
I assume, by access you mean update.
find / -exec ls -l "{}" ";" | grep "Nov 23 2003"
greetings,
Michael