
SSHまたはコンソールからログインすると、次のように表示されます。
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:~#
それは何であり、どのように削除しますか?
-bash: id: command not found
-bash: [: : integer expression expected
ほとんどのコマンドは実行できません。command not found instead
ありがとうございます。
答え1
これは最終的に間違った/etc/environmentファイルが原因で発生しました。
答え2
この問題はすべてのユーザーに発生しますか、またはrootユーザーにのみ発生しますか?誰もが/etc/profile.dで最近修正されたスクリプトを見つけてください(問題が発生し始めたため)。find /etc/ -path *profile* -mtime -5
過去5日間に変更されたコンテンツを確認できます。ルート用の場合は、まず/root/.bashrcで誤ったスクリプトを見つけてください。