Note that the compression commands and formats used are different and compression rates will depend on file content as well as the commands used. Note that the zip command requires that you supply the name of the compressed file to be created and does not compress the file "in place" (i.e., leaving you with only that file) as the other two commands do. To wrap up, the table below provides a list of the commands used to compress, uncompress and display the contents of compressed files without uncompressing them. The zcat command works the same way, but with gzip and zip files. To compress the file again, use the bzip2 command.
If you want to uncompress the file instead of just checking its content, use bunzip2. But that is aĪfter the bzcat display, the file remains compressed. Throughout the inanimate vastness of sidereal space. Haggerston and Hoxton, and, indeed, through all the vastness of London For example: $ bzcat The_War.bz2 | grep vastness To display only a portion of the text, pass the command output to another command like the head command shown above or to a grep command that includes the text you are searching for. And early in the twentieth century came the great Regarded this earth with envious eyes, and slowly and surely drew their Gulf of space, minds that are to our minds as ours are to those of theīeasts that perish, intellects vast and cool and unsympathetic, Themselves and ready to welcome a missionary enterprise. At most terrestrial menįancied there might be other men upon Mars, perhaps inferior to The mental habits of those departed days. Of human danger, or thought of them only to dismiss the idea of life No one gave a thought to the older worlds of space as sources It is possible that the infusoria under the microscope do With infinite complacency men went to and fro over this globeĪbout their little affairs, serene in their assurance of their empire Scrutinise the transient creatures that swarm and multiply in a drop of Studied, perhaps almost as narrowly as a man with a microscope might Themselves about their various concerns they were scrutinised and Greater than man’s and yet as mortal as his own that as men busied That this world was being watched keenly and closely by intelligences No one would have believed in the last years of the nineteenth century Wells' "The War of the Worlds" is displayed from a file compressed with bzip2. In the example below, the top 20 lines of H.