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:

How to install asterisk secure fail2ban

1)  rpm -Uvh  http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm If this is already installed, skip this step. 2)  y...