Answer by User5678015 for How can I create a zip archive of a whole directory...
Without hidden folders and files in directory:zip -r zipfile.zip directory/*directory:|── .git│ ├── src│ └── Work.file├── .test│ └── .file└── test.file$ zip -r zipfile.zip directory/*adding:...
View ArticleAnswer by M.A.K. Ripon for How can I create a zip archive of a whole...
First of all if you don't have installed zip install it first as follows:sudo apt-get install zipThen for simply creating a zip file:zip -r compressed_filename.zip foldernameIf you want to exclude...
View ArticleAnswer by Kerem for How can I create a zip archive of a whole directory via...
While zipping dirs excluding some file extension:$ cd /path/to/dir$ zip -r dir.zip . -x "*.log" -x "*.cache"
View ArticleAnswer by Tigrouzen for How can I create a zip archive of a whole directory...
Example for excluding all folders begining with . :tar cvpzf folder.tgz folder/ --exclude '.*'Better compress but slower :tar cvpjf folder.tar.bz2 folder/ --exclude '.*'
View ArticleAnswer by Rômulo Neves for How can I create a zip archive of a whole...
The correct method would be:zip -r zipfile.zip directory -x directory/.*
View ArticleAnswer by cosimnot for How can I create a zip archive of a whole directory...
This one includes all "." directories, subdirectories, and "." files or directories within directories...Essentially the first answer but includes top level "." files. find /full_path -path '*.*/.*'...
View ArticleAnswer by arrange for How can I create a zip archive of a whole directory via...
This also excludes hidden files in unhidden directories:find /full_path -path '*/.*' -prune -o -type f -print | zip ~/file.zip -@
View ArticleAnswer by Rinzwind for How can I create a zip archive of a whole directory...
Add " to the .* (otherwise, your shell expands .* to the dot files in the current directory), and also exclude hidden files in subdirectories:zip -r zipfile.zip . -x ".*" -x "*/.*"This will result in...
View ArticleHow can I create a zip archive of a whole directory via terminal without...
I have a project with lots of hidden folders / files in it. I want to create a zip-archive of it, but in the archive shouldn't be any hidden folders / files. If files in a hidden folder are not hidden,...
View Article