환경변수 조작 실패... ls도 안됩니다.ㅠㅠ

lyproject의 이미지

활기찬 화요일 수고 많으십니다. (*_ _)

Ubuntu 10.04 사용중에 생긴 일입니다.

제가 안드로이드 개발 환경 잡는답 시고

usr/.configure을 잘못 만들어서 source로 등록했더니..

이후에 sudo, ls도 안되네요...;;

.bashrc 도 등록해보고 다른 ubuntu pc에서 .configure 가져와서 복사도 해봤는데 안됩니다.

이거 복구 할 수 있는 방법이 없을까요..?

cannon@cannon-Gstreamer:~$ source ~/.bashrc
Command 'lesspipe' is available in the following places
 * /bin/lesspipe
 * /usr/bin/lesspipe
The command could not be located because '/usr/bin:/bin' is not included in the PATH environment variable.
lesspipe: command not found
Command 'dircolors' is available in '/usr/bin/dircolors'
The command could not be located because '/usr/bin' is not included in the PATH environment variable.
dircolors: command not found
Command 'uname' is available in '/bin/uname'
The command could not be located because '/bin' is not included in the PATH environment variable.
uname: command not found
bash: [: =: unary operator expected
Command 'sed' is available in '/bin/sed'
The command could not be located because '/bin' is not included in the PATH environment variable.
sed: command not found
Command 'ls' is available in '/bin/ls'
The command could not be located because '/bin' is not included in the PATH environment variable.
ls: command not found
cannon@cannon-Gstreamer:~$ source ~/.profile
Command 'lesspipe' is available in the following places
 * /bin/lesspipe
 * /usr/bin/lesspipe
The command could not be located because '/usr/bin:/bin' is not included in the PATH environment variable.
lesspipe: command not found
Command 'dircolors' is available in '/usr/bin/dircolors'
The command could not be located because '/usr/bin' is not included in the PATH environment variable.
dircolors: command not found
Command 'uname' is available in '/bin/uname'
The command could not be located because '/bin' is not included in the PATH environment variable.
uname: command not found
bash: [: =: unary operator expected
Command 'sed' is available in '/bin/sed'
The command could not be located because '/bin' is not included in the PATH environment variable.
sed: command not found
Command 'ls' is available in '/bin/ls'
The command could not be located because '/bin' is not included in the PATH environment variable.
ls: command not found

lyproject의 이미지

.profile 파일 복사 해와서 복구하고 재 부팅 하니까 되네요..;;
재부팅이 안될 까봐 미루고 있었는데 검색하다 보니까 환경변수 파일 읽어오는 순서가 있더라구요.
혹시나 하고 재부팅 하니까 다시 읽어온 것 같습니다. =3.

rm, ls, 아무것도 안되길래 당황해서 너무 허둥지둥 한것 같습니다.
읽어주신 분들 감사합니다.(*__)

근데 본문 제목에 완료라고 달고 싶은데 안되네요.; 혹시 아시는 분 가르쳐 주세요..(*_ _)

/*
게으름, 귀찮음, 피곤, 나태...

체력이 부족하면 정신이 육체의 지배를 받는다.

무슨 일을 하든 체력부터 길러라.
*/

김정균의 이미지

source로 등록한 것만 rollback 시키고, 단순히 재로그인만 해도 문제가 해결이 되었을 수도 있을 듯 싶은데요 ^^;