Zipping on linux
daniel Thu, 03/26/2009 - 1:27pm
Usually I use tar.gz files on linux. I create them with
tar -cvzf filenameToCreate.tar.gz dirToZip1 dirToZip2 fileToZip1...
Switch for excluding subdirectories/files today:
tar -cvzf filenameToCreate.tar.gz dirToZip1 dirToZip2 fileToZip1... -exclude pathToFileX
Switch to exclude version control system data - cvs, subversion etc
tar -cvzf filenameToCreate.tar.gz --exclude-vcs dirToZip1 dirToZip2
unzip with:
tar -xvzf filenameToUnzip
which will unzip the file in the current directory
- Log in to post comments
Comments
Additional metadata for search
Submitted by daniel on Thu, 09/29/2011 - 3:23pmRemove subversion ( SVN ) directories from a project