-
-
Notifications
You must be signed in to change notification settings - Fork 28
1.8.1 Zips
Tomato6966 edited this page Dec 27, 2022
·
1 revision
apt-get install zip unzip
To zip a folder do this:
zip -r Output_MyFolder.zip ./MyFolder/
you can even zip multiple files / folders together:
zip -r Output_MyFolder.zip ./MyFolder/ /home/var/www ./file1.txt ./file2.txt ./file3.txt
Add the -e
flag:
zip -er Output_MyFolder.zip ./MyFolder/
Zip all files of a specific type:
zip -0 archivename *.mp3
The above command ‘-0’ shows the compression level. When you use compression level ‘0’, the file will be stored in the archive without any compression. The compressions level varies from ‘-0 to -9’. The ‘-6’ is the default compression level, and when you use ‘-9’ it will force the zip command to adopt the optimized compression for all files.
unzip Archive.zip
-
1 All needed Console Commands
- 1.1 Directory Navigation
- 1.2 System Information
- 1.3 Hardware Information
- 1.4 File and Directory Cmds
- 1.5 Process Management
- 1.6 File Permissions
- 1.7 Networking
- 1.8 Archives (Tar Files)
- 1.9 Search
- 1.10 File Transfers
- 1.11 Disk Usage
- 1.12 User Information and Management
- 1.13 Speedtest
- 1.14 Clear Cache
- 1.15 Disable Sleeping Processes (Suspending)
- 1.16 Remove Welcome Message