Comandos Shell não funcionam: REDHAT

2

Eu adicionei alguns serviços ao script de inicialização e, depois da reinicialização, recebi esta mensagem

24 package(s) needed for security, out of 52 available
Run "sudo yum update" to apply all updates.
-bash: id: command not found
-bash: id: command not found
-bash: id: command not found
-bash: tty: command not found
-bash: mktemp: command not found
-bash: $TMP: ambiguous redirect
-bash: rm: command not found

e quando eu tento executar a maioria dos comandos básicos como netstat , ps , grep , ll etc, recebo uma mensagem de erro como esta

-bash: ls: command not found

mas alguns comandos como cp , chkconfig estão funcionando. Verifiquei que meu arquivo / bin / bash está presente. qual pode ser a razão?

mas antes disso fiz as seguintes alterações

echo "JAVA_HOME=/usr/java/jdk1.6.0_45" >> /etc/profile.d/custpath.sh
echo "export JAVA_HOME" >> /etc/profile.d/custpath.sh
echo 'PATH=$PATH:$JAVA_HOME/bin' >> /etc/profile.d/custpath.sh
echo "export PATH" >> /etc/profile.d/custpath.sh

e alterou o arquivo / etc / environment para

export JAVA_HOME=/usr/java/jdk1.6.0_45
export PATH=$PATH:$JAVA_HOME/bin
export CLASSPATH=$CLASSPATH:/usr/java/jdk1.6.0_45/jre/lib
    
por Subham Tripathi 20.07.2015 / 07:26

0 respostas