https://stackoverflow.com/questions/12996397/command-not-found-when-using-sudo
Command not found when using sudo
I have a script called foo.sh in my home folder. When I navigate to this folder, and enter ./foo.sh, I get -bash: ./foo.sh: Permission denied. When I use sudo ./foo.sh, I get sudo: foo.sh:
stackoverflow.com
$ chmod +x foo.sh
sudo 로 실행해도 실행파일의 실행권한이 없어서 command 를 찾을 수 없다고 뜨는 경우가 있음
chomod 로 실행권한 추가
'자기개발 > Linux' 카테고리의 다른 글
'Error: Could not find or load main class' 자바관련 에러 (0) | 2022.12.06 |
---|---|
E: Unable to locate package (0) | 2022.09.02 |
Centos 폰트 설치 (0) | 2022.08.18 |
명령어 모음 (0) | 2022.08.05 |
Remote host identification has changed (0) | 2022.06.13 |