Zip? Seriously?
Zip? Seriously?
git clone https://github.com/Kinto/kinto.git
But what you're complaining about has been an option on Github for years.Nice xkcd :)
atool -x archive.{zip,jar,rar,cab,deb,rpm,tar,tar.{gz,Z,bz2,xz}}
(list of supported formats is not complete)With a simple alias, it isn't even necessary to remember the -x
alias xx="atool -x"
This also protects you from badly made archives that explode hundreds of files into the current directory. All decompression is done in a temporary subdir, which is removed if there was only one file/dir at the top level.For xkcd, see atool's --explain or --simulate options that show you the generated tar/etc commands.
$ wajig list-files atool | grep bin/
/usr/bin/atool
/usr/bin/arepack
/usr/bin/aunpack
/usr/bin/apack
/usr/bin/als
/usr/bin/acat
/usr/bin/adiff $ ls
foo.tar.gz
$ tar -xf foo.tar.gz
$ ls
foo.tar.gz
my_file.mdtar xf <file>
(as in eXtract File)
The xkcd answer could be: tar t
I always see people using tar -zxvf <file>, I'm guessing they tried that and it worked, and they never needed to look in the manpage. I feel that
To point out the obvious, Zip compresses files individually and then bundles them. A .tar.{Z,gz,bz2,xz,...} files bundles the files and then compresses them. The latter is better for entropy reduction, the former is better for random access. It all depends on your objectives.