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 Download and Install RHEL8 Beta For Free (Red Hat Enterprise Linux)

RHEL (Red Hat Enterprise Linux) 8 beta was released on November 14, 2018, 4 years after the release of RHEL 7. This tutorial will be showi...