LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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


Reply
  Search this Thread
Old 01-29-2004, 11:26 PM   #1
Itsu
Member
 
Registered: Jan 2004
Location: Gladstone, Oregon
Distribution: Gentoo 2005; FreeBSD 5.3
Posts: 32

Rep: Reputation: 15
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.
 
Old 01-30-2004, 12:15 AM   #2
xwastedmindx
Member
 
Registered: Jun 2003
Location: Florida
Distribution: Mandrake 9.1
Posts: 43

Rep: Reputation: 15
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
 
Old 01-30-2004, 12:31 AM   #3
Itsu
Member
 
Registered: Jan 2004
Location: Gladstone, Oregon
Distribution: Gentoo 2005; FreeBSD 5.3
Posts: 32

Original Poster
Rep: Reputation: 15
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.
 
Old 01-30-2004, 05:53 AM   #4
xwastedmindx
Member
 
Registered: Jun 2003
Location: Florida
Distribution: Mandrake 9.1
Posts: 43

Rep: Reputation: 15
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?
 
Old 01-30-2004, 06:00 AM   #5
SciYro
Senior Member
 
Registered: Oct 2003
Location: hopefully not here
Distribution: Gentoo
Posts: 2,038

Rep: Reputation: 51
/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
 
Old 01-30-2004, 08:27 AM   #6
mikshaw
LQ Addict
 
Registered: Dec 2003
Location: Maine, USA
Distribution: Slackware/SuSE/DSL
Posts: 1,320

Rep: Reputation: 45
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.
 
  


Reply


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
default path and csh jmickens Linux - Enterprise 1 08-24-2005 10:56 AM
default path for OpenOffice? mcd Mandriva 1 05-29-2004 07:37 AM
How to edit default PATH? davidas Linux - Newbie 2 03-20-2004 06:34 AM
Default path log Linux - Newbie 1 01-13-2003 10:13 AM
default path for licq glock19 Linux - General 1 01-03-2002 03:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:53 AM.

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