Hi,
I want to set path permanently in centos. I am able to set path, But when i logout and login the path is going.
Please tell me how to set path permanently
Hi,
I want to set path permanently in centos. I am able to set path, But when i logout and login the path is going.
Please tell me how to set path permanently
Jump to PostHello,
Depending on the shell you are running (probably bash) you set the path in your .bash_profile file. The file is in your home directory and you can add to the entries there:
# User specific environment and startup programs PATH=$PATH:$HOME/bin export PATH
Hello,
Depending on the shell you are running (probably bash) you set the path in your .bash_profile file. The file is in your home directory and you can add to the entries there:
# User specific environment and startup programs
PATH=$PATH:$HOME/bin
export PATH
Or just:
export PATH=$HOME/bin:/usr/local/bin:${PATH}
This gives precidence to executable files in your personal bin directory, then to those in /usr/local/bin, and finally to the default PATH environment. Note the {} around PATH. That allows a recursive path definition like this, especially if the existing PATH environment is complexly defined. It is safer than not useing the curly braces.
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.
You're trying to visit a URL that doesn't currently exist on the web. Most likely, a member posted a link a long time ago to a web page that has since been removed. It's also possible that there was a typo when posting the URL. We redirect you to this notice instead of stripping out the link to preserve the integrity of the post.