LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-07-2001, 02:02 PM   #1
smurphy
LQ Newbie
 
Registered: Jul 2001
Posts: 6

Rep: Reputation: 0
Unhappy Setting $PATH to include /home at login??


I'm trying to set the $PATH variable to include /home at login so I can run scripts from my home directory.
I have tried updating: /etc/profile, it read PATH="$PATH:/usr/X11R6/bin:/home/steve" (no joy)
/etc/rc.d/rc.sysinit read PATH=/bin:/sbin:/usr/bin:/usr/sbin:/home/steve (no joy)
included . /home/steve/myenv (script which changes PATH manually) in /etc/rc.d/rc.local (no joy)
I have rebooted after each update expecting $PATH to have changed without success.
What am I doing wrong???
 
Old 08-07-2001, 05:28 PM   #2
thewalledcity
LQ Newbie
 
Registered: May 2001
Location: Manhattan, KS
Distribution: Redhat, Debian
Posts: 4

Rep: Reputation: 0
The files that reside in /etc are mostly for system wide configuration. What you need to do is edit ~/.bash_profile.
There should already be a line like:

PATH=$PATH:
Add your home directory after the colon and make sure that later in the same file there is a line

export PATH

-------
 
Old 08-08-2001, 01:23 PM   #3
smurphy
LQ Newbie
 
Registered: Jul 2001
Posts: 6

Original Poster
Rep: Reputation: 0
yeah, i tried adding /home/steve to my .bash_profile file but that didn't work either, that was when i went for the /etc options.
any other ideas??
 
Old 08-08-2001, 02:46 PM   #4
smurphy
LQ Newbie
 
Registered: Jul 2001
Posts: 6

Original Poster
Rep: Reputation: 0
i've found it. i added PATH=$PATH:/home/steve to ~/.bashrc and it came up. at last!!
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to set include path sibtay Linux - Newbie 3 12-07-2004 07:42 AM
where did my include path go aot2002 Linux - Wireless Networking 2 01-24-2004 05:02 AM
Path to include? Mazen Alzogbi Red Hat 1 11-15-2003 06:25 AM
PHP Path include ..:eMa:.. Programming 4 09-25-2003 01:59 AM
GCC include path. jwilson Linux - General 1 04-02-2001 03:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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