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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...