Sunday, 7 January 2018

How to delete before some day any extensions file using one comand

Here i am giving you example .txt file example from last 10 before all file delete from any folder. here you can change file type and days.

:-  /usr/bin/find /home/test/ -name "*.txt*" -type f -mtime +10 -exec rm -f {} \;


in this comand you need to change location of your folder and file type and how many days before file you want to remove.

No comments:

install winrar on CentOS 6.x

Steps to install  WinRar  on Cent Os machine in order to un-rar a rar archive transferred from windows machine. Download Links For L...