13 июл. 2015 г. · You can make use of this piece of code find /tmp/* -mtime +7 -exec rm {} \;. Explanation. The first argument is the path to the files. linux - Delete all directories and its files older than a 60 days ... Shell script to delete directories older than n days Другие результаты с сайта stackoverflow.com |
18 мар. 2024 г. · Use the Find command with xargs to delete files older than x days · Step 1: Using the find command · Step 2: Getting files that are older than x ... |
18 мар. 2024 г. · Tidying up files on our servers by age can be achieved with a simple command. We discuss find on Linux and how to avoid it going wrong. |
4 февр. 2021 г. · That is simple tips to linux script delete folder and file older than x days. That command run in linux/unix. What if we wanti delete file ... |
7 апр. 2015 г. · Be careful with special file names (spaces, quotes) when piping to rm. There is a safe alternative - the -delete option: Delete only files older than 7 days: -mtime and find delete folders older than 1 day - Unix & Linux Stack Exchange Delete files in Multiple Folders older than 30 days How to get Bash to find directories older than x days and delete ... Другие результаты с сайта unix.stackexchange.com |
7 июл. 2024 г. · 1. Delete Files older Than 30 Days. Using the find command, you can search for and delete all files that have been modified more than X days. |
We'll use this in order to figure out what files are older than a certain number of days, and then use the rm command to delete them. Command Syntax. find /path ... |
24 февр. 2015 г. · Explanation: find : the unix command for finding files/directories/links and etc. /path/to/ : the ... |
13 янв. 2016 г. · You can either use the -delete parameter to immediately let find delete the files, or you can let any arbitrary command be executed ( -exec ) on ... |
7 июл. 2017 г. · So we want to get the (regular) files that have mtime more than 7 days ago AND are not within the 20 newest files. |
Novbeti > |
Axtarisha Qayit Anarim.Az Anarim.Az Sayt Rehberliyi ile Elaqe Saytdan Istifade Qaydalari Anarim.Az 2004-2023 |