Decompress tar/gzip files easily
October 31st, 2006 | Published in Code, Technology
Do you use a Linux or Mac system and need to decompress .tgz files through the command line? I can never remember the correct command (which, by the way, is “tar -zxvf”). So I created this alias. Add it to your ~/.bash_profile :
# Decompress .tar.gz or .tgz files
# Usage: untar [filename]
alias untar='tar -zxvf'
You can then easily decompress .tgz files through “untar [filename]”. Be sure to restart bash in order for it to take effect.