Chris,
To put everything in one file that is compressed, you first have to tar it
(put all the files into one BIG file)
tar cvf /tmp/howto.tar /mnt/cdrom/doc/HOWTO/*
man tar
then compress it
(with gzip; man gzip)
gzip /tmp/howto.tar
(with compress; man compress)
compress /tmp/howto.tar
then the file name will be
(with gzip)
/tmp/howto.tar.gz
(with compress)
/tmp/howto.tar.Z
`tar` puts everyting in one big file without compressing it, then you use an
external compression program on this 'one big file', `gzip` is the most
common, it is freely avaiable (under GPL) and is avaiable on all most all
systems (including Win32!). `compress` does about the same thing (don't
know the license), and it is avaiable on a lot of systems, but people just
don't use it that much.
There is also `bzip`, which is supose to be a really good compression
program for Unix, haven't seen it around to much, a lot less common than
even compress, don't know the license for it either.
There is also `zip` and `unzip` which can create and exact files to/from the
common `pkzip` or `winzip` program avaiable for DOS/Win32 systems, but most
people don't ussually use this unless the get or know they are going to be
getting/sending a file to/from someone on a Win32 system. If the file is
going to stay or be exchanged with Unix systems (especailly Linux systems,
Linux loves gzip) stay with tar and gzip/gunzip.
man tar
man gzip
man gunzip
man compress
man uncompress
man zip
man unzip
Hope that helps,
Jack
----- Original Message -----
From: Chris Wrobel <[EMAIL PROTECTED]>
To: mail list <[EMAIL PROTECTED]>
Sent: Monday, March 27, 2000 11:51 AM
Subject: How to compress a whole directory??
> I'm trying to compress a whole dir /mnt/cdrom/doc/HOWTO
> how do I do zip up a whole directory including all directories within
> it...
> Thanks...
>
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
> the body of a message to [EMAIL PROTECTED]
> Please read the FAQ at http://www.linux-learn.org/faqs
>
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.linux-learn.org/faqs