/etc/profile vs ~/.bash_profile

hanim·2022년 8월 31일
0

CentOS

목록 보기
2/2

CentOS에서 환경변수 설정시

/etc/profile or ~/.bash_profile 에서 설정

차이점

/etc/profile

  • 시스템 전역(모든사용자들)에 대한 환경설정
  • 부팅 후 적용

~/.bash_profile

  • 개인사용자에 대한 환경설정
  • 개인이 로그인시에 적용
  • ex) sudo usr 로 로그인시 적용
profile
개발자가 되려는 개발자

0개의 댓글