Chinaunix首页 | 论坛 | 博客
  • 博客访问: 509845
  • 博文数量: 106
  • 博客积分: 1707
  • 博客等级: 上尉
  • 技术积分: 1109
  • 用 户 组: 普通用户
  • 注册时间: 2009-11-16 11:24
个人简介

从事互联网开发、运营、设计、运维等工作。偏爱底层开发,服务器运维

文章分类

全部博文(106)

文章存档

2016年(3)

2015年(6)

2014年(5)

2013年(11)

2012年(8)

2011年(8)

2010年(34)

2009年(31)

分类: BSD

2011-04-27 15:29:59

有点不习惯FreeBSD下的csh,虽然可以输入bash临时切换到bash下,但每次都这样来一次,显得比较麻烦,一次搞定他,使用chsh命令来修改FreeBSD默认的shell吧:
FreeBSD# whereis bash
bash: /usr/local/bin/bash /usr/local/man/man1/bash.1.gz /usr/ports/shells/bash
FreeBSD# chsh -s /usr/local/bin/bash
chsh: user information updated

如果显示以上信息,注销重新登陆一下:
看是不是[root@FreeBSD ~]

如果是这样的话,则表示shell已经成功修改。
阅读(869) | 评论(1) | 转发(0) |
给主人留下些什么吧!~~

dearyzy2012-11-23 15:40:13

linux下有不同的shell,这个我是知道,不过一般的发行版,都是用bash shell,所以我也就没有折腾过。不过到了freebsd,你就肯定要搞明白。

freebsd,如果你缺省安装,是使用csh shell。怎么修改bash shell 呢?

1:安装bash shell

cd /usr/ports/shells/bash
make install clean

2:查看当前的shell

echo $0

3:修改缺省bash shell

#whereis bash
bash: /usr/local/bin/bash /usr/local/man/man1/bash.1.gz /usr/ports/shells/bash
#chsh -s /usr/local/bin/bash
chsh: user informatio