snipt

Ctrl+h for KB shortcuts

Bash

Create multiple directories in unix

mkdir -p your_directory/{public,private,log,cgi-bin,backup}
https://snipt.net/embed/b1172ff087cf2e3c223c25d3744fb201/
/raw/b1172ff087cf2e3c223c25d3744fb201/
b1172ff087cf2e3c223c25d3744fb201
bash
Bash
1
2019-06-15T03:44:14
True
False
False
/api/public/snipt/48301/
create-multiple-directories-in-unix-1
<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>mkdir -p your_directory/<span class="o">{</span>public,private,log,cgi-bin,backup<span class="o">}</span> </span></pre></div> </td></tr></table>
bash, linux, mkdir, unix