Will `rm -rf` continue deleting if it can't delete something in the middle?
0
votes
2
answers
1039
views
Consider a dir
garbage
containing many files and directories.
If I run rm -rf garbage
, but some files or directories within garbage
are busy by the OS/NFS/etc., so rm -rf
will fail for them. Will it delete the rest? Or will it stop deleting upon the first failure?
The current OS is Ubuntu 20.04, but it's of interest whether this behavior is standard, or it depends on the (version of) OS.
Asked by Serge Rogatch
(167 rep)
Jul 30, 2022, 06:19 AM
Last activity: Jul 30, 2022, 09:50 AM
Last activity: Jul 30, 2022, 09:50 AM