TAR command


extract a tar file to current dir
tar -xvwf myfile.tar


create a tar file to current dir
tar -cvwf file.tar myfile.txt

tar -zxvf yourfile.tar to extract the file to the current directory.

tar -C /myfolder -zxvf yourfile.tar to extract to /myfolder directory.


Tag Cloud