To delete files older than 30 days in folder /home/user/path enter the command:
find /home/user/path -mtime +30 -exec rm {} \;
To delete also subdirectories enter the command:
find /home/user/path -mtime +30 -exec rm -rf {} \;
Thursday, September 2, 2010
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment