라벨이 bashrc인 게시물 표시

bash script 안에서 alias 적용된 명령어 수행하는 방법 (.bashrc)

experience bash shell 안에서 .bashrc에 설정된 alias 커맨드 실행하려하는데, command not found 발생...   - bash script 안에 source ~/.bashrc 위 라인에 다음을 추가하면 됨..   shopt -s expand_aliases   from :  https://askubuntu.com/questions/98782/how-to-run-an-alias-in-a-shell-script

리눅스(linux) 환경변수 설정 파일 목록 및 로딩 순서 (/etc/profile, /etc/bashrc/, ~/.bashrc, ~/.bash_profile)

  experience linux에서 환경변수 설정 조회할 일이 있어 찾다보니, 이 순서를 알아야 할 것 같아서 정리 *  아래 순이라고 함... (script 내부에서 다음 파일을 호출하는 듯) 1. /etc/profile → /etc/profile.d/test.sh 2. ~/.bash_profile → ~/.bashrc → /etc/bashrc