bash_profile bashrc 차이


bash_profile bashrc 차이

리눅스에서 alias를 수정하거나 PATH를 변경할 때 접하게 되는 대표적인 4가지 파일들 1. /etc/profile 2. /etc/bashsrc 3. ~/.bash_profile 4. ~/.bash_rc 무엇일까 ?_? 1. /etc/profile vs ~/.bash_profile 전역적인 파일로 모든 사용자가 로그인시 실행되며, bash_profile의 경우 지역적파일로 해당하는 사용자가 로그인 시만 실행된다. 또한 profile의 경우 어떠한 shell이든 상관없지만, bash_profile의 경우 bash shell 의 경우만 해당된다. 2. /etc/bashsrc vs ~/.bashrc profile과 달리 Login 과정이 없으므로 shell을 실행시키는 사용자로 구분한다. /etc/bash..


원문링크 : bash_profile bashrc 차이