Skip to content

Comment on Show HN: Extract it – Because nobody can remember tar commands

Comments

Or, add this to your .bashrc (ensure that it's sourced.. some distributions don't do this automatically):

     alias untar="tar xvf"

Then, open a new terminal window, and from then on it's just:
     untar filename.tar.gz

Don't you need the z flag as well since filename is gzipped?

Not anymore! GNU tar now figures it out automagically :)

BSD tar also has this functionality. "tar -xf <filename>" works for archives compressed with gzip, bzip2, or xz.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.