# hostname과 current path 출력하기
변경하고자 하는 계정의 home directory로 접근하여 .profile 파일에 다음과 같이 추가
$ pwd
$ /home/admin/
$ vi .profile
:
export PS1="`hostname`":'$PWD#'
:
~
~
:wq!
hostname:/home/admin/$
hostname:/home/admin/$ pwd
hostname:/home/admin/$ /home/admin/
'서버관리' 카테고리의 다른 글
시스템 종료 (shutdown) (0) | 2013.03.17 |
---|---|
사용자계정 삭제 (0) | 2013.03.14 |
사용자 계정추가 (0) | 2013.03.11 |
linux hostname변경 (1) | 2013.02.11 |
Windows XP bit 확인 (0) | 2012.12.06 |