$ zip -r some_folder.zip some_folder 4 – Password Protect Zip Files Using the zip command with the -r flag, we can create an archive recursively, thereby compressing subdirectories as well. txt files: $ zip some_folder_txt.zip some_folder_txt/*.txtĮxample Output adding: some_folder/this_is_a_file.txt (deflated 0%)Īdding: some_folder/this_is_another_file.txt (stored 0%) 3 – Zip Files Recursively Using wildcards, we can zip files that files that have a specific extension. $ zip some_folder.zip some_folder/*Įxample Output adding: some_folder/a_nf (stored 0%)Īdding: some_folder/Anaconda3-2018.12-Linux-x86_64.sh (deflated 0%)Īdding: some_folder/GettyImages-845976972-5b1977813de42300372a76c8.jpg (deflated 6%)Īdding: some_folder/google-chrome-stable_current_b (deflated 0%)Īdding: some_folder/mr_file (deflated 0%)Īdding: some_folder/some_script.py (deflated 0%)Īdding: some_folder/this_is_a_file.txt (deflated 0%)Īdding: some_folder/this_is_another_file.txt (deflated 0%) 2 – Zip Files by Extension using Wildcard It does not create an archive recursively, however. zip archive of all the files in a directory. Get started now 1 – Zip Files in Directory
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |