Changing the shell (bash)
2009-05-13 13:17:15来源:未知 阅读 ()
see also
Shells
Why a new shell?
The shell is that part of the system which accepts your command and interprets what you have said. It launches other commands. The shell you get by default is not the only shell around. I chose the bash shell, mainly because it has a command history. If you're ever typed a long command, only to have it rejected because you mistyped it, then a shell history is what you want. It allows you to recall previous commands, modify them, and resubmit them to the shell.
It was during the
CD-ROM saga
that Jay advised me to make "installing a new shell" a high priority. Well, that was over two weeks ago, and I'm only just doing it now.
You might also want to see
UNIX shell differences and how to change your shell (Monthly Posting)
.
Finding the shell
My first step in replacing the shell was finding out what CD the ports are on. For the record, it's the 4th CD. I found this out by using my NT box and scrolling through the directories. Then I transferred the CD over into my FreeBSD box. The following commands allowed the CD to be mounted:
mount -t cd9660 /dev/wcdoc /cdrom
This command allows you to view the contents of the CD-ROM by using the /cdrom directory.
Building the shell
After mounting the CD, I searched the
FreeBSD handbook
to find out how to install a port. I was
installing from CD-ROM
, but you can also
install from the Internet
. I just followed the instructions and everything went exactly as expected. Here are the commands I used, but you really should follow the instructions found on the FreeBSD webpages found above.
Please note, that the following instructions contain extra steps. See
Building a port - background info on make
for more concise information.
# mkdir /usr/ports
# cd /usr/ports
# ln -s /cdrom/ports/distfiles distfiles
# cd /usr/ports
# mkdir shells
# cp -R /cdrom/ports/shells/bash shells
# cd shells/bash
标签:
版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com
特别注意:本站所有转载文章言论不代表本站观点,本站所提供的摄影照片,插画,设计作品,如需使用,请与原作者联系,版权归原作者所有
- Freebsd oracle 10g 2009-05-13
- KDE/FreeBSD 测试 QT-4.5.1. 2009-05-13
- OpenBSD 4.5下安装Gnome 2.24成功! 2009-05-13
- OpenBSD 4.5 2009-05-13
- DragonFly BSD 2.2.1发布 2009-05-13
IDC资讯: 主机资讯 注册资讯 托管资讯 vps资讯 网站建设
网站运营: 建站经验 策划盈利 搜索优化 网站推广 免费资源
网络编程: Asp.Net编程 Asp编程 Php编程 Xml编程 Access Mssql Mysql 其它
服务器技术: Web服务器 Ftp服务器 Mail服务器 Dns服务器 安全防护
软件技巧: 其它软件 Word Excel Powerpoint Ghost Vista QQ空间 QQ FlashGet 迅雷
网页制作: FrontPages Dreamweaver Javascript css photoshop fireworks Flash