3 ms·
First one requires --no-preserve-root to be effective on GNU tools ;)
by garaetjjte 6y ago
First one requires --no-preserve-root to be effective on GNU tools ;)
- segfaultbuserr 6y agoThere'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.