終端修改過程(從csh到bash in solary)

gtee@csgweb henry$ cat /etc/passwd
root:x:0:0:Super-User:/:/sbin/sh
daemon:x:1:1::/:
bin:x:2:2::/usr/bin:
sys:x:3:3::/:
adm:x:4:4:Admin:/var/adm:
lp:x:71:8:Line Printer Admin:/usr/spool/lp:
uucp:x:5:5:uucp Admin:/usr/lib/uucp:
nuucp:x:9:9:uucp Admin:/var/spool/uucppublic:/usr/lib/uucp/uucico
smmsp:x:25:25:SendMail Message Submission Program:/:
listen:x:37:4:Network Admin:/usr/net/nls:
gdm:x:50:50:GDM Reserved UID:/:
webservd:x:80:80:WebServer Reserved UID:/:
postgres:x:90:90:PostgreSQL Reserved UID:/:/usr/bin/pfksh
svctag:x:95:12:Service Tag UID:/:
nobody:x:60001:60001:NFS Anonymous Access User:/:
noaccess:x:60002:60002:No Access User:/:
nobody4:x:65534:65534:SunOS 4.x NFS Anonymous Access User:/:
mysql:x:235650:98194049::/opt/csw/mysql5:/bin/false
rgallard:x:2413:900:Raymond Gallardo:/export/home/rgallard:/usr/bin/csh
uadmin:x:0:0:Super-User:/:/sbin/sh

oemora:x:614445:8500::/opt/oracle/oemora:/bin/csh-----------此行代表本地用戶默認使用的shell


進入bash直接輸入命令即可:bash(回車)
bash進入時候默認讀取用戶目錄下的.bashrc文件,可在目錄中添加export PS1=\u@\h \W$
即顯示爲 gtee@csgweb henry$ 。






發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章