asked 222k views
5 votes
Which command is used to view compressed text file contents?

1) cat
2) type
3) zcat
4) Cannot be determined

1 Answer

2 votes

Final answer:

The correct command to view compressed text file contents is 'zcat'. 'Cat' is for regular text files, and 'type' is used in Windows, but 'zcat' is designed for gzipped files.

Step-by-step explanation:

The command used to view compressed text file contents is zcat. While cat is used for concatenating and displaying regular text files, and type is a command in Windows operating systems for displaying text files, zcat is specifically designed for displaying the contents of gzipped files. It's important to use the correct command in order to access the file's contents properly.

answered
User Larry Williamson
by
8.4k points