Unix command to delete two folders at once? Using rm -rf?
|
feedback
|
migrated from stackoverflow.com Feb 8 '11 at 7:47
This question came from our site for professional and enthusiast programmers.
|
Yes:
The '-f' is not mandatory if you can write to each file and directory, or if you don't mind being asked lots of questions. The directories are deleted sequentially, but both are deleted as the result of a single command. | |||
feedback
|
|
In bash, there is a way to insert a list of arguments with curly braces:
It can be inserted anywhere:
| |||||||
feedback
|
|
If you want the deletion to actually be concurrent, which can be faster if they are on separate disks, but probably slower if they are on the same one:
| |||
feedback
|
