Unzipping a gzip file with gunzip

To access gzipped files, you'll need to unzip them. You do so using gunzip, as Code Listing 13.11 shows.

To unzip a gzip file with gunzip:

1.
ls *.gz
At the shell prompt, verify the name of the gzipped file with ls *.gz (Code Listing 13.11).
2.
gunzip zipadeedoodah.tar
Enter gunzip and the name of the file to unzip. gunzip will uncompress the file(s) and return you to the shell prompt.

Tip

When you're unzipping files with gunzip, you're not required to enter the file extension. gunzip zipadeedoodah would work just as well as gunzip zipadeedoo dah.tar.

Tip

Some systems don't recognize the gunzip command, so you might need to use gzip -d to uncompress the files.

Tip

If you have a compressed file that you know ...

Get Unix: Visual QuickStart Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.