I’m a developer. That makes me lazy. Here is the code to recursively tar and untar files (with and without compression):
tar -cvf filename.tar target1 target2 #without compression tar -cvzf filename.tar.gz target1 target2 #with compression (Just add z) |
To untar, simply replace c with x:
tar -xvf filename.tar path #without compression tar -xvzf filename.tar.gz path #with compression (Just add z) |