Re:Interesting commands for the Linux shell
by kaushalmodi on Thursday September 14, 2017 @07:34AM
(#15246875)
And the same for compression..
tar caf foo.tar.xz foo/
The extension of the file after the `f` switch tells tar what compression to use.c - compress
a - auto
Re:Interesting commands for the Linux shell
by otherflavors on Saturday September 16, 2017 @03:41PM
(#15266324)
by tar you mean gnu tar
> tar -ztvf file.tgz
> tar -zxvf file.tgz filename
Tar no longer requires the modifier for the compression when extracting an archive. So no matter if it's a .tar.gz, .tar.Z, .tar.bz2, etc you can just use "tar xvf"