There are three types of files need to untar. One is normal tar file, second is gzip compressed, the last one is bzip2 compressed. Here is the commend to untar these files as below.