Step 1/3: Pack and compress

tar packs many files into one archive. -c creates, -z compresses with gzip, -f is followed by the archive name, then the files or directories to pack. -v lists every file.

$ tar -czf backup.tar.gz projects
Fundamentalstar
Pack and compress a directory
Pack the todo directory into a gzip-compressed archive named todo.tar.gz.
lnNext lesson:gzip