Server Fault Asked by Jonas Heinze on November 4, 2021
When I login to my CentOS 7 Server I get a couple of errors.
Similar command is: 'tty'
bash: ls: command not found...
Similar command is: 'lz'
/usr/libexec/grepconf.sh: line 5: grep: command not found
Yesterday I tried to install the jre 9 by using this tutorial: https://howtoprogram.xyz/2017/09/22/install-oracle-java-9-centos-rhel/
.
My server don’t recognize commands like ls
or yum
.
I tried to run yum reinstall grep
but the response just was bash: yum: Befehl nicht gefunden...
(command not found).
When I run echo $PATH
the response is /usr/local/sbin:/usr/sbin:$PATH:$JAVA_HOME/bin:/root/.dotnet/tools:/root/bin
.
You need to put /bin on the path.
You can make that permanent by editing your shell's configuration file. If you're using bash that would be .bashrc or .bash_profile, if you're using a different shell the file will be different.
Note that editing /etc/environment to add /bin will likely fix things regardless of the shell. According to this answer /etc/environment normally points to /bin amongst other things.
Answered by Robert Longson on November 4, 2021
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP