- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: find command
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
03-08-2004 03:05 AM
03-08-2004 03:05 AM
I am trying to find a way to list all files created in the last 24 hours in any given directory.
Anyone have any ideas?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2004 03:11 AM
03-08-2004 03:11 AM
Re: find command
Mark Syder (like the drink but spelt different)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2004 03:12 AM
03-08-2004 03:12 AM
SolutionAbout as close as you are going to get:
find . -ctime -1
but it's far from perfect.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2004 03:16 AM
03-08-2004 03:16 AM
Re: find command
I guess I can write a script to do a long list of all file changed within the last 24 hours and then strip away anything that isn't "new"
Thanks again.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2004 03:26 AM
03-08-2004 03:26 AM
Re: find command
touch a file with timestamp of exactly 24 hours before than ur current time
# touch -mt 200403080817 ref
# ls -lrt ref
rw-rw-r-- 1 root sys 407 Mar 8 08:17 ref
# find /dir -newerc ref -exec ls -ld {} \;
The above command will list the files with the inode modification time newer than that of file ref.
but note that this goes by the inode modification time. So even if the file permission is changed (or other system calls which modifies the inode data) , it will be included in the list.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2004 03:31 AM
03-08-2004 03:31 AM
Re: find command
ll -u -- access time
ll -c -- change time
ll -t -- modification time.
Now if you create a file and do not do any changes to it, ctime is still the creation time. But once a change is done to a file, you get only chnage time. so what you can do it is create a file change it's timestamp to as 24 hrs back and use find command with -newer option.
Anil