I tried to include the following unsuccessfully to my ~/.profile:
export PATH='$HOME/opt/git/bin'
It seems not to work because $git gives me nothing. I am trying to install Git.
I have also tried commands here.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You’ll want to be careful with that command. It will override your $PATH.
You might need to put it in
~/.bash_profileand change it to this: