rm nukes files.
rm -i asks for confirmation before nuking the files.
When I use
rm, I want
rm -i to happen.
Ask Different is a question and answer site for power users of Apple hardware and software. It only takes a minute to sign up.Sign up to join this community
The alias command allows the user to launch any command or group of commands (including options and filenames) by entering a single word
alias rm="rm -i"
The next time you issue the command
rm it will issue
You can also make a new alias in case you want to keep
rm functioning as it does by default. To create a new alias
alias rmi="rm -i"
rm will have it's default behavior and
rmi will have the
To make it permanent, just add it to your
~/.bash_profile. This way, everytime you open a new shell, your alias will be ready to go.