Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .