Jump to content

how do I make 'rm' 'rm -f'?


Recommended Posts

I used to have alias in .bashrc:

 

alias rm='rm -f'

 

that does rm without asking. But it seems no longer work in Mdk 10.0. Does bash no longer allow command overwriting using .bashrc? anyone noticed same behavior?  :wall:

 

Do you mean that if you open a console and type in

 

alias rm='rm -f'

 

and then try rm, it doesn't work?

 

what happens if you open a console and just type

 

alias

 

is the rm command redefined?

Link to comment
Share on other sites

I've seen the same thing happening in mdk10.0.  I put an alias in .bash_profile, and .bashrc without success.  Let me know if you figure out a solution.

 

You need to making a file .alias in your home directory...

 

See the file /etc/profile.d/alias.sh

 

# Linux-Mandrake configuration: Chmouel Boudjnah <chmouel@mandrakesoft.com>

#

# Common Aliases for a system.

#

# The Semantic is :

# If exist a ~/.alias and the user hasn't specified a

# LOAD_SYSTEM_ALIAS variables then don't do any system aliases

# If there is no ~/.alias but the user has specified a

# IGNORE_SYSTEM_ALIASES then don't do any system aliases.

 

Use it as a template for your /home/<your user name here>/.alias file

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...