Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
jamiesonbecker
· 11y ago · 0 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
Comments
[–]
archinal
11y ago
Don't you need the z flag as well since filename is gzipped?
[–]
jamiesonbecker
OP
11y ago
Not anymore! GNU tar now figures it out automagically :)
[–]
oofabz
11y ago
BSD tar also has this functionality. "tar -xf <filename>" works for archives compressed with gzip, bzip2, or xz.