Quantcast
Channel: How can I create a zip archive of a whole directory via terminal without hidden files? - Ask Ubuntu
Browsing all 9 articles
Browse latest View live

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 Article


Answer 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 Article


Answer 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 Article

Answer 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 Article

Answer 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 Article


Answer 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 Article

Answer 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 Article

Answer 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 Article


How 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

Browsing all 9 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>