4 ms·
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
by jamiesonbecker 11y ago
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
- archinal 11y agoDon't you need the z flag as well since filename is gzipped?
- jamiesonbecker 11y agoNot anymore! GNU tar now figures it out automagically :)
- oofabz 11y agoBSD tar also has this functionality. "tar -xf <filename>" works for archives compressed with gzip, bzip2, or xz.