0

Let's say I run this straight from a bash command line, where is this information actually being stored?

export PATH="/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games"
kylex
  • 1,421
  • 5
  • 14
  • 18

1 Answers1

5

It goes into the environment for the current shell (stored in the RAM); you can see this by typing export.

If you quit the shell, then any changes you've made to the environment are lost. If you want changes to persist, then you should add them to the files that your shell will execute on startup (e.g. one of ~/.bash_profile, ~/.bashrc, etc.).

nickgrim
  • 4,466
  • 1
  • 19
  • 28
  • And is the environment a text file stored on the system, or... how/where is that data stored? – kylex Oct 28 '12 at 18:51
  • 1
    No, it's just in RAM - if you quit the shell then any changes you've made are lost. If you *want* changes to persist, then you should add them to the files that your shell will execute on startup (e.g. one of `~/.bash_profile`, `~/.bashrc`, etc.) – nickgrim Oct 28 '12 at 18:54
  • 1
    (Perhaps you'll find the [Bash Guide for Beginners](http://tldp.org/LDP/Bash-Beginners-Guide/html/index.html) helpful, especially chapter 3) – nickgrim Oct 28 '12 at 18:56