rm -i - BSD

Users browsing this thread: 1 Guest(s)
Possibly a stupid question:

I have 'rm' aliased to 'rm -i' which is not uncommon. However, I get frustrated when deleting large directories with 'rm -r' as the command 'rm -i -r' will ask me for confirmation to delete every single file within the directory.

Is there any way around this? Ideally I'd like it to ask me to confirm when deleting single files but when multiple files are being deleted I'd love for it to just ask me once to confirm deleting recursively.

Any way of achieving this?
“Maybe you have some bird ideas... Maybe that's the best you can do.” - Terry A. Davis (R.I.P Terry & Percival)

Messages In This Thread
rm -i - by pfr - 21-11-2021, 08:16 AM
RE: rm -i - by venam - 21-11-2021, 08:18 AM
RE: rm -i - by pfr - 21-11-2021, 08:31 AM
RE: rm -i - by mattrose - 21-11-2021, 10:48 AM
RE: rm -i - by seninha - 21-11-2021, 12:48 PM
RE: rm -i - by movq - 21-11-2021, 02:34 PM
RE: rm -i - by z3bra - 21-11-2021, 03:55 PM
RE: rm -i - by pfr - 26-11-2021, 01:27 AM