User Tools

Site Tools


tar

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
tar [2015/10/19 06:34] luke7858tar [2024/05/23 07:26] (current) – external edit 127.0.0.1
Line 11: Line 11:
 </sxh> </sxh>
 \\ \\
-=== Test the contents of an archive ===+Compress with date in filename
 <sxh bash> <sxh bash>
-tar tvf filename.tar.gz+tar -cvzf filename.$(date +"%Y-%m-%d").tar.gz directoryORfileToCompress 
 </sxh> </sxh>
 +\\
 +=== Test the contents of an archive ===
 +The following command can be used to view the contents of an archive. You can then decide if you wish to strip a component when uncompressing 
 <sxh bash> <sxh bash>
--t = table of contents +tar tvf filename.tar.gz
--v = verbose+
 </sxh> </sxh>
-=== unzip ===+\\ 
 +=== Extract ===
  
 <sxh bash> <sxh bash>
-tar -zxvf+tar -xzvf filename.tar.gz
 </sxh> </sxh>
tar.1445236460.txt.gz · Last modified: 2024/05/23 07:26 (external edit)

Except where otherwise noted, content on this wiki is licensed under the following license: Public Domain
Public Domain Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki