I have this echo command:

$ echo "alias notepad++="C:/Program\ Files\ "(x86)"/Notepad++/Notepad++.exe"" >> ~/.bashrc

enter image description here

As shown in the picture it does not recognize the parenthesis.

  • Since you have no variables in that line, you could also use single quotes: echo 'alias notepad++="C:/Program Files (x86)/Notepad++/Notepad++.exe"'
    – mivk
    Sep 17, 2019 at 23:28

1 Answer 1


Escape them. Use this instead:

echo "alias notepad++="C:/Program\ Files\ \(x86\)/Notepad++/Notepad++.exe"" >> ~/.bashrc
  • it works for me. thx
    – absentia
    Jan 8, 2016 at 1:53

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .