Differences

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


tar [2017/07/07 01:29] (current) – created - external edit 127.0.0.1
Line 1: Line 1:
 +====== tar ======
  
 +** Change directory **
 +
 +For example, create a tarball of the contents of ''/var/www/html/foobar'' and have the tarball unpack into the ''foobar'' directory:
 +
 +<code>
 +tar -C /var/www/html/ -jcf foobar.tar.bz2 foobar/
 +</code>
 +
 +** List files **
 +
 +Usually, ''less'' will work. Otherwise:
 +
 +<code>
 +tar -tf files.tar.gz
 +</code>

Navigation
QR Code
QR Code tar (generated for current page)