How to Modify the Path Variable in Linux/Unix
|
| Tweet |
|
Free PDF Download How to Modify the Path Variable in Linux/Unix - By Josh Bellendir |
This tutorial will help the novice Unix/Linux user to be able to set the Path Variable. This can be useful to speed up access to software in the linux environment. Once you have a path added to your path variable, you can then simply type the executive to run the program or filename to open the file. You won't need to specify the full path any longer. To view what your current PATH variable is type the following at the command prompt:
# echo $PATH
This will output the PATH stored in the $PATH variable. If you simply wish to add an additional directory, simply do something like this:
# export PATH=$PATH:/the/directory/you/want/to/add
Then type echo $PATH to view the results and to make sure everything worked out. However, you should know that this is only temporarily set for the current terminal/instance you are logged into. If you want this path to always be set then you will want to edit the.bash_profile file which should be located in your home directory. Edit the.bash_profile with your favorite editor. For example:
#vi /home/myusername/.bash_profile
Find the line that states PATH=$PATH:$HOME/bin or something similar. And then just add whatever directory you want to have included in the path. For example:
PATH=$PATH:$HOME/bin:/usr/local/bin:/export/mycustomerapps
Save the file and you're done. The next time you boot up your Linux box or create a new terminal connection, you will have your path set.
Related Articles
|
Free PDF Download How to Modify the Path Variable in Linux/Unix - By Josh Bellendir |
|
About the Author: Josh Bellendir RSS for Josh's articles - Visit Josh's website A international businessman currently living in Tokyo, Japan. Born and raised in southern California and have been working in Asia for the past 7 years. Articles written by Josh R Bellendir, Consultant, http://www.jbellendir.com For more articles, stories, tutorials, and reviews like these, please check out http://www.jbellendir.com Click here to visit Josh's website. Health And Safety For Computer Users What to do in Seoul Korea in a Weeks Time How to Modify the Path Variable in LinuxUnix Getting a Job in Japan Japanese Speaking AbilityWhile Not a Requirement Has Its Advantages How to Create High Quality Screen Casts for the Web |
Related Forum Posts
Share this article. Fund someone's dream.
Share this post and you'll help support entrepreneurs in Africa through our partnership with Kiva.
Over $50,000 raised and counting - Please keep sharing! Learn more.
Featured Video
Trending Articles
|
|
Like this page? PLEASE +1 it! |
Newsletter
Get advice & tips from famous business
owners, new articles by entrepreneur
experts, my latest website updates, &
special sneak peaks at what's to come!
Get advice & tips from famous business
owners, new articles by entrepreneur
experts, my latest website updates, &
special sneak peaks at what's to come!
Popular Articles
Five Positive Traits to Enhance Flexibility
Should You Hire a Temp or a Virtual Assistant?
Top Ten Home-Based Businesses
Five Positive Traits to Enhance Flexibility
Should You Hire a Temp or a Virtual Assistant?
Top Ten Home-Based Businesses
Suggestions
Email us your ideas on how to make our
website more valuable! Thank you Sharon
from Toronto Salsa Lessons / Classes for
your suggestions to make the newsletter
look like the website and profile younger
entrepreneurs like Jennifer Lopez.
Email us your ideas on how to make our
website more valuable! Thank you Sharon
from Toronto Salsa Lessons / Classes for
your suggestions to make the newsletter
look like the website and profile younger
entrepreneurs like Jennifer Lopez.







