LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 02-01-2004, 05:07 PM   #1
hamish
Member
 
Registered: Aug 2003
Location: Edinburgh
Distribution: Server: Gentoo2004; Desktop: Ubuntu
Posts: 720

Rep: Reputation: 30
adding to path


Hey

I would like to add a line to my path, however, I don't know how to.

I have been trying to install Quanta and need to:

Add /usr/local/kde/bin to your PATH and
add /usr/local/kde to your KDEDIRS

Could you please tell me how to do this?

Thanks
Hamish
 
Old 02-01-2004, 05:18 PM   #2
FragInHell
Member
 
Registered: Sep 2003
Location: Sydney Australia
Distribution: Redhat, Centos, Solaris, Ubuntu, SUSE
Posts: 282

Rep: Reputation: 45
If your using a Bash shell try this.

export PATH=$PATH:yournewpath:

e.g export PATH=$PATH:/usr/local/kde/bin:

you can also create any enviroment variable this way.

export MYPATH=/usr/local/somewhere:
 
Old 02-01-2004, 05:57 PM   #3
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
Yes, but that just lasts till you close the shell. If you want the variable set every time you open a shell, add
Code:
export  PATH=$PATH:/usr/local/kde/bin
export KDEDIRS=$KDEDIRS:/usr/local/kde
to the .bashrc file under your home directory. If ~/.bashrc doesn't exist, create it.
 
Old 02-01-2004, 07:24 PM   #4
mikshaw
LQ Addict
 
Registered: Dec 2003
Location: Maine, USA
Distribution: Slackware/SuSE/DSL
Posts: 1,320

Rep: Reputation: 45
May be a silly question, but what is the purpose of "export"? I've used only PATH=${PATH}:/new/path in ~/.bashrc, and it seems to work perfectly.
 
Old 02-05-2004, 03:03 PM   #5
hamish
Member
 
Registered: Aug 2003
Location: Edinburgh
Distribution: Server: Gentoo2004; Desktop: Ubuntu
Posts: 720

Original Poster
Rep: Reputation: 30
Thanks guys.

The other thing I wanted to know was how to find out to find out what paths to user is in.

I know it is something like echo $ , but i can't remembr exactly.

Thanks
Hamish
 
Old 02-05-2004, 03:11 PM   #6
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 60
just simply type :
$PATH
in the terminal ..
 
Old 02-05-2004, 04:21 PM   #7
hamish
Member
 
Registered: Aug 2003
Location: Edinburgh
Distribution: Server: Gentoo2004; Desktop: Ubuntu
Posts: 720

Original Poster
Rep: Reputation: 30
Once again, thank you.

hamsih
 
Old 02-05-2004, 09:35 PM   #8
Squall
Member
 
Registered: Jan 2004
Location: The land of the free and the home of the brave
Distribution: Slack 10
Posts: 239

Rep: Reputation: 31
Quote:
Originally posted by DrOzz
just simply type :
$PATH
in the terminal ..
Uh... don't you mean "echo $PATH" ?
 
Old 02-05-2004, 10:03 PM   #9
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 60
no, i'm sorry to say i didn't mean that ..
Code:
[.:.jay.:. .:.(~).:.] $PATH
bash: /usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/usr/games:/opt/www/htdig/bin:
/usr/lib/java/bin:/usr/lib/java/jre/bin:/opt/kde/bin:/usr/lib/qt-3.2.1/bin:/usr/share/texmf/bin:.: No such file or directory
[.:.jay.:. .:.(~).:.]
 
  


Reply



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
adding to $PATH poiuytrewq Linux - Newbie 3 10-27-2004 01:32 AM
Adding a PATH in SuSE 8.2 Nokia Linux - Software 1 08-25-2004 03:54 PM
Adding to the $PATH chri5 Linux - Newbie 8 11-14-2003 10:38 AM
Adding an entry to the PATH Pimple Solaris / OpenSolaris 6 09-25-2003 12:40 PM
adding to $PATH snocked Slackware 17 08-26-2003 12:12 AM

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

All times are GMT -5. The time now is 03:28 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