Linux command line cheats

Compress files in the current directory and subdirectories, specifying a certain format type

 

zip zipName.zip * -i "*.type" -r

zipName.zip compressed package name

* current folder path

-i specifies the file

"*.type" a file of a certain type, eg "*.html", * is a wildcard, indicating all names

-r iterate through all subdirectories

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326504466&siteId=291194637