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
이 문제는 모든 사용자에게 발생합니까, 아니면 루트 사용자에게만 발생합니까? 모든 사람이라면 /etc/profile.d에서 최근에 수정된 스크립트를 찾아보세요(문제가 발생하기 시작한 이후). find /etc/ -path *profile* -mtime -5
지난 5일 동안 수정된 작업에 대해 수행할 수 있습니다. 루트용이라면 먼저 /root/.bashrc에서 잘못된 스크립트를 살펴보세요.