GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- HPE BladeSystem
- >
- Legacy
- >
- Operating System - Tru64 Unix
- >
- is it possible to delete files by DATE ?
Operating System - Tru64 Unix
1857994
Members
10316
Online
110382
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
- Integrity Servers
- Server Clustering
- HPE NonStop Compute
- HPE Apollo Systems
- High Performance Computing
Knowledge Base
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Knowledge Base
Forums
Discussions
- Cloud Mentoring and Education
- Software - General
- HPE OneView
- HPE Ezmeral Software platform
- HPE OpsRamp Software
Knowledge Base
Discussions
Forums
Discussions
back
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
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
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
03-18-2004 11:56 PM
03-18-2004 11:56 PM
Hello all,
I wpuld like to know if it´s possible to delete files by date instead of name.
Thanks a lot
Bru
I wpuld like to know if it´s possible to delete files by date instead of name.
Thanks a lot
Bru
Solved! Go to Solution.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2004 01:03 AM
03-19-2004 01:03 AM
Solution
Hi Bruno,
You can use "find" command to find and delete files older than certain date. E.g.
# find /user -ctime +3 -exec rm {} \;
will find and delete all files created more than three days ago under /user directory.
See man pages for find for more details about options.
Regards
Emil L. Dragic
You can use "find" command to find and delete files older than certain date. E.g.
# find /user -ctime +3 -exec rm {} \;
will find and delete all files created more than three days ago under /user directory.
See man pages for find for more details about options.
Regards
Emil L. Dragic
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2004 02:47 AM
03-19-2004 02:47 AM
Re: is it possible to delete files by DATE ?
Hi Bruno,
as my predecessor said, find is the command of choice and info can be found in man pages.
You can search by modification time or access time of a file or by modification time of the inode of the file. This is:
mtime
atime
ctime
Time is in days and used with +,- or space.
+1 means 2days plus
-1 means less than 1day
1 means 1day.
greetings,
Michael
as my predecessor said, find is the command of choice and info can be found in man pages.
You can search by modification time or access time of a file or by modification time of the inode of the file. This is:
mtime
atime
ctime
Time is in days and used with +,- or space.
+1 means 2days plus
-1 means less than 1day
1 means 1day.
greetings,
Michael
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 2026 Hewlett Packard Enterprise Development LP