Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
i have the following problem. i am exporting an environment variable and after i close the terminal it is lost. how can i keep my export variables? or actually how can i load them everytime i launch a console. i think i need to add them in my .bash_profile file. is that correct?
To make sure that a variable is exported in every terminal, indeed you need to call it everytime you open a terminal. To do this, you have to export it in one of the configuration files specific to your shell, in this case .bashrc, .bash_profile, etc...
thanks for the replies. i will read the man pages and see which one it is. by the way if you have time what is the /^something option. i guess i will have to do man man to see what is that.
thanks
Last edited by captain-cat; 06-22-2004 at 04:17 PM.
It's just to tell you to search for the invocation part of the man page.
Whenever you are in a text editor, you can (almost) always use / followed by your search pattern to find something quicker than by scanning through the whole file.
So, /^invocation means look for a line beginning with invocation. Type this after typing man bash will lead you directly where you want to go!
Originally posted by captain-cat thanks for the replies. i will read the man pages and see which one it is. by the way if you have time what is the /^something option. i guess i will have to do man man to see what is that.
thanks
/^<searchterm>
/ starts a search
^ tells the search to look for the searchterm
only at the beginning of the line.
If you omit the ^ you'll get many hits in the
search, referring you to the term below (in this
instance, that is ;}).
i wanna add /home/mcarthor/program to my system path, so it can, automatically, find binary files in /home/mcarthor/program/bin, include files (.h) in /home/mcarthor/program/include, library files in /home/mcarthor/program/lib, man files in /home/mcarthor/program/man, etc.
i presume there might be one for your local header files. similarly for bash
$export INCLUDE_PATH=$INCLUDE_PATH:/home/foo/foosinclude
if you are using csh then replace export with setenv
if you wanna see your variables
$echo $LIBRARY_PATH
because they will be lost after you close the shell, you may want to add the export lines in one of your shell config files. see above. most likely .bashrc
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.