
Adicionei algum serviço ao script de inicialização e, após a 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 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
estão chkconfig
funcionando. Verifiquei se meu arquivo /bin/bash está presente. Qual pode ser a razão ?
mas antes disso eu 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 alterei 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