Chinaunix首页 | 论坛 | 博客
  • 博客访问: 365872
  • 博文数量: 78
  • 博客积分: 3274
  • 博客等级: 中校
  • 技术积分: 686
  • 用 户 组: 普通用户
  • 注册时间: 2009-11-06 12:47
文章分类

全部博文(78)

文章存档

2017年(1)

2016年(2)

2015年(2)

2014年(1)

2013年(5)

2012年(22)

2011年(8)

2010年(31)

2009年(6)

分类:

2009-12-12 00:30:39

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。
阅读(928) | 评论(0) | 转发(0) |
0

上一篇:Solaris安装man

下一篇:串口及接口类型

给主人留下些什么吧!~~