어떤 프로그램이 csh.cshrc를 호출합니까?

어떤 프로그램이 csh.cshrc를 호출합니까?

사용자가 원격으로 Unix에 로그인하면 먼저 getty 프로세스가 시작된다는 것을 알고 있습니다. 인증이 성공하면 etc/environment가 호출됩니다. 그런데 이 과정에서 언제 csh.cshrc와 csh.login이 호출되는지 이해가 되지 않습니다.

답변1

csh.cshrc및 ( 또는 ) csh.login의 전역 버전입니다 (예: csh의 구성 파일). csh가 실행되면 and를 모두 읽습니다 (cshlogin 파일도 모두 읽습니다). 사용자가 자신의 홈 디렉토리에 없으면 csh는 읽기만 할 수 있습니다 . 이는 루트(또는 올바른 sudo 권한을 가진 사람) 가 기본 설정을 포함하도록 설정할 수 있고 모든 사용자가 에서 자신의 설정을 사용자 정의할 수 있기 때문입니다 .~/.cshrc~/.login~/.csh_login/etc/csh.cshrc~/.cshrc~/.cshrc/etc/csh.cshrc/etc/csh.cshrc~/.cshrc

답변2

에서 man csh:

  An instance of csh begins by executing commands from the file
 /etc/csh.cshrc and, if this is a login shell, /etc/csh.login.  It then
 executes commands from .cshrc in the home directory of the invoker, and,
 if this is a login shell, the file .login in the same location.  It is
 typical for users on CRTs to put the command stty crt in their .login
 file, and to also invoke tset(1) there.

관련 정보