Jquery中文网 www.jquerycn.cn
Jquery中文网 >  操作系统  >  BSD  >  正文 FreeBSD 更换 Shell bash

FreeBSD 更换 Shell bash

发布时间:2014-07-20   编辑:www.jquerycn.cn
刚刚装完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

您可能感兴趣的文章:
FreeBSD 更换 Shell bash
inux shell初级入门教程
更换ip的shell代码
bash shell获取当前正执行脚本的绝对路径
Linux chsh命令
vim中执行shell命令的方法介绍
更改linux用户登录shell的方法
bash shell脚本执行的几种方法
不同shell环境下数值运算的处理
linux用户相关命令(useradd、userdel、usermod、finger)

下一篇:freeBSD挂载光驱
[关闭]