LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions
User Name
Password
Linux - Distributions This forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on... Note: An (*) indicates there is no official participation from that distribution here at LQ.

Notices


Reply
  Search this Thread
Old 03-30-2002, 02:50 PM   #1
linuxfanatic
LQ Newbie
 
Registered: Mar 2002
Posts: 7

Rep: Reputation: 0
Newbie RH questions


ok, I'm not that big of a newbie, but have some q's. Where can I find my global path in RedHat 7.2? In RH 7.1 I went into /etc/profile and I saw a bunch of path statements like

"PATH=/usr/local:/bin/whatever:/something/here"

But in 7.2 all i see are a bunch of if/fi statements. I want to global $PATH not the user's .bashrc. Also, how can I use the 'export' command to make it *save* the new PATH? ya i have rtfm'ed, maybe i missed something though=)

Also, in Konqueror, how do I get text boxes like this to use wordwrap. What I mean is say if I'm using the Redmond Browser on the Redmond OS, when I post a message on this board or most other BB's the text box on the page uses wordwrap, or well actaully the text box in IE is bigger than the one in Konqueror. Anyone I can fix that? its kinda annoying. Well thanks in advance
 
Old 03-30-2002, 05:47 PM   #2
taz.devil
Senior Member
 
Registered: Nov 2001
Location: Wa. State
Distribution: Slackware
Posts: 1,261

Rep: Reputation: 45
You could probably just add it to /etc/profile if it's not there, but to use export just:

export PATH="usr/local/bin:/usr/local/sbin:blah blah blah"

With all of the paths you want. Sorry can't help yuh as far as konqueror's word wrapping.
 
Old 03-31-2002, 01:30 AM   #3
linuxfanatic
LQ Newbie
 
Registered: Mar 2002
Posts: 7

Original Poster
Rep: Reputation: 0
but when using 'export', atleast when I have used it .. it never actaully saves it after reboot ..??
 
Old 03-31-2002, 11:31 AM   #4
zmedico
Member
 
Registered: Feb 2002
Location: Mission Viejo, California, USA
Distribution: Gentoo
Posts: 707

Rep: Reputation: 30
~/.bashrc

If you want it to be a permanent change, you should put it in "/etc/bashrc" ( or "/etc/profile"), or "~/.bashrc".

I prefer to use "~/.bashrc" because I know that if you only have to log out and log in again the changes will take affect permanently (in all virtual terminals).

Don't forget to make sure the script is executable:

chmod u+x ~/.bashrc

There is a duplicate thread here:
http://www.linuxquestions.org/questi...threadid=17382


Last edited by zmedico; 04-03-2002 at 05:35 PM.
 
Old 04-01-2002, 01:54 AM   #5
ryandelany
Member
 
Registered: Dec 2001
Location: Orange County, CA
Distribution: RedHat 7.2, 7.3, 8.0
Posts: 66

Rep: Reputation: 15
/etc/profile and ~/.bash_profile are read once on initial login. /etc/bashrc and ~/.bashrc are read on each invocation of a shell.

If you want changes in /etc/profile and ~/.bash_profile to take effect, you have to log completely out and back in again. If you want to see the changes in /etc/bashrc or ~/.bashrc just open a new shell with xterm or su - username.

Environment variables are typically placed into the /etc/profile or ~/.profile (the distinction being that the first one will affect all users on the system, and the second one will only affect you).

You can put them in any of the four files mentioned above though and they should still work.

As a Linux user, you should remove the term reboot from your vocabularly! The only times you really need to reboot are when you make changes to the filesystem (quotas, nfs, adding/removing partitions).

Ryan
 
Old 04-01-2002, 02:15 AM   #6
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
To reread your profile (like after you edit it) you can just use "source ~/.profile"
 
  


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
Help the newbie...:D Got some questions... desperate_penguin Linux - Software 8 11-22-2005 07:34 AM
3 newbie questions Bry Linux - Newbie 13 02-22-2005 05:09 AM
Some newbie questions... koswo Linux - Newbie 7 02-04-2004 10:34 PM
Newbie questions ashley75 Linux - General 2 09-15-2003 12:59 PM
Newbie Questions Bucolic Buffalo Linux - Newbie 4 01-08-2003 08:53 AM

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

All times are GMT -5. The time now is 08:18 PM.

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