목록profile (1)
Hacking Arts
[Linux] /etc/profile, ~/.bash_profile, /etc/bashrc, ~/.bashrc
/etc/profile, ~/.bash_profile, ~/.bashrc, /etc/bashrc 파일들은 장치 관리 및 사용자 환경을 위한 설정파일 입니다.위 파일들의 차이점을 알기위해선 먼저 login shell과 non-login shell을 알아둬야 합니다.* login shell : 처음 리눅스를 부팅하고 터미널을 켰을 경우 특정 shell로 접속이 되면 login shell* non-login shell : 터미널을 켰을 때 특정 shell로 들어가지 않고 직접 sh 등의 명령어로 특정 shell에 들어가야 할 경우 non-login shell예를 들어 java 환경변수를 잡을 때 non-login shell일 경우 .bashrc 파일을 이용해야 합니다. * login shell (profile..
Computer & ETC/linux
2014. 8. 23. 02:12