IBM AIX安裝Bash Shell

bashshell是linux上默認的shell,可以使用tab補全,上下鍵切換歷史命令等,比AIX(大部分的Unix系統)默認的ksh shell好用。

IBM提供的所有AIX下能夠安裝的LINUX下的軟件下載地址,裏面包含bashshell:

http://www-03.ibm.com/systems/power/software/aix/linux/toolbox/alpha.html

1、下載bash軟件

ftp://ftp.software.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/bash/bash-3.2-1.aix5.2.ppc.rpm

2、安裝bash軟件

rpm-ivh bash-3.2-1.aix5.2.ppc.rpm

此時已經可以使用 bash

3、修改用戶環境變量,$HOME/.profile添加:

export PS1=”[\u@\h \W]#”bash下纔可以修改

4、修改/etc/security/login.cfg,在shells屬性添加bash命令:

shells =/bin/bash,/bin/sh,/bin/bsh……

5、修改/etc/passwd,修改用戶的默認shell,如:

root:!:0:0::/:/bin/bash

6、註銷,重新登陸系統,搞定~~~


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