Aix5.3安装Bash环境

Aix5.3安装Bash环境

bash shelllinux上默认的shell,可以使用tab补全,上下键切换历史命令等,比AIX(大部分的Unix系统)默认的ksh shell好用。

IBM提供的所有AIX下能够安装的LINUX下的软件下载地址,里面包含bash shell

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

3、修改用户环境变量,$HOME/.profile添加:
export PS1="[u@h W]#"

4、修改/etc/security/login.cfg,在shells属性添加bash命令:
shells = /bin/bash,/bin/sh,/bin/bsh......

5、修改/etc/passwd,修改用户的默认shell,如:
root:!:0:0::/:/bin/bash

6、注销,重新登陆系统,搞定~~~

本文出自韦少乾 - 服务器系统架构博客,

本文出自:http://eryin.blog.51cto.com/320220/244593

[@more@]
请使用浏览器的分享功能分享到微信等