Comment by mkl
18 hours ago
> tar xzf foobar.tgz
You don't need the z, as xf will detect which compression was used, if any.
Creating is no harder, just use c for create instead, and specify z for gzip compression:
tar czf archive.tar.gz [filename(s)]
Same with listing contents, with t for tell:
tar tf archive.tar.gz
No comments yet
Contribute on Hacker News ↗