MarcMonteiro
New Member
Hi all,
I installed OpenJDK 13 the I did the global shell start-up file.
# vi /etc/environment
Added:
Export JAVA_HOME=/opt/jdk-13/
Export PATH=$PATH:/opt/jdk-13/bin
Then ran the following command to active it.
# source /etc/environment
Then after that when I log in to the server again, it gave me this.
-bash: tty: command not found
-bash: ls: command not found
/usr/libexec/grepconf.sh: line 5: grep: command not found
-bash-4.2$
Now I can’t run any commands. How should I recover this?
$ sudo su
-bash: sudo: command not found
$ yum update
-bash: yum: command not found
$ vi /etc/hosts
-bash: vim: command not found
$ cd /etc/
$ ls
-bash: ls: command not found
thanks.
I installed OpenJDK 13 the I did the global shell start-up file.
# vi /etc/environment
Added:
Export JAVA_HOME=/opt/jdk-13/
Export PATH=$PATH:/opt/jdk-13/bin
Then ran the following command to active it.
# source /etc/environment
Then after that when I log in to the server again, it gave me this.
-bash: tty: command not found
-bash: ls: command not found
/usr/libexec/grepconf.sh: line 5: grep: command not found
-bash-4.2$
Now I can’t run any commands. How should I recover this?
$ sudo su
-bash: sudo: command not found
$ yum update
-bash: yum: command not found
$ vi /etc/hosts
-bash: vim: command not found
$ cd /etc/
$ ls
-bash: ls: command not found
thanks.