指引网

当前位置: 主页 > 操作系统 > FreeBSD >

FreeBSD 更换 Shell bash

来源:网络 作者:佚名 点击: 时间:2017-08-31 02:12
[摘要] 刚刚装完FreeBSD 7.2,更换为平常使用的bash shell,做个笔记以备后查。

刚刚装完FreeBSD 7.2,更换为平常使用的bash shell,做个笔记以备后查。

步骤如下:
# cd /usr/ports/shell/bash
# make install clean
# chsh -s /usr/local/bin/bash
#logout 重新登录已经更换了
再加几个 linux 下面习惯的命令
 

复制代码 代码如下:
#cat /etc/profile
# $FreeBSD: src/etc/profile,v 1.14.30.1.2.1 2009/10/25 01:10:29 kensmith Exp $
#
# System-wide .profile file for sh(1).
#
# Uncomment this to give you the default 4.2 behavior, where disk
# information is shown in K-Blocks
# BLOCKSIZE=K; export BLOCKSIZE
#
# For the setting of languages and character sets please see
# login.conf(5) and in particular the charset and lang options.
# For full locales list check /usr/share/locale/*
# You should also read the setlocale(3) man page for information
# on how to achieve more precise control of locale settings.
#
# Read system messages
# msgs -f
# Allow terminal messages
# mesg y
export PATH=$PATH:/usr/local/mysql/bin:/usr/local/apache/bin:/usr/local/rrdtool/bin
alias ls="ls -aG"
alias ll="ls -ailG"
alias vi="/usr/local/bin/vim"
alias lo="cd /usr/local"
 
#source /etc/profile

------分隔线----------------------------