How to cat a gzipped logfile with gunzip properly.

The gunzip utility can uncompress logfiles that are gzipped in archives, but this is not needed. To read a logfile that is gzipped, you can also use this command to print the contents to a terminal and not bother uncompressing the file. This allows reading log files in /var/log without…

Read More

How to unpack a rar file on Linux with the command line interface.

Firstly, install unrar on Linux with this command. sudo apt-get install unrarsudo apt-get install unrar Then unpack a rar file with this simple one-liner. unrar x myfile.rarunrar x myfile.rar Another way to compress files on Linux is to use the supplied utilities like tar and gzip. The tar utility packs…

Read More