Comments on: Dtrx – An Intelligent Archive Extraction (tar, zip, cpio, rpm, deb, rar) Tool for Linux https://www.tecmint.com/dtrx-an-intelligent-archive-extraction-tar-zip-cpio-rpm-deb-rar-tool-for-linux/ Tecmint - Linux Howtos, Tutorials, Guides, News, Tips and Tricks. Thu, 13 Jul 2023 22:12:04 +0000 hourly 1 By: Jonathan Leslie https://www.tecmint.com/dtrx-an-intelligent-archive-extraction-tar-zip-cpio-rpm-deb-rar-tool-for-linux/comment-page-1/#comment-713551 Wed, 25 Nov 2015 12:43:45 +0000 http://www.tecmint.com/?p=5283#comment-713551 hi everyone, my 7zip file has a password, can i still use dtxr ? is yes then how?

]]>
By: Heinrich https://www.tecmint.com/dtrx-an-intelligent-archive-extraction-tar-zip-cpio-rpm-deb-rar-tool-for-linux/comment-page-1/#comment-335142 Wed, 15 Oct 2014 21:40:04 +0000 http://www.tecmint.com/?p=5283#comment-335142 I use a function in my .bashrc which does the extraction job for me:

extract ()
{
if [ -f $1 ]; then
case $1 in
*.tar.bz2)
tar xvjf $1
;;
*.tar.gz)
tar xvzf $1
;;
*.bz2)
bunzip2 $1
;;
*.rar)
unrar x $1
;;
*.gz)
gunzip $1
;;
*.tar)
tar xvf $1
;;
*.tbz2)
tar xvjf $1
;;
*.tgz)
tar xvzf $1
;;
*.zip)
unzip $1
;;
*.Z)
uncompress $1
;;
*.7z)
7z x $1
;;
*.tar.xz)
tar -xJf $1
;;
*)
echo “‘$1’ cannot be extracted via >extract<"
;;
esac;
else
echo "'$1' is not a valid file";
fi
}

]]>
By: Jan https://www.tecmint.com/dtrx-an-intelligent-archive-extraction-tar-zip-cpio-rpm-deb-rar-tool-for-linux/comment-page-1/#comment-331070 Sun, 12 Oct 2014 20:19:29 +0000 http://www.tecmint.com/?p=5283#comment-331070 The tar command has autodetection of compression. No need for -zxf or -xjf etc, just use -xf.

]]>
By: jabson https://www.tecmint.com/dtrx-an-intelligent-archive-extraction-tar-zip-cpio-rpm-deb-rar-tool-for-linux/comment-page-1/#comment-330930 Sun, 12 Oct 2014 17:43:28 +0000 http://www.tecmint.com/?p=5283#comment-330930 It can also be used:
tar xf file
and tar will automatically recognize what compression method was used and extract the file.

]]>
By: Debasish https://www.tecmint.com/dtrx-an-intelligent-archive-extraction-tar-zip-cpio-rpm-deb-rar-tool-for-linux/comment-page-1/#comment-120629 Sat, 08 Feb 2014 17:44:14 +0000 http://www.tecmint.com/?p=5283#comment-120629 Every thing is well except .rar extraction is not working for my case …………………….

]]>