7 апр. 2015 г. · This will delete all the files older than 5 days which are under /path/to and its sub-directories. To delete empty sub-directories, refer to @Costas comment ... Delete only files older than 7 days: -mtime and find Error in deleting files or directories older than 1 day Другие результаты с сайта unix.stackexchange.com |
18 мар. 2024 г. · Step 1: Using the find command · Step 2: Getting files that are older than x days · Step 3: Changing the output to argument form · Step 4: Removing ... |
29 янв. 2018 г. · If you want to delete files older than 1 day, you can try using -mtime +0 or -mtime 1 or -mmin $((60*24)) . |
2 мая 2019 г. · Once we have automated a VPS server backup, it is unavoidable the fact that we will have to delete older files after a certain number of ... |
13 июл. 2015 г. · My easy way: find /tmp/* -daystart -mtime +7 -delete the daystart option measure times from the beginning of today rather than from 24 hours ago. How to delete 1 day old files in linux - Stack Overflow find files older than X days in bash and delete - Stack Overflow Shell script to delete directories older than n days - Stack Overflow Другие результаты с сайта stackoverflow.com |
26 апр. 2023 г. · In this tutorial, we'll learn how to do file cleanup activity by focusing on removing files older than N days, followed by how to automate the process. |
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. |
I will like to write a script that delete all files that are older than 7 days in a directory and it's subdirectories. |
24 февр. 2015 г. · I write below command to delete all files that are older than 7 days, but it doesn't work: find /media/bkfolder/ -mtime +7 -name'*.gz' -exec rm {} \; Delete files older than 5 days as well as in all subfolders - Ask Ubuntu Delete Files Older Than One year on Linux - Ask Ubuntu Can't find files older than 1 day - Ask Ubuntu Delete files in a directory older than 7 days, but always leave at least ... Другие результаты с сайта askubuntu.com |
18 мар. 2024 г. · In this tutorial, we'll look at ways to delete files by age on Linux. These commands may also work in other POSIX shells. |
Novbeti > |
Axtarisha Qayit Anarim.Az Anarim.Az Sayt Rehberliyi ile Elaqe Saytdan Istifade Qaydalari Anarim.Az 2004-2023 |