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 |
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: |
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 |
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.
|
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 |
just simply type :
$PATH in the terminal .. |
Once again, thank you.
hamsih |
Quote:
|
no, i'm sorry to say i didn't mean that ..
Code:
[.:.jay.:. .:.(~).:.] $PATH |
All times are GMT -5. The time now is 07:49 AM. |