3
rated 0 times
[
3]
[
0]
/ answers: 1 / hits: 9739
/ 2 Years ago, sun, february 20, 2022, 6:06:23
I know a command to do the same with files, but what about folders (and all the files in it of course)?
More From » files
I know a command to do the same with files, but what about folders (and all the files in it of course)?
The command you refer is find
I suppose.
You should use the command -exec rm -r {} ;
and add the -depth
option.
The -r
option to rm
remove directories with all the content.
The -depth
option tell find
to elaborate content of folders before the folder itself.