User Tools

Site Tools



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

Link to this comparison view

tips:linux:findtar [2012/06/02 15:35] (current)
erik created
Line 1: Line 1:
 +====== How to find and tar files? ======
 +Use the following to find/tar files (not binaries):
 +   find /​full/​path/​to/​search -type f | xargs tar cfvz archive.tgz
 +If you don't want to find/tar files in sub-directories,​ use:
 +   find /​full/​path/​to/​search -type f -maxdepth 1 | xargs tar cfvz archive.tgz
 +If you're looking for specific file names, use:
 +   find /​full/​path/​to/​search -name "<​pattern>"​ | xargs tar cfvz archive.tgz
tips/linux/findtar.txt · Last modified: 2012/06/02 15:35 by erik