5 ms·
There's a more elegant solution: rm -rf /* Just an extra asterisk is enough. The shell expands it to all subdirectories under /, and it's compatible with
by segfaultbuserr 6y ago
There's a more elegant solution:
rm -rf /*
Just an extra asterisk is enough. The shell expands it to all subdirectories under /, and it's compatible with all Unix systems.
- ezrast 6y agoWildcard expansion skips filenames beginning with a dot, though.
- mixmastamyk 6y agoThere's no useful ones at the root level however.
- ezrast 6y agoHaving a place to store files where they won't get deleted when you make a typo sounds useful to me.