Linux - DistributionsThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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:
/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).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.