CAFE

명령어

터미널 호스트 이름 숨기기 리눅스 호스트 네임 숨기기

작성자동우|작성시간16.05.29|조회수2,132 목록 댓글 1

http://stackoverflow.com/questions/23533407/how-to-hide-the-hostname-on-the-terminal-on-linux


export PS1='$'


녹화 하거나 할 경우 호스트 네임이 보이면 좀 그렇죠 아무튼 쉽네요 생각 보다



http://ubuntuforums.org/showthread.php?t=1039762


sudo cp ~/.bashrc ~/.bashrc_bakup

sudo gedit ~/.bashrc



검색 PS1= 또는 아래

PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
\u@\h: 부분 제거

다음검색
현재 게시글 추가 기능 열기

댓글

댓글 리스트
  • 작성자동우 작성자 본인 여부 작성자 | 작성시간 19.08.14 https://apple.stackexchange.com/questions/34910/how-to-hide-computer-name-and-user-name-in-terminal-command-prompt
    sudo cp ~/.bash_profile ~/.bash_profile.bak
    sudo echo "export PS1='$ '" >> ~/.bash_profile

    #복구
    sudo cp ~/.bash_profile.bak ~/.bash_profile
댓글 전체보기
맨위로

카페 검색

카페 검색어 입력폼