Linux zip operation command

  
                  

1.zip zip -r myfile.zip ./* Compress all files and folders in the current directory into myfile.zip file, and -r indicates all files in the recursive compression subdirectory.


2.unzip unzip -o -d /home/sunny myfile.zip Extract the myfile.zip file to /home/sunny/-o: overwrite the file without prompting; -d:-d /home/sunny Specifies to extract the files to the /home/sunny directory.


3. Other zip -d myfile.zip smart.txt Delete the smart.txt file in the compressed file zip -m myfile.zip ./rpm_info.txt to the compressed file myfile.zip Add the rpm_info.txt file.

Copyright © Windows knowledge All Rights Reserved