개발환경 셋팅시 $PATH를 잘못건드려 커맨드 명령 대부분이 먹통이 됬다 vi도 실행이 안됬는데 이런 경우 이 글을 참고하시어 해결했기 바랍니다.
아래와 같은 명령어를 사용하여 .bash_profile 파일을 열자
/usr/bin/nano .bash_profile
그리고 기본적인 PATH 경로는 /usr/bin:/bin:/usr/sbin:/sbin 이다.
PATH=/usr/bin:/bin:/usr/sbin:/sbin
그리고 .bash_profile 변경후 source 를 사용하여 업데이트 해주어야한다.
Mac OSX에서 Bash를 재설정하는 방법, .bash_profile이 손상되어 bash가 더 이상 작동하지 않습니다
qastack.kr
superuser.com/questions/121870/how-do-i-reset-the-path-variable-on-mac-os-x
How do I reset the $PATH variable on Mac OS X?
I've messed up my path variable, and now some apps that I run raise errors saying Command Not Found (error 127) for commands like date and sleep. These commands work fine when executed directly in ...
superuser.com
'IT > 꿀팁' 카테고리의 다른 글
[phpstorm] 파일 type 인식 안될때 해결방법 (0) | 2021.10.18 |
---|---|
[mac] Alias 터미널 명령어 등록 하는 방법 (0) | 2020.11.22 |
[mac] mac php, node, git 개발환경 세팅하기 (0) | 2020.11.19 |
[공유기] 공유기를 통한 원격 접속 에러 방법 (0) | 2020.11.16 |
윈도우 10 갑자기 블루투스가 사라졌을때 해결 방법 (0) | 2020.07.26 |