PostCards发布于 2008-3-06
1.vi /etc/passwd
把/sbin/sh改为/bin/bash
2.设定PS1
vi /.profile
PS1='[\u@\h \W]\$'
PATH=/usr/sfw/sbin:$PATH:/usr/sfw/bin
这样设定好的话下次登陆就是bash环境了.还更新了提示符
***********************************************************************
选自man bash的信息:
When bash is invoked as an interactive login shell, or as a non-interactive shell with the --login option, it first reads and executes commands from the file /etc/profile, if that file exists. After reading that file, it looks for ~/.bash_profile, ~/.bash_login, and ~/.profile, in that。
阅读(961) | 评论(0) | 转发(0) |