Linked by Tony Steidler-Dennison on Thu 10th Jul 2008 16:37 UTC
Linux The Linux desktop has come a long, long way, but there are still times when I have to use the command line. (I am a hardcore user, after all.) But even though I'm used to typing, spending hours upon hours with my fingers at the keyboard, I still grow tired of typing the same commands over and over. To reduce that tedium, I always add aliases to my .bashrc file.
Thread beginning with comment 322357
To read all comments associated with this story, please click here.
rm alias
by anomie on Thu 10th Jul 2008 16:54 UTC
Member since:

I don't agree with the rm -i alias. I've gotten into the habit of explicitly using mv -i and rm -i (when using wildcards). If a user assumes rm will provide interactive feedback - i.e. because it's aliased that way on a couple systems - s/he may be very surprised when working on a system that does not.

Reply Score: 4

RE: rm alias
by big_gie on Thu 10th Jul 2008 16:58 in reply to "rm alias"
big_gie Member since:

yeah that's true. But this is slower to type... and CLI is all about speed!
I remember someone suggesting a different alias for "rm -i" like rmi...

Reply Parent Score: 1

RE: rm alias
by Nico57 on Thu 10th Jul 2008 18:11 in reply to "rm alias"
Nico57 Member since:

I always use "rm -f" anyway. ;)

Reply Parent Score: 2

RE: rm alias
by J-freebsd_98 on Fri 11th Jul 2008 10:14 in reply to "rm alias"
J-freebsd_98 Member since:

i've aliased rm to essentially "what ???"
so I have to type the full path /bin/rm
and habitually use -iv "always"
the time it takes to type "/bin/rm -iv"
seems to prevent the hurriedly-typing
errors (rm oops I meant cp) which
otherwise could occur.
HAS WORKED for over 3 years great here

Reply Parent Score: 1

RE[2]: rm alias
by big_gie on Fri 11th Jul 2008 14:36 in reply to "RE: rm alias"
big_gie Member since:

Instead of typing "/bin/rm" you can always type "\rm" to escape the alias...

Reply Parent Score: 1