LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 07-27-2007, 11:34 AM   #1
Vitalie Ciubotaru
Member
 
Registered: Dec 2005
Location: Osaka, Japan
Distribution: Ubuntu Trinity
Posts: 153

Rep: Reputation: 30
Question $PATH enviroment variable in xterm


xterm's $PATH setting differs from the console $PATH. In console, bash reads /etc/profile, ~/.bash_profile and other config files and sets its enviroment variables. In xterm, bash sets $PATH to "/etc:/bin:/usr/bin:/usr/X11R6/bin:/usr/ucb", which is very strange to me.
Why is it so? Where is this setting from? How can I change it?

A lot of other environment variables [like $PS1] are just missing. This is not a big deal, I can always do "source /etc/profile" and "source ~/bash_profile" to get my variables back, but there must be a way to set them permanently.

Any hints?
 
Old 07-27-2007, 01:13 PM   #2
wjevans_7d1@yahoo.co
Member
 
Registered: Jun 2006
Location: Mariposa
Distribution: Slackware 9.1
Posts: 938

Rep: Reputation: 31
Put what you need into .bashrc in your home directory.

For more information on which bash configuration files are used when, do this at the command prompt:

Code:
man bash
Hope this helps.
 
Old 07-31-2007, 05:08 PM   #3
Vitalie Ciubotaru
Member
 
Registered: Dec 2005
Location: Osaka, Japan
Distribution: Ubuntu Trinity
Posts: 153

Original Poster
Rep: Reputation: 30
Oh Thanks a lot!!!
It's only now that I see the difference between login and non-login shell. It's solved!
Thanks again.

Vitalie CIUBOTARU
 
  


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
System Path Enviroment Variable innovations Linux From Scratch 2 10-26-2005 04:27 PM
enviroment variable PATH Moataz Linux - Newbie 2 04-25-2005 08:25 PM
how to change $PATH enviroment variable bglnelissen Linux - Software 2 11-03-2004 06:55 AM
setting the PS1 enviroment variable in xterm qanopus Linux - General 2 04-29-2003 08:41 AM
Enviroment variable set for all ChimpFace9000 Slackware 5 12-09-2002 09:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

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