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
tar [2017/01/09 10:16] – luke7858tar [2017/01/09 10:18] (current) – luke7858
Line 11: Line 11:
 </sxh> </sxh>
 \\ \\
 +Compress with date in filename
 <sxh bash> <sxh bash>
 tar -cvzf filename.$(date +"%Y-%m-%d").tar.gz directoryORfileToCompress  tar -cvzf filename.$(date +"%Y-%m-%d").tar.gz directoryORfileToCompress 
 </sxh> </sxh>
 +\\
 === Test the contents of an archive === === 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>
 tar tvf filename.tar.gz tar tvf filename.tar.gz
-</sxh> 
-<sxh bash> 
 </sxh> </sxh>
 \\ \\
Line 24: Line 25:
  
 <sxh bash> <sxh bash>
-tar -xzvf+tar -xzvf filename.tar.gz
 </sxh> </sxh>
tar.1483956998.txt.gz · Last modified: (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