xterm 실행하면 어떤 환경파일 먼저 읽나요?

andysheep의 이미지

/etc/profile

~/.profile

~/.bashrc

위 파일들에 테스트로 환경변수 지정한 다음에 현재 열린 xterm이나 윈도우 매니져의 명령행 실행 윈도우에서 xterm 실행하면 새 환경변수를 전혀 읽지 못하는군요.

X-Window 시작 할때 텍스트 모드로 로긴한 환경 변수를 그대로 가지고 오는 것 같은데.

배포판은 LFS 5.0 사용중입니다.

andysheep의 이미지

자문자답이 되네요.

xterm -e /bin/sh -login

or

xterm -e /bin/sh -l

~/.profile 에 alias 지정하면 됩니다.

Devuan 1.0 (Debian without systemd)
amd64 station: AMD FX(tm)-6100 Six-Core Processor, 8 GB memory, 1 TB HDD
amd64 laptop: HP Touchsmart

글쇠판: 세벌 최종식, 콜맥 (Colemak)