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 revisionNext revisionBoth sides next revision | ||
compress_entire_directory_to_tar_archive [2017/07/13 08:46] – walkeradmin | compress_entire_directory_to_tar_archive [2017/07/13 08:48] – [Decompress .tar File] walkeradmin | ||
---|---|---|---|
Line 29: | Line 29: | ||
\\ | \\ | ||
tar -pcvzf archive.tar /home/work | tar -pcvzf archive.tar /home/work | ||
- | \\ | ||
\\ | \\ | ||
---- | ---- | ||
==== Decompress .tar File ==== | ==== Decompress .tar File ==== | ||
+ | \\ | ||
+ | To decompress the .tar 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.txt · Last modified: 2023/03/09 22:35 by 127.0.0.1