Comment on Show HN: Extract it – Because nobody can remember tar commandsComments−jamiesonbecker11yOr, 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−archinal11yDon't you need the z flag as well since filename is gzipped?−jamiesonbecker11yNot anymore! GNU tar now figures it out automagically :)−oofabz11yBSD tar also has this functionality. "tar -xf <filename>" works for archives compressed with gzip, bzip2, or xz.
Comments
Or, add this to your .bashrc (ensure that it's sourced.. some distributions don't do this automatically):
Then, open a new terminal window, and from then on it's just: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.