0

My attempts to add any alias to .bashrc file is always failing. It comes as not found.

Let me explain what I tried.

I opened the .bashrc using the subl and then at last added the words

alias rm = "rm -i"

Then I went to terminal and ran the .bashrc file using

. ~/.bashrc

Closed and then reopened the terminal.

On opening I get an error message

bash: alias: rm: not found
bash: alias: = rm -i: not found

Praveen Kumar-M
  • 584
  • 5
  • 14

1 Answers1

1

Remove the spaces surrounding the equal sign

alias rm="rm -i"
Jeff Schaller
  • 66,199
  • 35
  • 114
  • 250
rr0ss0rr
  • 332
  • 2
  • 6