歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux編程 >> SHELL編程 >> 配置freebsd的shell為bash

配置freebsd的shell為bash

日期:2017/2/28 11:12:16   编辑:SHELL編程


首先,安裝bash
# cd /usr/ports/shell/bash
# make install clean
其次,更改csh為bash
# chsh -s /usr/local/bin/bash
最後,更改bash為csh
# chsh -s /bin/sh
附錄:
在freebsd中默認的ls不以彩色顯示,但是可以通過如下設置實現彩色顯示。
1. # ls -G
2. # vi /etc/profile
添加下行
alias ls="ls -G"
3. # vi .bash_profile
添加下行
alias ls="ls -G"
Copyright © Linux教程網 All Rights Reserved