compress_entire_directory_to_tar_archive
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| compress_entire_directory_to_tar_archive [2017/07/13 07:43] – walkeradmin | compress_entire_directory_to_tar_archive [2017/07/13 07:48] (current) – walkeradmin | ||
|---|---|---|---|
| Line 8: | Line 8: | ||
| \\ | \\ | ||
| \\ | \\ | ||
| - | ==== .tar Syntax | + | |
| + | ---- | ||
| + | |||
| + | ==== Create | ||
| \\ | \\ | ||
| 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 23: | Line 26: | ||
| </ | </ | ||
| \\ | \\ | ||
| + | To create a <color # | ||
| + | \\ | ||
| + | tar -pcvzf archive.tar /home/work | ||
| + | \\ | ||
| + | |||
| + | ---- | ||
| + | ==== Decompress .tar File ==== | ||
| + | \\ | ||
| + | To decompress the <color # | ||
| + | \\ | ||
| + | \\ | ||
| + | To decompress the archive.tar file we created earlier, use the following command: | ||
| + | \\ | ||
| + | tar -pcvzf archive.tar | ||
| + | \\ | ||
| + | |||
| + | |||
compress_entire_directory_to_tar_archive.1499931780.txt.gz · Last modified: (external edit)
