Unix command to delete two folders at once? Using rm -rf?
Tell me more
×
Super User is a question and answer site for
computer enthusiasts and power users. It's 100% free, no registration required.
migrated from stackoverflow.com Feb 8 '11 at 7:47
|
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. |
|||
|
|
In bash, there is a way to insert a list of arguments with curly braces:
It can be inserted anywhere:
|
|||
|
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:
|
|||
|