
답변1
터미널 ++를 열고 다음을 입력하세요 ctrl.altt
nano .bashrc
ctrl+를 누르고 w엔터를 쳐주세요
PS1=
그런 다음 enter편집해야 하는 줄로 이동하게 되지만 아래를 확인하십시오.
당신의 이런 부분을 찾아보세요~/.bashrc
if [ "$color_prompt" = yes ]; then
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
두 번째 줄을 다음과 같이 편집하세요(제거 @\h
).
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
저장 ctrl+ o종료 enter+ 터미널 ctrl에 o입력
source ~/.bashrc