Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
01-29-2004, 11:26 PM
|
#1
|
Member
Registered: Jan 2004
Location: Gladstone, Oregon
Distribution: Gentoo 2005; FreeBSD 5.3
Posts: 32
Rep:
|
Default PATH
I've managed to delete everything in my PATH. Don't ask how. I want to know what it would default to in a new installation of Redhat 9. I use the bash shell.
Also, I'm fairly new to linux, so please, don't assume I know what I'm doing.
Thanks in advance.
|
|
|
01-30-2004, 12:15 AM
|
#2
|
Member
Registered: Jun 2003
Location: Florida
Distribution: Mandrake 9.1
Posts: 43
Rep:
|
Since your on the subject of PATH, I have a question.. and if someone can answer for me as well. It'd be appreciated.
I just upgraded my KDE from 3.1.0 to 3.1.5 running on Mandrake, and it tells me to add some stuff into my PATH.
Well.. just what is PATH, where would one typically find this "file", if it is a file? I've seen this talked about on different Linux Websites.. but I still don't get it..
Thanks.
Kenny
|
|
|
01-30-2004, 12:31 AM
|
#3
|
Member
Registered: Jan 2004
Location: Gladstone, Oregon
Distribution: Gentoo 2005; FreeBSD 5.3
Posts: 32
Original Poster
Rep:
|
Quote:
Originally posted by xwastedmindx
Since your on the subject of PATH, I have a question.. and if someone can answer for me as well. It'd be appreciated.
I just upgraded my KDE from 3.1.0 to 3.1.5 running on Mandrake, and it tells me to add some stuff into my PATH.
Well.. just what is PATH, where would one typically find this "file", if it is a file? I've seen this talked about on different Linux Websites.. but I still don't get it..
Thanks.
Kenny
|
You can relate the linux path to the windows path, in that they are both directories the computer will search when a command is issued in the shell. More so in Linux than Windows though.
As for adding stuff to the path, there is the PATH=[blah] command for bash. I wouldn't recommend using it though, it is what got me into this mess.
|
|
|
01-30-2004, 05:53 AM
|
#4
|
Member
Registered: Jun 2003
Location: Florida
Distribution: Mandrake 9.1
Posts: 43
Rep:
|
Quote:
Originally posted by Itsu
As for adding stuff to the path, there is the PATH=[blah] command for bash. I wouldn't recommend using it though, it is what got me into this mess.
|
I wish I had a choice. But seeing as how I just spent the last 5 or so hours upgrading my KDE Desktop... I need to point the PATH to where my new KDE install is located.
I've seen the '.bash_profile' , '.bashrc' talk about stuff with PATH... but if I change that, will it only affect the one user I change the file for?
Or maybe if I change the one in /root will that become global changed?
Also.. while searching these very forums, I found some other threads asking similar questions... and they mentioned an '/etc/profile' ..
What would I do with that one?
|
|
|
01-30-2004, 06:00 AM
|
#5
|
Senior Member
Registered: Oct 2003
Location: hopefully not here
Distribution: Gentoo
Posts: 2,038
Rep:
|
/etc/profile is used by bash to set up things, first it lets you set things like the path and any other varible you want, next it is like THE PATH, as it can be used to set alaises, wich are just comands bash responds to one mioght be
alias ls=ls --auto-color
when i then type ls it doesent run /bin/ls it runs the comand ls --auto-colors wich is just the ls comand but tells it to display directoys, files , execuatables, symlink all in difrent colors
|
|
|
01-30-2004, 08:27 AM
|
#6
|
LQ Addict
Registered: Dec 2003
Location: Maine, USA
Distribution: Slackware/SuSE/DSL
Posts: 1,320
Rep:
|
Quote:
Originally posted by Itsu
As for adding stuff to the path, there is the PATH=[blah] command for bash. I wouldn't recommend using it though, it is what got me into this mess.
|
You shouldn't have any trouble with it if you ADD to your path rather than replace it:
PATH=${PATH}:/additional/path:/yet/another/path
Keeping the current ${PATH} in there along with the additions keeps you from overwriting the current path.
|
|
|
All times are GMT -5. The time now is 01:53 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|