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:

Step-by-step OpenLDAP Installation and Configuration on server

This tutorial describes how to install and configure an OpenLDAP server and also an OpenLDAP client. Step by Step Installation and Conf...