next up previous contents
Next: 7.5 注意書きを読み、Makefileを書き直す Up: 7. アプリケーションの導入とmake Previous: 7.3 anonymous(匿名) FTP

7.4 ファイルの解凍

ftpサービスのパブリックなディレクトリに置かれるアプリケーションの プログラムは、転送時間を節約するため、普通、圧縮をかけた 形式になっています。(gzip自体が圧縮と解凍のためのアプリケーションです。) 今回の .tar.Zは、tarでファイルを連結し、compress で圧縮をかけた形式ですので、それを「解凍」します。

lx$ uncompress gzip-1.2.4.tar.Z

で .tar 形式に「解凍」し、ls -l で見てみます。 さらに、
$ tar tvf .tar

で .tarファイルの内容を確かめ、
$ tar xvf .tar
で、「伸展」します。
lx$ tar tvf gzip-1.2.4.tar


lx$ tar xvf gzip-1.2.4.tar
lx$ ls gzip-1.2.4/     gzip-1.2.4.tar
lx$ ls gzip-1.2.4
COPYING        configure*     gzip.doc       revision.h     zdiff.in*
ChangeLog      configure.in   gzip.h         sample/        zforce.1
INSTALL        crypt.c        gzip.info      tailor.h       zforce.in*
Makefile.in    crypt.h        gzip.texi      texinfo.tex    zgrep.1
NEWS           deflate.c      inflate.c      trees.c        zgrep.in*
README         getopt.c       lzw.c          unlzh.c        zip.c
THANKS         getopt.h       lzw.h          unlzw.c        zmore.1
TODO           gpl.texinfo    match.S        unpack.c       zmore.in*
algorithm.doc  gzexe.1        msdos/         unzip.c        znew.1
amiga/         gzexe.in*      nt/            util.c         znew.in*
atari/         gzip.1         os2/           vms/
bits.c         gzip.c         primos/        zdiff.1
lx$

gzip-1.2.4.tar がほぐされて、gzip-1.2.4というディレクトリ がつくられ、そこにファイルが収められました。



Noriyo Kanayama