17 авг. 2012 г. · The following command will do it for you. Use caution though if this isn't your intention as this also removes files in the directory and subdirectories. |
18 апр. 2016 г. · Using the find method I was able to delete one directory per minute. Using the rm -rf dirname I am able to delete 1 directories every 2 seconds. |
28 апр. 2016 г. · Try this command: rm -rf $(find . -name thatcertainfile -execdir pwd \;) It should say to the rm -rf that what it had to remove is the output of your command. |
5 сент. 2014 г. · To remove directories, change -type f to -type d and add -r option to rm ; care must be taken to avoid deleting any parent directory of the ... |
1 февр. 2020 г. · To delete all files within a directory (but not the directory itself): rm -rf path/to/dir/* In case there are hidden files (files whose names start with a dot) ... |
27 февр. 2018 г. · Stick to rm -f and let find list the files to delete. What I think you are trying to do is simply: find /log/dir/ -type f -ctime +7 -exec rm -f ... |
22 мар. 2013 г. · First you need to list the directories and then remove them, without hampering the normal files, ls -d */, only lists the sub-directories, and ... |
4 мая 2011 г. · To delete all files and directories(including the hidden ones) in a directory, you can try the following: use ls -Ab to match all files/directories. |
30 июн. 2012 г. · In the case of rm , they are interpreted as a list of fully qualified filenames to be deleted. So if you are in a directory containing the file ... |
13 нояб. 2014 г. · So I put the option -i on the rm command. This will give me an interactive delete. Also you can refine the usage of rm to delete directories as ... |
Novbeti > |
Axtarisha Qayit Anarim.Az Anarim.Az Sayt Rehberliyi ile Elaqe Saytdan Istifade Qaydalari Anarim.Az 2004-2023 |