Using "tar" And "gzip" To Create and Extract Files From Archives
Please use tar/gz or zip (you can use Winzip) to create a single file to
submit for your homework.
- Creating a file "example.tar.gz":
- "cd < your directory >"
- "tar cvf example.tar *"
- "gzip example.tar"
- Submit the file "example.tar.gz"
- If you do not want to include all the files in your homework directory (which is what "tar cvf example.tar *" means),
instead list the specific files you want to include (e.g., "tar cvf example.tar prog1.c prog1.h README output.ppm").
- Extracting files from the file "example.tar.gz":
- "gunzip example.tar.gz"
- "tar xvf example.tar"
Last Modified: Tuesday, September 7, 2004
Chris Wyman (cwyman@cs.uiowa.edu)