Tuesday, June 12, 2012

zip command in linux

function: compress and archive files. zip is a cross-platform format.

zip output.zip *     ## include all file and directory in current directory
zip output.zip *.* ## include all file with a dot in middle in current diretory.
zip -r output.zip  test  ## recurve to test directory
zip -R output.zip *.txt     ## include current directory
zip -R output.zip  -x \*.o ## exclude .o files


reference:
man zip

No comments:

Post a Comment