Tar

To copy all of the files and subdirectories in the current working directory to the directory /target, use:

tar cf - * | ( cd /target; tar xfp -)

 
 

Create tar archive of file or folder

Tar -cvf /tmp/filename.tar /path/file

Include symbolic links

Tar -h -cvf /tmp/filename.tar /path/file

Advertisements