본문 바로가기

Ubuntu/linux Command

Linux System Command (source)

728x90

리부팅이나 쉘에 재로그인 하지 않고 수정된 새로운 환경 설정 내용을 즉시 적용하기 위해서 source 를 실행

 

 

구문 :  source [환경 설정 파일명]

 

 

용례1 : source ~/.bashrc

   .bashrc 를 다시 실행한다.

    note) ~ : home directory 를 의미함.

 

 

Linux 환경파일

 

/etc/profile : 시스템 전역 쉘 변수.

  • 쉘에 로그인 후 가장먼저 access
  • USER, LOGNAME, HOSTNAME 등의 쉘 변수들이 선언
  • 쉘 환경과 프로그램 시작 설정을 지정

 

 

/etc/bashrc  or  /etc/bash.bashrc : 쉘 함수, Alias 시스템 전역 변수 정의.

 

 

 

~/.bash_profile  or  ~/.profile : 유저 개인의 환경 설정

  • 유저 개개인의 PAHT, 시작 프로그램 등을 추가적으로 설정

 

 

~/.bashrc : 유저 개인의 alias 및 변수 설정

  • 유저 자신의 개인적인 명령어 alias, 환경변수를 설정

 

 

~/.bash_logout : 로그아웃 설정파일

  • 로그아웃시 실행할 절차를 선언 (ex:로그아웃시 터미널을 clear)

'Ubuntu > linux Command' 카테고리의 다른 글

Linux System Command (whois)  (0) 2021.08.06
Linux System Command (nslookup)  (0) 2021.08.05
Linux System Command (locale)  (0) 2021.08.05
Linux Basic Command (ln)  (0) 2021.08.05
Linux Command (chmod)  (0) 2021.08.05