Linux: Extract archive files in various formats








File ExtensionRequired UtilityCommand to extractCommand to install the required utility
.tartartar -xvf file.tarsudo apt-get install tar
.tar.gz
.tgz
tar gunziptar -zxvf file.tar.gz
tar -zxvf file.tgz
sudo apt-get install tar gzip
.tar.bz2
.tbz2
tar bunzip2tar -jxvf file.tar.bz2
tar -jxvf file.tbz2
sudo apt-get install tar bzip2
.tar.xztar unxztar -Jxvf file.tar.xzsudo apt-get install tar xz-utils
.rarunrarunrar -x file.rarsudo apt-get install unrar
.zipunzipunzip file.zipsudo apt-get install unzip
.gzgunzipgunzip file.gzsudo apt-get install gzip
.bz2bunzip2bunzip2 file.bz2sudo apt-get install bzip2
.Zuncompressuncompress file.Zsudo apt-get install gzip
.7z7z7z -x file.7zsudo apt-get install p7zip



No comments:

Post a Comment