Use find and rm to delete files:
find /var/mol/temp/ -name *.txt -exec rm -rf {} \;
Subscribe to:
Post Comments (Atom)
-
Step 1, New a project rails new demo Step 2, Update Gemfile add paperclip, mysql2 gem, enable JavaScript runtime gem 'mysql2' ...
-
Disk is out of space [root@reyotest stat]# df Filesystem 1K-blocks Used Available Use% Mounted on /dev/sda3 231825...
-
When trying to access transmission from web-browswer i got the message : 403: Forbidden Unauthorized IP Address. Either disable the IP ad...
find by time
ReplyDeletefind . -mtime +1
-mtime +1 means you are looking for a file modified 1 days ago.
-mtime -1 means less than 1 days.
-mtime 1 If you skip + or - it means exactly 1 days.