Posted by walrus on July 21, 2008
Here is how to setup JAVA_HOME and PATH environment variables for a single user or all users on Fedora Linux system
Setting JAVA_HOME and PATH for a single user
# vi ~/.bash_profile
# export JAVA_HOME=/opt/jdkx.x.x_xx
# export PATH=$PATH:$JAVA_HOME/bin
Setting JAVA_HOME and PATH for all users
# vi /etc/profile
# export JAVA_HOME=/opt/jdkx.x.x_xx
# export PATH=$PATH:$JAVA_HOME/bin
Posted in Software, Technology, java, linux | Tagged: java, linux, shell | Leave a Comment »
Posted by walrus on July 21, 2008
Here are three quick ways to find out which shell you are currently using:
Method 1:
command:
# echo $SHELL
output:
/bin/bash
Method 2:
command:
# echo $0
output:
-bash
Method 3:
command:
# ps -p $$
output:
PID TTY TIME CMD
1447 tty1 00:00:01 bash
Posted in Software, Technology, linux | Tagged: fedora core 5, linux, shell | 1 Comment »