<인턴생활>/[리눅스]
[문제해결]-bash-4.1$
Hading
2019. 3. 8. 13:20
728x90
리눅스에서 경로가 -bash-4.1$로 접속이 되는 경우
방법 1.
vi ~/.bashrc 에다가
export PS1="[\u@\h\w]\\$"
source ~/.bashrc
해주면 해결
방법 2.
vi /etc/profile 에다가
if[-x /usr/libexec/path_helper]; then
[eval '/usr/libexec/path_helper -s'
fi
if["${BASH-no}"!="no"]; then
[ -r /etc/bashrc]&& ./etc/bashrc
fi
source /etc/profile 명령어를 실행하여 적용
로그 아웃 후 다시 확인해보면 해결
728x90