LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 03-22-2006, 12:54 PM   #1
uv2005
LQ Newbie
 
Registered: Dec 2005
Posts: 8

Rep: Reputation: 0
Adding to $PATH


Hey guys. I've tried to follow your suggestions of how to permanently add a directory to the root (super) user $PATH. I have Suse 9.1, using bash. I have added the line:
export PATH=$PATH:/home/stuff/blast
to the file: /etc/profile , but that still didn't add the desired directory to $PATH. I will be grateful for any hint!
 
Old 03-22-2006, 01:23 PM   #2
mikshaw
LQ Addict
 
Registered: Dec 2003
Location: Maine, USA
Distribution: Slackware/SuSE/DSL
Posts: 1,320

Rep: Reputation: 45
It's possible that you added that command to the beginning of the file? In suse 9.0 anyway, there is a section about 100 lines into the file where PATH is exported. You might add your new path to the list of paths there:
for dir in /var/lib/dosemu \
/usr/games \
/opt/bin \
/opt/gnome/bin \
/opt/kde3/bin \
/opt/kde2/bin \
/opt/kde/bin \
/usr/openwin/bin \
/opt/cross/bin \
/home/stuff/blast
do


If that doesn't work, try adding the export command to /root/.bash_profile
 
Old 03-22-2006, 01:32 PM   #3
ethics
Senior Member
 
Registered: Apr 2005
Location: London
Distribution: Arch - Latest
Posts: 1,522

Rep: Reputation: 45
you still have to export the $PATH variable i believe

try adding after your line
Code:
export 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
adding to $PATH poiuytrewq Linux - Newbie 3 10-27-2004 02:32 AM
adding to path hamish Linux - Software 8 02-05-2004 11:03 PM
Adding to the $PATH chri5 Linux - Newbie 8 11-14-2003 11:38 AM
adding to $PATH snocked Slackware 17 08-26-2003 01:12 AM
permanently adding to the path hyphenage Linux - General 12 07-16-2003 02:14 AM


All times are GMT -5. The time now is 08:39 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration