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

Answer by User5678015 for How can I create a zip archive of a whole directory via terminal without hidden files?

$
0
0

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: directory/src/ (stored 0%)adding: directory/src/Work.file (stored 0%)adding: directory/test.file (stored 0%)

Viewing all articles
Browse latest Browse all 9

Trending Articles



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