Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 05-17-2008, 06:32 PM   #1
Registered: Jun 2007
Location: Washington
Distribution: Ubuntu 12.04
Posts: 37

Rep: Reputation: 15
Environment variables

I was wondering how one changes the PATH variable, is there the equivalent to config.sys in Linux.
Old 05-17-2008, 07:05 PM   #2
ReliaFree Maintainer
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware-current, Cross Linux from Scratch, Gentoo
Posts: 2,812
Blog Entries: 1

Rep: Reputation: 259Reputation: 259Reputation: 259
To add an additional path temporarily (i.e., until you logout of the current shell) to the end or beginning of the current PATH respectively
export PATH=$PATH:/new/path/to/add
export PATH=/new/path/to/add:$PATH
To add an additional path permanently, add the same command to your .bashrc or .bash_profile or equivalent for the shell you use. This will add it only for the use who's profile you update (similar to config.sys for a single user). To add an additional path system-wide add the above to /etc/profile (similar to config.sys) or equivalent. I don't know how Ubuntu is configured.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Environment Variables crimsonflame123 Linux - Software 2 12-03-2006 02:12 AM
Getting all environment variables Harlin Linux - General 2 10-06-2006 01:30 PM
environment variables naren Linux - Software 1 12-15-2004 07:44 AM
environment variables da Perp Linux - Newbie 5 01-23-2002 10:34 AM
environment variables aethereal Linux - Newbie 7 12-19-2001 10:34 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:24 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration