INEWUP'S BLOG

AIX安装Bashshell

AIX默认为 Korn Shell,如需使用BSH ,操作如下:

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

3) 修改用户环境变量,$HOME/.profile添加:

export PS1=”#”

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

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

5) 修改/etc/passwd,修改用户的默认shell,如:

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

6) 注销,重新登陆系统

smit  install

  • INPUT device / directory for software               /
  • SOFTWARE to install                                                + PREVIEW only? (install operation will NOT occur)    no                                        + COMMIT software updates?                            no                                                              + + ACCEPT new license agreements?                      yes                                                       +

注:如果需要用aix的ksh环境,只需要在系统上执行命令:**#ksh ** 。