rm -i - BSD

Users browsing this thread: 3 Guest(s)
movq
Long time nixers
(21-11-2021, 08:18 AM)venam Wrote: When I want to override and alias, I prepend it with "command". So maybe you could try: `command rm -r`.

There’s also the super intuitive and totally obvious version of prefixing the command with a backslash, so `\rm -r` would invoke the original `rm`. I haven’t checked how portable that is, but it at least works on Bash and OpenBSD’s ksh.


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
RE: rm -i - by maksim - 05-10-2022, 05:45 AM