snipt

Ctrl+h for KB shortcuts

Bash

Set title of terminal window...

1
2
3
4
5
6
7
8
#!/bin/sh 

# set it like: "\033]0; <TITLE> \007"
# Replace "<TITLE>" with your own...

clear
echo "\033]0;[email protected] Wheezy - TEST\007"
sleep 10s
https://snipt.net/embed/7223d15d353c1ff6f20d16fe94bed109/
/raw/7223d15d353c1ff6f20d16fe94bed109/
7223d15d353c1ff6f20d16fe94bed109
bash
Bash
9
2019-06-20T03:20:29
True
False
False
/api/public/snipt/35359/
set-title-of-terminal-window
<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> <a href="#L-6">6</a> <a href="#L-7">7</a> <a href="#L-8">8</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="ch">#!/bin/sh </span> </span><span id="L-2"><a name="L-2"></a> </span><span id="L-3"><a name="L-3"></a><span class="c1"># set it like: &quot;\033]0; &lt;TITLE&gt; \007&quot;</span> </span><span id="L-4"><a name="L-4"></a><span class="c1"># Replace &quot;&lt;TITLE&gt;&quot; with your own...</span> </span><span id="L-5"><a name="L-5"></a> </span><span id="L-6"><a name="L-6"></a>clear </span><span id="L-7"><a name="L-7"></a><span class="nb">echo</span> <span class="s2">&quot;\033]0;[email protected] Wheezy - TEST\007&quot;</span> </span><span id="L-8"><a name="L-8"></a>sleep 10s </span></pre></div> </td></tr></table>
bash, debian, linux, scripting