第184页 | Learning the Bash Shell | 阅读 ‧ 电子书库

同步阅读进度,多语言翻译,过滤屏幕蓝光,评论分享,更多完整功能,更好读书体验,试试 阅读 ‧ 电子书库

Unpacking the Archive

Having obtained the archive file by one of the above methods, you need to unpack it and install it on your system. Unpacking can be done anywhere—we'll assume you're unpacking it in your home directory. Installing it on the system requires you to have root privileges. If you aren't a system administrator with root access, you can still compile and use bash; you just can't install it as a system-wide utility. The first thing to do is uncompress the archive file by typing gunzip bash-3.0.tar.gz.[1]Then you need to "untar" the archive by typing tar -xf bash-3.0.tar. The -xf means "extract the archived material from the specified file." This will create a directory called bash-3.0 in your home directory.

The archive contains all of the source code needed to compile bash and a large amount of documentation and examples. We'll look at these things and how you go about making a bash executable in the rest of this chapter.

 

[1] gunzip is the GNU decompression utility. gunzip is popular but relatively new and some systems don't have it. If your system doesn't, you can obtain it by the same methods as you obtained bash. gunzip is available from the FSF. gzip -d does the same thing as gunzip.

请支持我们,让我们可以支付服务器费用。
使用微信支付打赏


上一页 · 目录下一页


下载 · 书页 · 阅读 ‧ 电子书库