I have just installed Netbeans, and I have added
export PATH="$PATH:/home/jumbo/netbeans/bin"
to /etc/environment, which now looks like:
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"
JAVA_HOME="/usr/lib/jvm/java-8-openjdk-amd64"
export PATH="$PATH:/home/jumbo/netbeans/bin"
But now I can't login normally, using LightDM gui. Every time I enter my password, the login screen clears and then comes back again. When I login via ctrl/alt/F3 there is no problem logging in, but it reports that "ls" cannot be found because "/bin" is not in the PATH.
Can anyone explain to me what I have done incorrectly?
ps: I've removed the offending line so that I can get on with my work, but I would still like to know the reason for this happening, if anyone can help.