![Die Debian-Eingabeaufforderung ist defekt](https://rvso.com/image/50580/Die%20Debian-Eingabeaufforderung%20ist%20defekt.png)
Wenn ich mich über SSH oder von der Konsole aus anmelde, sehe ich Folgendes:
Linux sensu.lbox.com 3.2.0-4-amd64 #1 SMP Debian 3.2.46-1+deb7u1 x86_64
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Fri Sep 27 12:40:33 2013
-bash: id: command not found
-bash: [: : integer expression expected
root@sensu:~#
Was ist das und wie werde ich es los?
-bash: id: command not found
-bash: [: : integer expression expected
Ich kann die meisten Befehle nicht ausführen und es heißtcommand not found instead
Danke.
Antwort1
Die Ursache lag letztendlich in einer fehlerhaften /etc/environment-Datei.
Antwort2
Passiert das bei allen Benutzern oder nur bei root? Wenn es bei allen der Fall ist, suchen Sie unter /etc/profile.d nach einem Skript, das vor Kurzem geändert wurde (seit das Problem aufgetreten ist). Sie könnten find /etc/ -path *profile* -mtime -5
nach etwas suchen, das in den letzten 5 Tagen geändert wurde. Wenn es nur bei root der Fall ist, suchen Sie zuerst in /root/.bashrc nach fehlerhaften Skripten.