I was messing around with my Linux VPS to get a better feel of it, but I broke it...
I was trying to install JDK and I was reading the docs at oracle and I ended up editting my .profile and added the following code:
I was told that it sets your PATH for you automatically, so you do not have to set it every time you log in.
Now linux commands "ls -la", "pwd", etc, do not work and I keep getting -bash:
Any idea why this is happening?
.profile
I added
to the end, so now it looks like
I was trying to install JDK and I was reading the docs at oracle and I ended up editting my .profile and added the following code:
Code
PATH=/usr/local/jdk1.7.0_05/bin
export PATHNow linux commands "ls -la", "pwd", etc, do not work and I keep getting -bash:
Quote:ls: No such file or directory
Any idea why this is happening?
.profile
Code
# ~/.profile: executed by Bourne-compatible login shells.
if [ "$BASH" ]; then
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
fi
mesg nCode
PATH=/usr/local/jdk1.7.0_05/bin
export PATH
echo $PATHCode
# ~/.profile: executed by Bourne-compatible login shells.
if [ "$BASH" ]; then
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
fi
mesg n
PATH=/usr/local/jdk1.7.0_05/bin
export PATH
echo $PATH

