-1

Team,

I have Veritas product installed. When I try to run the veritas commands, I have to use the original path (i.e. /opt/VRTS/bin). Instead of that, can we add the path into our bash profile. I tried it but it is not working. Any ideas?

5
  • 1
    If you added it to your PATH variable, did you run source ~/.bash_profile? Commented Jul 12, 2017 at 15:03
  • 1
    and can you show how you added it to the bash profile? Commented Jul 12, 2017 at 15:03
  • wow. source .bash_profile worked. is there no impact for other OS commands rht?. Commented Jul 12, 2017 at 15:06
  • No, when you use source, your reloading/refreshing your bash_profile Commented Jul 12, 2017 at 15:06
  • No, source .bash_profile is reloading the edited .bash_profile in your current session. You could achieve the same by logging out and then back in to the system after editing .bash_profile. Commented Jul 12, 2017 at 15:07

2 Answers 2

2

Making modifications to your bash_profile requires you to run source to refresh so the changes take effect:

source ~/.bash_profile

0
0

You can use /etc/environment

  1. Add your variable to /etc/environment Example:

    TEST="testing"

  2. Logout from current user and login again

1
  • I'll give a try. Commented Jul 12, 2017 at 15:19

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.