Unzip archive into web root

Extract a downloaded .zip into /var/www/html (or anywhere else).

Extracts a zip archive directly into a web-accessible directory. The -o flag overwrites existing files without prompting, useful in automated deployment scripts.

When you need this: When deploying a zipped release artifact to a web server.

Variables

Command


        
12 views 5 copies
Log in to rate
Log in to save

Free account — save snippets into your own collections.