[Ilugc] FreeBSD - how to set the environment variable?

  • From: linux@xxxxxxxxxxxxxxxx (Suresh Ramasubramanian)
  • Date: Tue Jul 19 13:47:04 2005

At 01:27 PM 7/19/2005, Joseph Kulandai wrote:

I logged in using Telnet and changed user to "root".
I installed jdk and added "JAVA_HOME=/usr/local/diablo-jdk1.3.1" and
"export JAVA_HOME" to the file "/root/.profile"
After doing this, I logged out and then logged in using Telnet and
changed user to "root".
Then now, the environment variable set is not taking effect. I typed
"echo $JAVA_HOME"

I have only Telnet access to the computer. My aim is to set the
environment variable. How should I do it? Please help me in the above
issue.

Dont use telnet, use ssh

And find out what shell you are using as root - freebsd uses /bin/sh, 
not bash, for root, by default


-- 
linux@xxxxxxxxxxxxxxxx (Suresh Ramasubramanian)
jaharkes@ravel:/usr/src$ mv linux Gnu/Linux
mv: cannot move `linux' to `Gnu/Linux': No such file or directory
         jaharkes @ cs.cmu.edu in reply to RMS on linux.kernel 

Other related posts: