IT이야기

Linux 초기화 파일 실행 순서

후니프로 2016. 7. 14. 11:23

Bash shell2 초기화 (스크립트)파일 실행순서

  • Bash manpage와 우분투 커뮤니티 위키의 환경변수2에 따르면 아래와 같으며, 나열한 것의 위에서부터 아래 순이다.

    /etc/profile 파일이 있는 경우 실행

    /etc/profile.d/*.sh 폴더 내 쉘스크립트 확장자(.sh)로 된 파일을, 파일명 알파뱃 순으로 실행

    ~/.bash_profile

    ~/.bashrc

    ~/.bash_login

    ~/.profile

    ~/.bash_logout 로그아웃시 실행