//View Tip #605
Similar Tips
» Share current tree over the web
» iso2cd
» List non-system users
» Counts files in the current directory and subdirectory
» ssh proxy forwarding

 

Latest tips by RSS
Click here to subscribe
Follow Shell-Fu on Twitter
Click here to follow
Follow Shell-Fu on identi.ca
Click here to follow
I used to have 'em' as an alias for Emacs. One day, I wanted to edit a file and typed 'rm' instead of 'em', losing the file I had no backup of. So I set a common alias to keep me focused.

alias rm='rm -i'


But sometimes this can be very annoying as you can imagine. By placing a backslash in front of a command, you "un-alias" it. This works for any alias you have set.

\rm *.c


I still use the 'rm' alias, but switched to just 'e' for Emacs ;^)


View Comments »




Comments 

Add your comment

Comments are currently disabled
Very useful information.  Thanks!
Posted 2009-03-24 11:39:06
Thanks for the \ tip.

However, in this particular case, you can also use the following:

$ rm -f *.c

since -f overrides -i.
Posted 2009-03-30 09:37:41

Home Latest Browse Top 25 Random Hall Of Fame Contact Submit