snipt

Ctrl+h for KB shortcuts

Bash

zip up a directory on linux

zip -r archive_name.zip directory_to_compress
https://snipt.net/embed/492a3ef716b400919af5177a3b08880b/
/raw/492a3ef716b400919af5177a3b08880b/
492a3ef716b400919af5177a3b08880b
bash
Bash
2
2019-06-17T22:51:53
True
False
False
/api/public/snipt/37663/
zip-up-a-directory-on-linux
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>zip -r archive_name.zip directory_to_compress </span></pre></div> </td></tr></table>
bash, linux, terminal, zip