snipt

Ctrl+h for KB shortcuts

Bash

Simple bash for loop

for i in `ls`; do echo $i; done
https://snipt.net/embed/34e38b8afee3d37d49925f59392f6f2d/
/raw/34e38b8afee3d37d49925f59392f6f2d/
34e38b8afee3d37d49925f59392f6f2d
bash
Bash
1
2019-05-22T09:15:38
True
False
False
/api/public/snipt/2920/
simple-bash-for-loop
<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><span class="k">for</span> i in <span class="sb">`</span>ls<span class="sb">`</span><span class="p">;</span> <span class="k">do</span> <span class="nb">echo</span> <span class="nv">$i</span><span class="p">;</span> <span class="k">done</span> </span></pre></div> </td></tr></table>
bash, unix

Text only

Generate SSH public/private key

ssh-keygen -t rsa -b 2048
https://snipt.net/embed/f6609b0f2bab1d1a271ab068a2352f7a/
/raw/f6609b0f2bab1d1a271ab068a2352f7a/
f6609b0f2bab1d1a271ab068a2352f7a
text
Text only
1
2019-05-14T10:34:38
True
False
False
/api/public/snipt/2916/
generate-ssh-publicprivate-key
<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>ssh-keygen -t rsa -b 2048 </span></pre></div> </td></tr></table>
ssh