집에 VM으로 ubuntu를 설치했는데 왠 걸, 글자가 다 다이압몬드다 ,
다 들 알고 있듯이 bashrc 에서 언어 설정을 못 불러오는 것 같다. 확인.
export LANG=C를 vi ~/.bashrc 제일 아랫줄에
입력하고 저장.
정상적으로 글자가 보이게 된다.
결론 적으로 아래의 실행 프로세스를 타고 실행이 된다.
실행 파일의 호출 순서를 정리하면 다음과 같다. (OS는 /etc/profile과 ~/.bash_profile 2개를 순서대로 호출할 뿐인데, 각 파일이 내부적으로 다른 파일을 호출하는 것이다.)
- 리눅스 → /etc/profile → /etc/profile.d/test.sh
- 리눅스 → ~/.bash_profile → ~/.bashrc → /etc/bashrc
이것을 각 파일의 마지막에 코드를 추가했을 때 기준으로 실행 순서를 정리하면, 맨 위 문단에서 설명한 바와 같게 된다.
- /etc/profile.d/test.sh → /etc/profile
- /etc/bashrc → ~/.bashrc → ~/.bash_profile
http://jmnote.com/wiki/Profile_bashrc_bash_profile_%EC%8B%A4%ED%96%89_%EC%88%9C%EC%84%9C
결론적으로 아래와 같이 돼 있으므로 , .bashrc에 입력하면 로그인 할 때 마다 적용된다.
# ~/.bash_profile: executed by bash(1) for login shells. # see /usr/share/doc/bash/examples/startup-files for examples. # the files are located in the bash-doc package. umask 022 # the rest of this file is commented out. # include .bashrc if it exists if [ -f ~/.bashrc ]; then source ~/.bashrc fi (이하생략)
이상입니다~~~
'SERVER > OS' 카테고리의 다른 글
[WIN] takskill.exe 스크립트 (0) | 2017.05.02 |
---|---|
[widnows] 트러블 슈팅을 위한 로그 위치 (0) | 2016.10.27 |
OS 이미지를 손 쉽게 받을 수 있는 사이트(windows, linux) (0) | 2016.04.19 |
서버 mem 사용률 확인하기 (0) | 2015.07.28 |