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 ... |
12 нояб. 2015 г. · I want to make a bash script to delete the older file form a folder. Every time when I run the script will be deleted only one file, the older one. |
1 июн. 2018 г. · Your command will look at the top level directory /var/log/mbackups and also descend into any subdirectories, deleting files that match the seven day criterion. |
12 сент. 2014 г. · You could start by saying find /var/dtpdev/tmp/ -type f -mtime +15. This will find all files older than 15 days and print their names. |
17 авг. 2017 г. · I am looking to clear the users files older than 30 days. The following bash script works perfectly fine. However, I am looking to remove the " ... |
3 мая 2021 г. · I am deleting all files recursively with: $ find . -type f -name "*.*" -daystart -mtime +100 -exec rm -rf {} \; Followed by all empty folders with: |
3 янв. 2018 г. · You could delete if they have not been modified in over 90 days: find /path/to/folder ! -type d -mtime +90 -delete or find /path/to/folder ! -type d -mtime |
4 сент. 2018 г. · I've made a script (in bash) to keep deleting old files as storage reaches a certain percentage. This is what the script should do. |
4 апр. 2018 г. · First check whether those files are listing or not by replacing 'rf' with 'ls'. If they were older than 3 years then you will get all those ... |
15 нояб. 2021 г. · I would like to delete files only under the "workspace" directory and older than 2 days. How should this be done? /users/user1/workspace /users/ ... |
Novbeti > |
Axtarisha Qayit Anarim.Az Anarim.Az Sayt Rehberliyi ile Elaqe Saytdan Istifade Qaydalari Anarim.Az 2004-2023 |