I would like to look at a specific file. I would like to use the command to run on a remote server AIX 6. So if the file is 42 days old I would Perl Find file age. Identify age of the file. Hi all, I'm using SunOS. The file name with its path will be given to the script as input. Any kinda help will be appreciated. Thanks in advance 7 Replies. Hi, AIX 5. If anyone knows of a way to do this using just ksh commands it would be appreciated.
It also appears I don't have the stat command available. Alternatively is Find the age of a file in Minutes. KSH: Please lt me know how to find the age of a file in minutes Based on last modified time. How to find the File Age and wait for that Hi, I want to know my file is 1 hr 30 min old or not, If 1 hr 30 min old I will do some tasks in that file.. RedHat Commands. Active Oldest Votes.
You want a forever-repeating loop! Improve this answer. Thanks roaima : — Richard. Sign up or log in Sign up using Google. Sign up using Facebook.
Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. It has the most extensive list of filesytems I'm aware of along with a nice table of the various features and the status of whether it's supported or not within a given filesystem.
But for some circumstances you might want the 'inode change time' - this is when the metadata last changed. It gets updated when you first make the file and then when you do things like chmod which, most of the time, you won't be doing - so in many circumstances it stays as the original creation time. Sign up to join this community. The best answers are voted up and rise to the top. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams?
Learn more. Asked 8 years, 1 month ago. Active 27 days ago. Viewed 66k times. How can I get the age of a given file in, at least, days? NOTE Since Linux doesn't track creation time, I'm looking for two-fold solution: one for mtime linux --that is the last time said file was modified --and one for Mac OS X, which can either deal with mtime or creation time.
Improve this question. Alexej Magura. Alexej Magura Alexej Magura 3, 7 7 gold badges 23 23 silver badges 39 39 bronze badges. Duplicate of How to find creation date of file? See my NOTE above. AlexejMagura and how do the answers in the dupe not do for you? Podcast Making Agile work for data science. Stack Gives Back Featured on Meta. New post summary designs on greatest hits now, everywhere else eventually. Linked Related 0. Hot Network Questions.
Question feed. Accept all cookies Customize settings.
0コメント