[FreeBSD]_[Shell编程]

来源:互联网 发布:淘宝怎么搜vr资源 编辑:程序博客网 时间:2024/05/22 03:22

http://www.freebsd.org/

虽然说bsd比较安全严谨,但是linux的可定制性更高,所以还是比较喜欢linux.


1.Vi

vi的删除字符和MacOS不一样了,是进入normal模式然后用x来删.


2.修改默认csh Shell为Bash Shell


1. 安装 bash
代码:
# cd /usr/ports/shells/bash
# make install clean

2. 将 shell 改成 bash 代码:
# chsh <== 这个指令就是 change shell 的意思

代码:
#Changing user database information for root.
Login: root
Password: $PKaaaBbbz2j5spB72KaXhmT5xzJt1
Uid [#]: 0
Gid [# or name]: 0
Change [month day year]:
Expire [month day year]:
Class:
Home directory: /root
Shell: /bin/tcsh <== 把 /bin/tcsh 改成 /usr/local/bin/bash
Full Name: Charlie &
Office Location:
Office Phone:
Home Phone:
Other information:

原创粉丝点击