this 2all

Compressing and uncompressing tar


compress files:

tar -cvzf file.tar.gz inputfile1 inputfile2


Compress folder:

tar -czf /directory/directory/whatever.tar foldername


decompress contents(*if specified folder to):

tar -xvzf file.tar.gz




Here are a list of tar options, and their significance:

-c = create
-f = read to/from the named file (instead of the device /tape)
-t = list contents of .tar file
-r = append to a .tar file
-v = verbose (tells you everything its doing)
-x = extract contents of .tar file
-z = compress files