Compressed Files rar zip tar.gz

To extract .zip files the command would be as follows:
 user@server ~ $ unzip 
 To compress:
 user@server ~ $ zip -v file.ext 
 user@server ~ $ zip -v directory/* 

 To extract .bz2 files:
 user@server ~ $ bunzip2 archive.bz2 
 To compress:
 user@server ~ $ bzip2 file.ext 

 To extract .gz files:
 user@server ~ $ gzip -d archive.gz 
 To compress:
 user@server ~ $ gzip file.ext 

 To extract .tar files:
 user@server ~ $ tar -xvf archive.tar 
 To compress:
 user@server ~ $ tar -cvf archive.tar file1.ext file2.ext directory/ 

 To extract .tar.bz2 files:
 user@server ~ $ tar -xvjf archive.tar.bz2 
 To compress:
 user@server ~ $ tar -cvjf file.tar.bz2 file1.ext file2.ext directory/ 

 To extract .tar.gz files:
 user@server ~ $ tar -xvzf archive.tar.gz 
 To compress:
 user@server ~ $ tar -cvzf file.tar.gz file1.ext file2.ext directory/ 

Please note that these are the most basic forms of the commands, and have many options that are possible. HostGator does not provide support for using these commands, however to learn more about each command you can type  user@server ~ $ man <command>  Where <command> is the command you would like to learn more about, such as "tar" or "gzip."