snipt

Ctrl+h for KB shortcuts

Bash

Enable backspace key in UNIX

1
2
3
4
5
stty erase ^?

# This is:

stty erase <hit-backspace-key> <enter>
https://snipt.net/embed/554655a591b893b31ebad05fa5ac4067/
/raw/554655a591b893b31ebad05fa5ac4067/
554655a591b893b31ebad05fa5ac4067
bash
Bash
5
2019-07-19T18:57:57
True
False
False
Nov 11, 2012 at 11:17 PM
/api/public/snipt/50044/
enable-backspace-key-in-unix-1
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a> <a href="#L-4">4</a> <a href="#L-5">5</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>stty erase ^? </span><span id="L-2"><a name="L-2"></a> </span><span id="L-3"><a name="L-3"></a><span class="c1"># This is:</span> </span><span id="L-4"><a name="L-4"></a> </span><span id="L-5"><a name="L-5"></a>stty erase &lt;hit-backspace-key&gt; &lt;enter&gt; </span></pre></div> </td></tr></table>
Bash, UNIX