HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How do I know when I directories has been created ...
Operating System - HP-UX
1833796
Members
4551
Online
110063
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
12-22-2004 02:00 PM
12-22-2004 02:00 PM
How do I know when I directories has been created or...
Hi guys,
I understand that the timestamp of a directory will be modified if there are changes in the directory. So how will i know if the time stamp represent a new directory is being create or that its content has been modified?
Thank u for your info!
regards
Henry
I understand that the timestamp of a directory will be modified if there are changes in the directory. So how will i know if the time stamp represent a new directory is being create or that its content has been modified?
Thank u for your info!
regards
Henry
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-22-2004 02:10 PM
12-22-2004 02:10 PM
Re: How do I know when I directories has been created or...
You can only know by accident. The creation time is not part of the metadata carried in the inode. You can do a ls -lc to see the change time which MIGHT be the creation time but it is really the last time a chmod or chown was done.
If it ain't broke, I can fix that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-22-2004 02:23 PM
12-22-2004 02:23 PM
Re: How do I know when I directories has been created or...
Thanks Clay,
I am in the midst of scripting a cron job to move modified directories and files to a remote backup server. Do you think it is wise to use "find /directory -mtime -7" to list out the files and directories and then copy them to the remote location?
Merry X'mas
Regards
Henry
I am in the midst of scripting a cron job to move modified directories and files to a remote backup server. Do you think it is wise to use "find /directory -mtime -7" to list out the files and directories and then copy them to the remote location?
Merry X'mas
Regards
Henry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-23-2004 02:54 PM
12-23-2004 02:54 PM
Re: How do I know when I directories has been created or...
The find command can be used as the basis for a script but you might find that the "rdist" command does just what you want with very little additional scripting. Man rdist for details.
If it ain't broke, I can fix that.
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
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP