Tar Troubles
If you never remember how to create or extract from tar archives, add the follwing to your ~/.bash_aliases file:
# Straight tar archives
alias untar="tar -xf"
function mtar {
tar -cf `basename $1`.tar $1
}
# Gzipped tar achives
alias untargz="tar -xzf"
function targz {
tar -czf `basename $1`.tar.gz $1
}
If you have a file such as stuff.tar.gz, to ungzip and untar it, run:
untargz stuff.tar.gz
0 Comments:
Post a Comment
<< Home