Tell me more ×  I'm running Ubuntu 12.04  I added  export
LD_LIBRARY_PATH=/home/dspies/workspace/hdf5-1.8.11-linux-
shared/lib  to .profile  but when I log in and open terminal and
put echo $LD_LIBRARY_PATH there's nothing.  When I switch to
ctrl-alt-F1 and log in, echo $LD_LIBRARY_PATH gives   but then
when I run screen, echo $LD_LIBRARY_PATH from within screen is
empty again  In what circumstances can I expect environment
variables from .profile to be set? (interestingly, it seems any
modifications to PATH made in .profile always show up)  EDIT:
Sorry, I guess I didn't clarify what I really wanted to know
which is: How can I set an environment variable that I mean to
be set anywhere (ie in screen, in terminal, when I log-in, and
when I ssh in)?  share|improve this question What is the output
of echo $0? –  thefourtheye May 22 at 7:36 From within terminal,
it's just "bash", in CTRL-ALT-F1, it's "-bash", and in screen,
it's "/bin/bash". Why? What is $0? –  dspyz May 22 at 7:40 add
comment  3 Answers  From the