"~/.profile"의 두 판 사이의 차이

 
1번째 줄: 1번째 줄:
;/root/.profile
;/root/.profile
;.profile
;.profile
==개념==
*.profile 파일은 홈($HOME) 디렉토리에 존재함
* 개개인의 작업 환경 설정이 가능함
*.profile 은 점으로 시작하는 숨겨진 파일로 존재
* /etc/profile 파일에 설정된 변수에 우선함


==내용==
==내용==

2018년 8월 23일 (목) 11:36 기준 최신판

/root/.profile
.profile

1 개념[ | ]

  • .profile 파일은 홈($HOME) 디렉토리에 존재함
  • 개개인의 작업 환경 설정이 가능함
  • .profile 은 점으로 시작하는 숨겨진 파일로 존재
  • /etc/profile 파일에 설정된 변수에 우선함

2 내용[ | ]

Bash
Copy
# ~/.profile: executed by Bourne-compatible login shells.

if [ "$BASH" ]; then
  if [ -f ~/.bashrc ]; then
    . ~/.bashrc
  fi
fi

mesg n

3 같이 보기[ | ]