3 ms·
Is there a way to stop rm from running if there’s a space?
by colejohnson66 7y ago
Is there a way to stop rm from running if there’s a space?
- dllthomas 7y agoIf you're okay with being unable to remove multiple files at once...
- semi-extrinsic 7y agoIIRC, zsh has an option such that if you type `rm -rf /folder` it will ask Sure you want to delete /folder with 382 files? (Y/N) This would at least give you a chance to spot that it was asking about the wrong file.