In Linux / Unix you get alot of compressed files.. and I’m too old to remember how to compress or extract sometimes.. but thats what Google is for right??
tar -cvf foo.tar /foldertoarchive
tar -xf foo.tar
It’s worth mentioning that if you already have a tar file, you can use gzip to make it a tar.gz with:
But you can do both with:
tar -cvzf foo.tar.gz /foldertoarchive
tar -zxvf foo.tar.gz
tar.bz2 has a real good compression ratio, but takes longer to create, which for me is fine tbh.
tar -cvjf foo.tar.bz2 /foldertoarchive
tar -jxvf foo.tar.bz2
Categorised as: Linux