免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3431 | 回复: 0
打印 上一主题 下一主题

FreeBSD Shell bash 更换 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-12-10 15:37 |只看该作者 |倒序浏览
刚刚装完  FreeBSD 7.2,更换为习惯用 bash,随便记录下来。
步骤如下:

    # 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

呵呵大功告成。

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/26978/showart_2116640.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP