The bashrc is in /etc directory. And if you don't export, the variable will not be available to the child shells, one of which is your command prompt. So, Narendra is right. Modifying .bashrc of root will only affect root's environment.
you can do either export var='asdfa', or var='asdfa' and then export var. Both of these have the same effect. -- Debasish Ray Chawdhuri Dept. of Textile Technology, IIT Delhi -- l...@iitd - http://tinyurl.com/ycueutm
