[Linux] chmod 명령어로 파일 / 디렉토리 권한 변경하기(Changing file/directory permissions with chmod command)


[Linux] chmod 명령어로 파일 / 디렉토리 권한 변경하기(Changing file/directory permissions with chmod command)

리눅스(Linux)에서 파일이나 디렉토리의 권한을 소유자, 소유 그룹, 그 외 사용자들에 맞게 설정하여 사용하고 있다. 이때 특정 파일이나 디렉토리의 경우 어떠한 이유(보안상 이유 등)로 권한을 줄 수도 있고 뺄 수도 있다. 이럴 때 사용하는 명령어가 chmod이다. chmod는 Change mode의 약어이다. 그럼 이제 chmod 명령어를 통해서 파일 / 디렉토리의 권한을 변경해보도록 하자. 1. chmod 명령어 사용법 기본적으로 chmod 명령어 아래와 같이 사용한다. $ chmod 755 test.sh # chmod 명령어 사용법 $ chmod --help 사용법: chmod [옵션]... MODE[,MODE]... FILE... 또는: chmod [옵션]... 8진수-MODE FILE... 또..


원문링크 : [Linux] chmod 명령어로 파일 / 디렉토리 권한 변경하기(Changing file/directory permissions with chmod command)