![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| full path of .profile in unix | dba | UNIX for Dummies Questions & Answers | 6 | 02-22-2008 03:12 AM |
| Edited Path in Profile File | thewetch | UNIX for Dummies Questions & Answers | 4 | 03-08-2006 04:01 AM |
| set variable to Home, then echo it to screen | amidget | UNIX for Dummies Questions & Answers | 3 | 02-23-2006 07:23 PM |
| I need a path to install UNIX on my home PC | chutt | UNIX for Dummies Questions & Answers | 6 | 02-06-2004 09:12 AM |
| Modifying $PATH variable in /etc/profile | Deepali | UNIX for Dummies Questions & Answers | 3 | 03-12-2001 09:17 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
echo $PATH doesn't match $HOME/.profile
This is on a Solaris 9 box, but I feel like a noob, so I am posting here. When I echo $PATH I get a lot of duplicate paths and extra stuff I don't need. What I want is just what I set up in my home dir under .profile
My login shell=/bin/bash I checked the following and there are no path statements id; /etc/profile /etc/default/login $HOME/local.login $HOME/local.cshrc $HOME/local.profile $HOME/.dtprofile I do not have a $HOME/bash_profile I am using gnome 2.0 as desktop Where are these extra path statements coming from? |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
When you log into X, your shell isn't started. So your .profile is not consulted at all at that point. Then when you start a terminal in Gnome, that doesn't count as a login shell either, so it might not be reading your .profile then either.
The whole X11 / gdm / Gnome login business is complex stuff so there's a lot of different places you could plug into (or mess up :-). You could put something in Gnome's Sessions preference to load up your profile when your session starts. (Preferences -> Sessions -> find out where they moved this functionality while you were not looking -- in my Gnome 2.20.1 you can add your own script in the Startup Programs tab.) |
|||
| Google The UNIX and Linux Forums |