Why ‘export’ if i could just direct assign the variables in bash?

January 25th, 2011 mysurface

I can direct assign value to a variable in my bash shell why I still need the command ‘export’ ? What is the different between them? If you have doubts about this, please continue to read on it. Lets do an experiment in a bash shell: $ HELLO=world $ export HELLO2=world2 $ echo $HELLO $HELLO2 […]

Posted in Bash, export | Hits: 243122 | 15 Comments »

setting up http proxy at console

December 30th, 2006 mysurface

Setting up proxy at Firefox do not have effects at console, which means your wget, ssh, apt-get, yum etc do not access through the proxy you set at Firfox browser. To setup http proxy at console, you can do as bellow, assume the proxy IP is and port 3128. export http_proxy=’’ Remember, you have […]

Posted in Admin, export | Hits: 416723 | 31 Comments »

Setting Environment Variable

August 29th, 2006 liewsheng

You may wonder how you knowing the hostname or machine type you are log in. Actually we have a lot way to do so, one of them is print out the environment variable set. How we can set this variable? export is the command used in bash shell, example: export VARIABLE_NAME=”any data you want to […]

Posted in echo, export | Hits: 55935 | 2 Comments »