snipt

Ctrl+h for KB shortcuts

Bash

View the last <n> commands

history <n>
https://snipt.net/embed/3c2d069747d547f7ec731c09fd358cad/
/raw/3c2d069747d547f7ec731c09fd358cad/
3c2d069747d547f7ec731c09fd358cad
bash
Bash
1
2019-07-05T18:16:00
True
False
False
/api/public/snipt/50508/
view-the-last-n-commands
<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="nb">history</span> &lt;n&gt; </span></pre></div> </td></tr></table>
bash, history

Bash

Execute a specific command from history

!<history_id>
https://snipt.net/embed/30ea22287d3ab67d114dafb00da5ae42/
/raw/30ea22287d3ab67d114dafb00da5ae42/
30ea22287d3ab67d114dafb00da5ae42
bash
Bash
1
2019-07-15T17:19:32
True
False
False
/api/public/snipt/50452/
execute-a-specific-command-from-history
<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>!&lt;history_id&gt; </span></pre></div> </td></tr></table>
bash, history