compress_entire_directory_to_tar_archive

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
compress_entire_directory_to_tar_archive [2017/07/13 07:44] walkeradmincompress_entire_directory_to_tar_archive [2017/07/13 07:48] (current) walkeradmin
Line 11: Line 11:
 ---- ----
  
-==== .tar Syntax ====+==== Create .tar File ====
 \\  \\ 
 The basic syntax for tar is quite simple, here is an example: The basic syntax for tar is quite simple, here is an example:
Line 30: Line 30:
     tar -pcvzf archive.tar /home/work     tar -pcvzf archive.tar /home/work
 \\  \\ 
 +
 +----
 +==== Decompress .tar File ====
 +\\ 
 +To decompress the <color #ed1c24>.tar</color> file, we use the same tar command, we must use the same switches if we wish to preserve the file/folder structure and the file/folder permissions (permissions are very important).
 +\\ 
 +\\ 
 +To decompress the archive.tar file we created earlier, use the following command:
 +\\ 
 +    tar -pcvzf archive.tar
 +\\ 
 +
  
  
compress_entire_directory_to_tar_archive.1499931881.txt.gz · Last modified: (external edit)