유닉스 환경파일들의 위치
아래는 솔라리스에서 주로 사용하는 쉘들의 환경 파일들의 위치이다.
/bin/sh
1단계 파일 : /etc/profile
2단계 파일 : 각 홈디렉토리의 /export/home/{homedir}/.profile (이하 {homedir}/.profile)
/bin/bash
1단계 파일 : /etc/profile
2단계 파일 : {homedir}/.profile {homedir}/.bashrc 또는 {homedir}/.bash_profile
/bin/csh
1단계 파일 : /etc/profile
2단계 파일 : {homedir}/.login
{homedir}/.cshrc 또는 {homedir}/.loginout
/bin/ksh
1단계 파일 : /etc/profile
2단계 파일 : {homedir}/.profile 또는 {homedir}/.kshrc
(참고로 "혹은 {homedir}/.bash_profile" 이 붙어 있는 환경 파일은 시스템에 따라 다르게 읽어 들일 수 있는 환경 파일들이다. 기본적인 솔라리스에서는 "혹은 {homedir}/.bash_profile"은 읽어 들이지 않는다.)
가장 주로 읽어 들이는 파일들은 /etc/profle이다. profile만 고쳐 주면 모든 사용자들에게 같은 환경을 설정해 줄 수 있다.
출처> killins.egloos.com
내가 >
. ./.profile
을 하면 변경된 profile이 적용된다 [HP-UX]에서
댓글 없음:
댓글 쓰기