Date: Mon, 24 Sep 2001 20:36:38 -0600 (CST) From: Ryan Thompson <ryan@sasknow.com> To: Andre Cameron <camcom@optonline.net> Cc: free bsd <freebsd-questions@FreeBSD.ORG> Subject: Re: tar question Message-ID: <Pine.BSF.4.21.0109242033050.61002-100000@ren.sasknow.com> In-Reply-To: <03fc01c1455d$9e11db50$4dd92d18@andre2pj3ipvtr>
next in thread | previous in thread | raw e-mail | index | archive | help
Andre Cameron wrote to free bsd: > If I wanted to tar a whole directory and it subdirectories/files for > download what is the command/switches I would use? > If it's for download, chances are you want to make a compressed tarball (.tar.gz). This is best done with tar cvzf directory.tar.gz directory Briefly, the options in this context: c - create new archive v - verbose output (lists filenames as you go--optional) z - pass tar output through gzip(1) (compress) f - Send output to the file specified (directory.tar.gz) directory.tar.gz -- Output file directory -- Input directory Hope this helps, - Ryan -- Ryan Thompson <ryan@sasknow.com> Network Administrator, Accounts SaskNow Technologies - http://www.sasknow.com #106-380 3120 8th St E - Saskatoon, SK - S7H 0W2 Tel: 306-664-3600 Fax: 306-664-1161 Saskatoon Toll-Free: 877-727-5669 (877-SASKNOW) North America To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0109242033050.61002-100000>