Sign up ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

We are editing ~/.bashrc with command: /home/user> sudo gedit .bashrc

share|improve this question
Command used to set the variable? Can you use the terminal command line to read the variable? – Isaac Rabinovitch Oct 25 '12 at 8:20
Are you exporting the variable: export VARIABLE=value? – Pedro Romano Oct 25 '12 at 8:35

1 Answer 1

If you set a variable in ~/.bashrc, this file has to be sourced again; typically by logging in again.

If you do not wish to permanently set this variable, set it in the terminal, without editing ~/.bashrc.

In any case, don't forget to use export.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.