Quote:
Originally posted by noobtesting
I dont know anything about a bash_profile is that something I need to make or should I have it already? If so where should it be an dif not where should I put it once I make it?
Thanks
|
You should already have a .bash_profile (the 'dot/period' denotes that it's a hidden file) in your user directory, but you need to have hidden files shown in order to see them. In cli, cd to your user directory and type 'ls -a'. That will show all files + hidden ones.
You can click/double-click on the file, and it will open up in a file editor. Then just add the lines I posted.
For example, here's a default ~/.bash_profile:
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin
export PATH
unset USERNAME
And one that's been editied with the path set to java:
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin
export PATH
unset USERNAME
PATH = $PATH:/usr/java/j2re[version]/bin
export PATH
And save.