Playback starts YouTube’s embedded player (privacy-enhanced mode).
How to zip and unzip files in Linux
ChannelLinuxHowToDescription from the creator
----ZIP----
1) install zip and unzip
#sudo apt install zip unzip
2) compressing
#zip myfiles.zip filespath
or
#zip myfiles.zip file1 file2 file3
3) To list files on zip
#unzip -l myfiles.zip
or
#less myfiles.zip
4) compress recursively (use -r option)
#zip -r myfiles.zip filespath
5) secure zip with password (use -e option)
#zip -e myfiles.zip filespath
//recursively and with password
#zip -re myfiles.zip filespath
6) include only specified files (use -i option)
#zip myfiles.zip filespath -i file1 file2 file3
//with wildcard expressions (pattern)
#zip myfiles.zip filespath -i \*.txt
will only compress all the files that end with ".txt"
//recursively
#zip -r myfiles.zip filespath -i \*.txt
7) exclude files (use -x option)
#zip myfiles.zip filespath -x file1 file2 file3
8) delete files (use -d option)
#zip myfiles.zip filespath -d file1 file2 file3
#zip myfiles.zip -d "New Folder/*"
delete the folder with all its content
9) add files
just compess as normal
#zip myfiles.zip file1 file2 file3
it will append files to myfiles.zip
----UNZIP----
#unzip myfiles.zip
to extract zip file in the current directory
#unzip myfiles.zip file1 file2
to extract just file1 and file2
#unzip myfiles.zip -x file1 file2
-x option to exclude files from extraction
#unzip myfiles -d directoryName
-d option to specify extraction directory
1) install zip and unzip
#sudo apt install zip unzip
2) compressing
#zip myfiles.zip filespath
or
#zip myfiles.zip file1 file2 file3
3) To list files on zip
#unzip -l myfiles.zip
or
#less myfiles.zip
4) compress recursively (use -r option)
#zip -r myfiles.zip filespath
5) secure zip with password (use -e option)
#zip -e myfiles.zip filespath
//recursively and with password
#zip -re myfiles.zip filespath
6) include only specified files (use -i option)
#zip myfiles.zip filespath -i file1 file2 file3
//with wildcard expressions (pattern)
#zip myfiles.zip filespath -i \*.txt
will only compress all the files that end with ".txt"
//recursively
#zip -r myfiles.zip filespath -i \*.txt
7) exclude files (use -x option)
#zip myfiles.zip filespath -x file1 file2 file3
8) delete files (use -d option)
#zip myfiles.zip filespath -d file1 file2 file3
#zip myfiles.zip -d "New Folder/*"
delete the folder with all its content
9) add files
just compess as normal
#zip myfiles.zip file1 file2 file3
it will append files to myfiles.zip
----UNZIP----
#unzip myfiles.zip
to extract zip file in the current directory
#unzip myfiles.zip file1 file2
to extract just file1 and file2
#unzip myfiles.zip -x file1 file2
-x option to exclude files from extraction
#unzip myfiles -d directoryName
-d option to specify extraction directory
About this tutorial
LinuxHowTo published this 23:47 video tutorial on November 8, 2019. It has been watched 963 times on YouTube.
- Channel
- LinuxHowTo
- Category
- Education
- Duration
- 23:47
- Published
- November 8, 2019
- Views
- 963
- Likes
- 3
Share
This tutorial in other languages
- FRComment les fichiers zip et décompressez sous Linux
- ESCómo comprimir y descomprimir archivos en Linux
- PTComo arquivos zip e descompacte em Linux
- ITCome i file zip e decomprimere in Linux
- DEWie man zip und unzip Dateien in Linux
- NLHoe te zip en unzip bestanden in Linux
- RUКак молния и распаковать файлы в Linux
- PLJak zip i rozpakować plików w Linuksie
- JAどのようにLinuxでのzipと解凍ファイルへ
- ARكيفية الرمز البريدي وبفك الملفات في لينكس
- HIकैसे लिनक्स में ज़िप और unzip फ़ाइलों के लिए
- IDCara zip dan unzip file di Linux