 
    
<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>terminal Archives - Complete, Concrete, Concise</title>
	<atom:link href="https://complete-concrete-concise.com/tag/terminal/feed/" rel="self" type="application/rss+xml" />
	<link>https://complete-concrete-concise.com/tag/terminal/</link>
	<description>Practical Information Without The Bloat</description>
	<lastBuildDate>Mon, 22 Jan 2018 11:59:27 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9</generator>
	<item>
		<title>How to Exit Vim</title>
		<link>https://complete-concrete-concise.com/vim/how-to-exit-vim/</link>
		
		<dc:creator><![CDATA[richardsplanet]]></dc:creator>
		<pubDate>Mon, 22 Jan 2018 11:59:27 +0000</pubDate>
				<category><![CDATA[Vim]]></category>
		<category><![CDATA[exit]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[quit]]></category>
		<category><![CDATA[terminal]]></category>
		<category><![CDATA[understanding]]></category>
		<category><![CDATA[vim]]></category>
		<guid isPermaLink="false">http://www.complete-concrete-concise.com/?p=3362</guid>

					<description><![CDATA[<p>Simple help on exiting Vim.</p>
<p>The post <a href="https://complete-concrete-concise.com/vim/how-to-exit-vim/">How to Exit Vim</a> appeared first on <a href="https://complete-concrete-concise.com">Complete, Concrete, Concise</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div class="preamble">
<p>While Vim has a steep learning curve, you can <a href="//complete-concrete-concise.com/writing/5-minute-vim-tutorial">learn enough Vim in 5 minutes</a> to not be completely lost when you use it.</p>
</div>
<p>To exit Vim you need to be in <span class="mark">Normal Mode</span>.</p>
<p>To get to <span class="mark">Normal Mode</span> press the <span class="kbd">Escape</span> key twice. Your computer may beep at you, but that is OK.</p>
<p>Type <span class="kbd">:q!</span> followed by the <span class="kbd">Enter</span> key to <strong>quit without saving</strong>.</p>
<p>Type <span class="kbd">:x!</span> followed by the <span class="kbd">Enter</span> key to <strong>save changes and exit</strong>.</p>
<div class="hint">
<p>If you see <strong>recording</strong> in the lower left corner of the screen, press <span class="kbd">q</span> to exit recording mode, then proceed as described above.</p>
<pre class="vim"><code>
  &lt;body&gt;
    &lt;!-- page content goes here --&gt;
    &lt;p&gt;This is some dummy content.&lt;/p&gt;
  &lt;/body&gt;
&lt;/html&gt;
~
~
~
recording @q                            1,1           All</code></pre>
<p>&nbsp;
</p></div>
<p>The post <a href="https://complete-concrete-concise.com/vim/how-to-exit-vim/">How to Exit Vim</a> appeared first on <a href="https://complete-concrete-concise.com">Complete, Concrete, Concise</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>5 Minute Vim Tutorial</title>
		<link>https://complete-concrete-concise.com/blog/5-minute-vim-tutorial/</link>
		
		<dc:creator><![CDATA[richardsplanet]]></dc:creator>
		<pubDate>Wed, 26 Oct 2016 18:11:54 +0000</pubDate>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Vim]]></category>
		<category><![CDATA[Web Tools]]></category>
		<category><![CDATA[Writing]]></category>
		<category><![CDATA[editor]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[terminal]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[understanding]]></category>
		<category><![CDATA[vim]]></category>
		<guid isPermaLink="false">http://www.complete-concrete-concise.com/?p=3186</guid>

					<description><![CDATA[<p>This tutorial won't turn you into a Vim wizard, but at least you will be able to open, navigate, edit, and save files using Vim.</p>
<p>The post <a href="https://complete-concrete-concise.com/blog/5-minute-vim-tutorial/">5 Minute Vim Tutorial</a> appeared first on <a href="https://complete-concrete-concise.com">Complete, Concrete, Concise</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div class="preamble">
Vim works differently from other editors you are used to, but it only takes about 5 minutes to learn the basics you need to edit with Vim. You won’t be a Vim wizard, but you will be able to:</p>
<ul>
<li>Open a file</li>
<li>Move around in a file</li>
<li>Edit text in a file</li>
<li>Save a File</li>
</ul>
<p>The slightly longer <a href="#Extended">Extended 5 Minute Tutorial</a> you will show you how to <strong>search</strong> in a file, get <strong>help</strong>, and <strong>access</strong> Vim’s own built-in tutorial.
</div>
<h2 id="contents">Contents</h2>
<ol type="1">
<li><a href="#Vim-in-5">Vim in 5 Minutes (or less)</a></li>
<li><a href="#Extended">The Extended 5+ Minute Tutorial</a>
<ol type="1">
<li><a href="#Normal">Normal Mode</a></li>
<li><a href="#Opening">Opening a File</a></li>
<li><a href="#Saving">Saving a File</a></li>
<li><a href="#Exiting">Exiting Vim</a></li>
<li><a href="#Navigating">Navigating a File</a></li>
<li><a href="#Inserting">Inserting and Deleting Text</a></li>
<li><a href="#Searching">Searching</a></li>
<li><a href="#Help">Getting Help</a></li>
</ol>
</li>
<li><a href="#Final">Final Words</a></li>
</ol>
<h2 id="Vim-in-5">Vim in 5 Minutes (or less)</h2>
<ul>
<li>Vim operates in <span class="mark">Modes</span>. Vim always starts in <span class="mark">Normal Mode</span>.</li>
<li><span class="mark">Normal Mode</span> is your base mode and you should always return to it.</li>
<li>All command / control keys are <strong>case sensitive</strong>.</li>
<li>If you are not in <span class="mark">Normal Mode</span>, you (usually) get back to <span class="mark">Normal Mode</span> by pressing the <span class="kbd">Escape</span> key twice.</li>
<li>If you see <span class="mark">recording</span> in the lower left corner of the screen, press the <span class="kbd">q</span> key to return to <span class="mark">Normal Mode</span>.</li>
<li>If you’ve messed stuff up, return to <span class="mark">Normal Mode</span> and type <span class="kbd">:q!</span> followed by the <span class="kbd">Enter</span> key to exit Vim <strong>without</strong> saving the file.</li>
<li>In <span class="mark">Normal Mode</span> you can navigate the file using the <span class="kbd">h</span>, <span class="kbd">j</span>, <span class="kbd">k</span>, <span class="kbd">l</span> keys (left, down, up, right). You might also be able to use the arrow keys on the keyboard<a id="fnref1" class="footnote-ref" href="#fn1"><sup>1</sup></a>.</li>
<li>When you have navigated to where you want to edit the file (inserting or deleting text), press the <span class="kbd">i</span> key to enter <span class="mark">Insert Mode</span>.</li>
<li>In <span class="mark">Insert Mode</span> you can <strong>only</strong> enter or delete text from the current cursor position &#8211; you <strong>cannot</strong> navigate. To navigate, press the <span class="kbd">Escape</span> key to return to <span class="mark">Normal Mode</span>.</li>
<li>To save (write) the file, return to <span class="mark">Normal Mode</span> and type <span class="kbd">:w</span> followed by the <span class="kbd">Enter</span> key.</li>
<li>To exit (quit) Vim, return to <span class="mark">Normal Mode</span> and type <span class="kbd">:q</span> followed by the <span class="kbd">Enter</span> key.</li>
</ul>
<h2 id="Extended">The Extended 5 Minute Tutorial</h2>
<p>This adds <span class="mark">searching</span> and <span class="mark">help</span> to the 5 Minute Tutorial, but, otherwise, keeps the information to the bare minimum so you can quickly be functional in Vim instead of frustrated.<br />
All command / control keys are <strong>case sensitive</strong>: <span class="kbd">h</span> is not the same as <span class="kbd">H</span>!</p>
<h3 id="Normal">Normal Mode</h3>
<p><span class="mark">Normal Mode</span> is the default mode and it should be the mode you always go back to.<br />
Most times, you press the <span class="kbd">Escape</span> key once or twice<a id="fnref2" class="footnote-ref" href="#fn2"><sup>2</sup></a> to return to <span class="mark">Normal Mode</span>.<br />
If you see <span class="mark">recording</span> in the lower left corner of the screen, press the lowercase <span class="kbd">q</span> key to return to <span class="mark">Normal Mode</span>.</p>
<h3 id="Opening">Opening a File</h3>
<p>The simplest way to open a file is to type <span class="kbd">vim</span> at the command line followed by the name of the file:</p>
<div id="cb1" class="sourceCode">
<pre class="sourceCode bash"><code><a id="cb1-1" class="sourceLine" data-line-number="1"></a><span class="ex">user@COMPUTER</span>:~$ vim file.txt</code></pre>
</div>
<p>If it is a <strong>new</strong> file you should see something like this:</p>
<pre class="vim"><code>
~
~
~
~
~
"file.txt" [New File]                       0,0-1          All</code></pre>
<p>If it is an <strong>existing</strong> file, you should see something like <span class="note" data-note="The actual contents will depend on the file you opened.">this</span>:</p>
<pre class="vim"><code>&lt;!doctype html&gt;
&lt;html lang="en"&gt;
  &lt;head&gt;
    &lt;meta charset="utf-8"&gt;
    &lt;title&gt;Basic HTML5 Template&lt;/title&gt;
    &lt;link rel="stylesheet" href="style.css"&gt;
  &lt;/head&gt;
  &lt;body&gt;
    &lt;!-- page content goes here --&gt;
    &lt;p&gt;This is some dummy content that is not lorem ipsum.&lt;/p&gt;
  &lt;/body&gt;
&lt;/html&gt;
~
~
~
"basic.html" 12L, 290C                      1,1           All</code></pre>
<p>The status line<a id="fnref3" class="footnote-ref" href="#fn3"><sup>3</sup></a> (at the bottom of the screen) displays the following information:</p>
<ul>
<li>file name</li>
<li>total number of lines in the file</li>
<li>total number of characters in the file</li>
<li>current line the cursor is on</li>
<li>current column the cursor is in</li>
<li>percentage showing the position in the file (if <span class="mark">All</span> : the entire file is visible, <span class="mark">Bot</span> : at the bottom (end) of the file, <span class="mark">Top</span> : at the top of the file)</li>
</ul>
<p>In <span class="mark">Normal Mode</span> load a file by typing <span class="kbd">:edit</span> followed by the filename and then pressing the <span class="kbd">Enter</span> key.:</p>
<pre class="vim"><code>:edit basic.html</code></pre>
<p>This discards the current file (if any) and loads the specified file.<br />
If the file to be discarded has been modified, but not saved, you will see the following warning in the status line:</p>
<pre class="vim"><code>E37: No write since last change (add ! to override)</code></pre>
<p>If you don’t care about saving the file, simply append <span class="kbd">!</span> to the <span class="kbd">:edit</span> command:</p>
<pre class="vim"><code>:edit! basic.html</code></pre>
<p>The <span class="kbd">!</span> tells Vim to “just do it!” and ignore any warnings.</p>
<h3 id="Saving">Saving a File</h3>
<p>You need to be in <span class="mark">Normal Mode</span> to save a file.<br />
Save a file by typing <span class="kbd">:w</span> followed by the <span class="kbd">Enter</span> key.<br />
If you want to save the file with a different name, type <span class="kbd">:w</span> followed by the new file name and then press the <span class="kbd">Enter</span> key:</p>
<pre class="vim"><code>:w new-filename.txt</code></pre>
<h3 id="Exiting">Exiting Vim</h3>
<p>You need to be in <span class="mark">Normal Mode</span> to exit Vim.<br />
Type <span class="kbd">:q</span> followed by the <span class="kbd">Enter</span> key to exit Vim.<br />
If Vim warns you that the file has been modified, you can choose to <a href="#Saving">save it</a> or you can force Vim to exit without saving the file by typing <span class="kbd">:q!</span> followed by the <span class="kbd">Enter</span> key. The <span class="kbd">!</span> tells Vim to “just do it” and exit without saving the file.</p>
<h3 id="navigating-a-file-navigating">Navigating a File {Navigating}</h3>
<p>You need to be in <span class="mark">Normal Mode</span> to navigate a file.<br />
The letters <span class="kbd">h</span>, <span class="kbd">j</span>, <span class="kbd">k</span>, <span class="kbd">l</span> navigate the cursor through the file. (You may also be able to use the arrow keys present on most keyboards.)<br />
They act like arrow keys and are conceptually laid out like this:</p>
<table style="font-size: 2em; text-align: centered; font-family: inconsolata,monospace; border-collapse: collapse;">
<tbody>
<tr>
<td style="padding: 0.2em 1em 0 1em; border: 1px solid black;">h<br />
←</td>
<td style="padding: 0.2em 1em 0 1em; border: 1px solid black;">j<br />
↓</td>
<td style="padding: 0.2em 1em 0 1em; border: 1px solid black;">k<br />
↑</td>
<td style="padding: 0.2em 1em 0 1em; border: 1px solid black;">l<br />
→</td>
</tr>
</tbody>
</table>
<p>When you navigate left (<span class="kbd">h</span>) to the beginning of a line, the cursor will stop. It will <strong>not</strong> wrap around and up to the previous line.<br />
When you navigate right (<span class="kbd">l</span>) to the end of a line, the cursor will stop. It will <strong>not</strong> wrap around and down to the next line.<br />
If you type a <strong>positive</strong> integer (which will not be displayed), followed by one of the navigation keys, the cursor will move that many characters / lines.<br />
For example, in <span class="mark">Normal Mode</span>, if you type <span class="kbd">10j</span>, the cursor will move down 10 lines.</p>
<h3 id="Inserting">Inserting and Deleting Text</h3>
<p>In <span class="mark">Insert Mode</span> the only thing you can do is insert or delete text. (You <strong>may</strong> be able to use the arrow keys on your keyboard to navigate the text while in this mode, but there is no guarantee, navigating is supposed to be done in <span class="mark">Normal Mode</span>)<br />
Enter <span class="mark">Insert Mode</span> by pressing the <span class="kbd">i</span>, <span class="kbd">a</span>, <span class="kbd">I</span>, or <span class="kbd">A</span> key.</p>
<ul>
<li><span class="kbd">i</span> insert / delete before the cursor (what you would intuitively expect when entering or deleting text).</li>
<li><span class="kbd">a</span> append / delete after the current cursor position.</li>
<li><span class="kbd">I</span> insert / delete at the beginning of the line.</li>
<li><span class="kbd">A</span> append / delete at the end of the line.</li>
</ul>
<p>You will (probably) be using <span class="kbd">i</span> most frequently.<br />
When you enter <span class="mark">Insert Mode</span> you will see <span class="mark">– INSERT –</span> displayed in the lower left corner:</p>
<pre class="vim"><code>The navigation keys are h, j, k, l.
h moves the̲ cursor one character left
l moves the cursor one character right
j moves the cursor one line down
k moves the cursor one line up
~
~
~
~
-- INSERT --                       3,11      All</code></pre>
<p>Press the <span class="kbd">Escape</span> key to return to <span class="mark">Normal Mode</span>.</p>
<h3 id="Searching">Searching</h3>
<p>You must be in <span class="mark">Normal Mode</span> to search.<br />
In a large file, it is useful to locate items of interest by searching for them.<br />
To search, type <span class="kbd">/</span> followed by the text you want to find, followed by the <span class="kbd">Enter</span> key.<br />
Vim treats the search string as a regular expression &#8211; which means some characters have a special meaning. If you need to search for the following characters, you will need to type them as follows:</p>
<table style="border-collapse: collapse;">
<tbody>
<tr style="font-weight: bold;">
<td style="padding: 0.2em 1em 0 1em; border: 1px solid black;">Name</td>
<td style="padding: 0.2em 1em 0 1em; border: 1px solid black;">Character</td>
<td style="padding: 0.2em 1em 0 1em; border: 1px solid black;">Need to Type</td>
</tr>
<tr>
<td style="padding: 0.2em 1em 0 1em; border: 1px solid black;">Period</td>
<td style="padding: 0.2em 1em 0 1em; border: 1px solid black; text-align: center;">.</td>
<td style="padding: 0.2em 1em 0 1em; border: 1px solid black; text-align: center;">.</td>
</tr>
<tr>
<td style="padding: 0.2em 1em 0 1em; border: 1px solid black;">Asterisk</td>
<td style="padding: 0.2em 1em 0 1em; border: 1px solid black; text-align: center;">*</td>
<td style="padding: 0.2em 1em 0 1em; border: 1px solid black; text-align: center;">\*</td>
</tr>
<tr>
<td style="padding: 0.2em 1em 0 1em; border: 1px solid black;">Backslash</td>
<td style="padding: 0.2em 1em 0 1em; border: 1px solid black; text-align: center;">&lt;/td&gt;</td>
<td style="padding: 0.2em 1em 0 1em; border: 1px solid black; text-align: center;">\</td>
</tr>
<tr>
<td style="padding: 0.2em 1em 0 1em; border: 1px solid black;">Dollar Sign</td>
<td style="padding: 0.2em 1em 0 1em; border: 1px solid black; text-align: center;">$</td>
<td style="padding: 0.2em 1em 0 1em; border: 1px solid black; text-align: center;">$</td>
</tr>
<tr>
<td style="padding: 0.2em 1em 0 1em; border: 1px solid black;">Forward Slash</td>
<td style="padding: 0.2em 1em 0 1em; border: 1px solid black; text-align: center;">/</td>
<td style="padding: 0.2em 1em 0 1em; border: 1px solid black; text-align: center;">/</td>
</tr>
</tbody>
</table>
<p>Searches are case sensitive.<br />
You can navigate between search results by pressing <span class="kbd">n</span> (next) or <span class="kbd">N</span> (previous).</p>
<h3 id="Help">Getting Help</h3>
<p>You need to be in <span class="mark">Normal Mode</span> to use help.<br />
To get help on something in Vim, simply type <span class="kbd">:help</span> followed by the thing you want help on.<br />
For example, to get help on the navigation key <span class="kbd">h</span>, type <span class="kbd">:help h</span> followed by the <span class="kbd">Enter</span> key.<br />
You should see something similar to the following:</p>
<pre class="vim"><code>h         or          *h*
&lt;Left&gt;    or          *&lt;Left&gt;*
CTRL-H    or          *CTRL-H* *&lt;BS&gt;*
&lt;BS&gt;      [count] characters to the left.  |exclusive| motion.
          Note: If you prefer &lt;BS&gt; to delete a character, use
          the mapping:
             :map CTRL-V&lt;BS&gt;    X
          (to enter "CTRL-V&lt;BS&gt;" type the CTRL-V key, followed
          by the &lt;BS&gt; key)
          See |:fixdel| if the &lt;BS&gt; key does not do what you
          want.
m̲o̲t̲i̲o̲n̲.̲t̲x̲t̲ ̲[̲H̲e̲l̲p̲]̲[̲R̲O̲]̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲1̲7̲2̲,̲1̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲1̲2̲%̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲
Vim will split the display into two panes. In the upper pane
you will see the help text. In the lower pane you will see your
current editing buffer.
Now you know that Vim supports multiple editing buffers - but
that is not the point of this tutorial.
~
~
~
~
a-file.txt                     4,5              All
</code></pre>
<p>The help can be pretty dense and not user friendly, but it <em>may</em> be helpful.<br />
To close the help window, type <span class="kbd">:q</span> followed by the <span class="kbd">Enter</span> key.<br />
If you type <span class="kbd">:help</span>, it will bring up the general help file. You can navigate through it for topics of interest.<br />
You might also try <span class="kbd">:help tutor</span> for instructions on accessing the Vim tutor which is included with every Vim installation.</p>
<h3 id="Final">Final Words</h3>
<p>Vim may not be the easiest or most intuitive editor you will come across. However, it (or its ancestor Vi) is quite ubiquitous and this tutorial gives you the basics you need so you are minimally functional with it.<br />
The basics are simple:</p>
<ol type="1">
<li>Vim operates in <span class="mark">Modes</span>.</li>
<li>All command / control keys are <strong>case sensitive</strong> : <span class="kbd">k</span> is not the same as <span class="kbd">K</span>.</li>
<li>The base mode is <span class="mark">Normal Mode</span>. You (usually) get back to it by pressing the <span class="kbd">Escape</span> key once or twice.</li>
<li>Navigating a file is done in <span class="mark">Normal Mode</span> using the <span class="kbd">h</span>, <span class="kbd">j</span>, <span class="kbd">k</span>, <span class="kbd">l</span> keys.</li>
<li>When the cursor is where you want to insert or delete text, you press the <span class="kbd">i</span> key to enter <span class="mark">Insert Mode</span>.</li>
<li>Search in <span class="mark">Normal Mode</span> by typing <span class="kbd">/</span> followed by the string you want to find and then the <span class="kbd">Enter</span> key. Navigate the search results using the <span class="kbd">n</span> and <span class="kbd">N</span> keys.</li>
<li>Save a file by typing <span class="kbd">:w</span> in <span class="mark">Normal Mode</span>.</li>
<li>Exit Vim by typing <span class="kbd">:q</span> in <span class="mark">Normal Mode</span>.</li>
<li>In <span class="mark">Normal Mode</span> you can get help by typing <span class="kbd">:help</span></li>
</ol>
<section class="footnotes">
<hr />
<ol>
<li id="fn1">Vi (the precursor to Vim) was developed in 1976. Arrow keys were not commonly found on keyboards, so <span class="kbd">h</span>, <span class="kbd">j</span>, <span class="kbd">k</span>, <span class="kbd">l</span> were used.<a class="footnote-back" href="#fnref1">↩</a></li>
<li id="fn2">Some modes require one key press, others require two. If you press it too many times, the computer will just beep at you. Vim newbies often repeatedly press the <span class="kbd">Escape</span> key in the hopes of returning to <span class="mark">Normal Mode</span><a class="footnote-back" href="#fnref2">↩</a></li>
<li id="fn3">This is true for the default Status Line. It is always possible that someone has modified the Status Line to display different information, or in a different arrangement.<a class="footnote-back" href="#fnref3">↩</a></li>
</ol>
</section>
<p>The post <a href="https://complete-concrete-concise.com/blog/5-minute-vim-tutorial/">5 Minute Vim Tutorial</a> appeared first on <a href="https://complete-concrete-concise.com">Complete, Concrete, Concise</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Ubuntu 13.04 &#8211; How to Run a Shell / Command Line / Terminal as root</title>
		<link>https://complete-concrete-concise.com/ubuntu-2/ubuntu-13-04/ubuntu-13-04-how-to-run-a-shell-command-line-terminal-as-root/</link>
		
		<dc:creator><![CDATA[richardsplanet]]></dc:creator>
		<pubDate>Wed, 01 May 2013 04:06:59 +0000</pubDate>
				<category><![CDATA[Ubuntu 13.04]]></category>
		<category><![CDATA[access]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[root]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[terminal]]></category>
		<guid isPermaLink="false">http://complete-concrete-concise.com/?p=2932</guid>

					<description><![CDATA[<p>The instructions are for Ubuntu 13.04, but should be the same for other versions.</p>
<p>The post <a href="https://complete-concrete-concise.com/ubuntu-2/ubuntu-13-04/ubuntu-13-04-how-to-run-a-shell-command-line-terminal-as-root/">Ubuntu 13.04 &#8211; How to Run a Shell / Command Line / Terminal as root</a> appeared first on <a href="https://complete-concrete-concise.com">Complete, Concrete, Concise</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div class="c1">
<p>This tutorial is for Ubuntu 13.04.</p>
<p>It is probably the same for other versions of Ubuntu and (probably) most other Linux distributions, but no guarantee is made.</p>
<p>Detailed instructions for opening a command line / terminal can be found <a href="//complete-concrete-concise.com/ubuntu-2/ubuntu-13-04/ubuntu-13-04-how-to-get-a-command-line-shell-or-terminal">here</a>.</p>
</div>
<p>When you open a terminal in Ubuntu, you do not have administrative privileges. This means that there are some operations you cannot perform at the terminal.</p>
<p>Ubuntu provides the <code>sudo</code> command which temporarily grants you administrative privilege. However, you still have to type <code>sudo</code> before each administrative command you want to perform.</p>
<p>If you want to live dangerously and have <u>full root access</u> while at the terminal, enter the following command in the terminal:</p>
<pre><code>sudo bash</code></pre>
<p>After entering your password, you now be running with full root privilege at the command line:</p>
<p><img decoding="async" src="//complete-concrete-concise.com/wp-content/uploads/2013/03/ubuntu-12.04-root-access-in-terminal.png" alt="" border="0" class="centered" /></p>
<div class="c4">
<p><strong>Note:</strong> in order for this to work, you need to be a user who has the right to run <code>sudo</code>. In general, most users of Ubuntu have this right. However, user accounts can be created that do not have this right.</p>
</div>
<h3>How it Works</h3>
<p>Because some commands are potentially dangerous, unless you are <code>root</code> you are not allowed to run them. Using the <code>sudo</code> command temporarily elevates your status to <code>root</code> and allows you to run these commands.</p>
<p>When you run a terminal, it has the same privilege as the current user.</p>
<p>By running <code>sudo bash</code> you start another copy of the <code>bash shell</code>. However, you because you started it with <code>sudo</code> it runs with <code>root</code> privilege.</p>
<div class="c1">
<p>What is commonly called a terminal or command line is, in fact, a shell. There are many types of shells, <code>bash</code> is the default one with Ubuntu.</p>
</div>
<div class="c4">
<p><strong>WARNING:</strong> running as <code>root</code> is a good way to mess up your system if you are not careful because there are no checks in place to prevent you from making catastrophic changes to your system.</p>
<p>I grant that by using the <code>sudo</code> command you can also irretrievably damage your system, but at least you had to type <code>sudo</code> (and possibly a password) before doing anything.</p>
</div>

<p>The post <a href="https://complete-concrete-concise.com/ubuntu-2/ubuntu-13-04/ubuntu-13-04-how-to-run-a-shell-command-line-terminal-as-root/">Ubuntu 13.04 &#8211; How to Run a Shell / Command Line / Terminal as root</a> appeared first on <a href="https://complete-concrete-concise.com">Complete, Concrete, Concise</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Ubuntu 13.04 &#8211; Basic Command Line Techniques</title>
		<link>https://complete-concrete-concise.com/ubuntu-2/ubuntu-13-04/ubuntu-13-04-basic-command-line-techniques/</link>
		
		<dc:creator><![CDATA[richardsplanet]]></dc:creator>
		<pubDate>Tue, 30 Apr 2013 19:59:01 +0000</pubDate>
				<category><![CDATA[Ubuntu 13.04]]></category>
		<category><![CDATA[basic]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[commands]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[terminal]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[ubuntu 13.04]]></category>
		<guid isPermaLink="false">http://complete-concrete-concise.com/?p=2925</guid>

					<description><![CDATA[<p>Using the command line doesn't have to be mysterious or hard.</p>
<p>The post <a href="https://complete-concrete-concise.com/ubuntu-2/ubuntu-13-04/ubuntu-13-04-basic-command-line-techniques/">Ubuntu 13.04 &#8211; Basic Command Line Techniques</a> appeared first on <a href="https://complete-concrete-concise.com">Complete, Concrete, Concise</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div class="c1">
<p>This tutorial is for Ubuntu 13.04.</p>
<p>It is probably the same for every other version of Ubuntu and all other Linux distros, but I make no guarantee.</p>
</div>
<p>Linux (on which Ubuntu is based) is fundamentally a command line driven operating system. While there are graphical interfaces to many of the available commands, sometimes you need (or have no choice) to work at the command line.</p>
<p>There are five fundamental things everyone working at the command line should know (or at least be aware of):</p>
<ol>
<li>man</li>
<li>pipes</li>
<li>redirection</li>
<li>less (or more)</li>
<li>ls</li>
</ol>
<h1>man</h1>
<div class="c1">
<p><code>man</code> is short for <u>manual</u></p>
</div>
<p><code>man</code> is the help file.</p>
<p>When you want to know more about a command, you enter <code>man <em>&lt;command name&gt;</em></code> to display information about the command. For example:</p>
<pre><code>man ls</code></pre>
<p>will bring up the <code>man</code> page for the command <code>ls</code>. You could also enter <code>man man</code> to display information about the <code>man</code> command. The <code>man</code> page for <code>ls</code> looks something like this:</p>
<p><a href="//complete-concrete-concise.com/wp-content/uploads/2012/12/basic-command-line-techniques-1-big.png" target="_blank"><img decoding="async" src="//complete-concrete-concise.com/wp-content/uploads/2012/12/basic-command-line-techniques-1-thumb.png" alt="" border="0" class="centered" /></a></p>
<p>To navigate through a <code>man</code> you use the following commands:</p>
<ul>
<li>q &#8211; exit (quit) the man page</li>
<li>SPACE or f &#8211; forward to the next page</li>
<li>b &#8211; backward to the previous page</li>
<li>e &#8211; forward one line</li>
<li>y &#8211; backward one line</li>
</ul>
<div class="c4">
<p>While there are <code>man</code> pages for pretty much every command, there is no <code>man</code> page for the command <code>cd</code>.</p>
</div>
<h1>Pipes</h1>
<p>Pipes allow you to send the displayed output from one command to another command.</p>
<p>In other words, when you enter a command that displays a bunch of information on the terminal (and maybe scrolls past the top of the terminal), you can use a pipe to send that information to another command.</p>
<p>The most common use of pipes is with the <code>more</code> (or, preferably, <code>less</code>) command. This is especially true when information scrolls past the top of the terminal.</p>
<p>The pipe is the vertical bar (or broken bar) symbol: &#8216;<code>|</code>&#8216;.</p>
<p>For example, any of the following commands is likely display information that will scroll past the top of the terminal:</p>
<pre><code>ls /bin
ls /etc
ls /lib</code></pre>
<p>If we pipe the output to the <code>more</code> command, then we can scroll through the output one display page at a time:</p>
<pre><code>ls /etc | more</code></pre>
<p>Another common use of pipes is with the <code>grep</code> command. (<code>grep</code> is often used to filter out unwanted information &#8211; but I won&#8217;t be covering <code>grep</code> here.)</p>
<p>You can pipe together as many commands as you like. The output from the command on the left of the pipe is sent to the command on the right of the pipe.</p>
<h1>Redirection</h1>
<p>Sometimes you need to capture the information displayed by a command. This is done using redirection.</p>
<p>The output displayed by a command can be sent to a file instead of the display.</p>
<p>The redirection operator is the greater than symbol: &#8216;&gt;&#8217;.</p>
<p>For example, suppose I want to dump a <code>man</code> page to file, so I can later look at (or print that file). I can do so by redirecting the <code>man</code> output to a file (you choose the name of the file):</p>
<pre><code>man ls > ls.txt</code></pre>
<p>The above command will send the output of the <code>man</code> page for <code>ls</code> to a file called <u>ls.txt</u>. I can then handle <u>ls.txt</u> the same way I handle any text file.</p>
<p>Another example, I could send a directory listing to a file as well:</p>
<pre><code>ls > directory_list</code></pre>
<p>The above command will send the output of <code>ls</code> to a file called <u>directory_list</u>. Again, the file can be handled the same way any other text file is handled.</p>
<p>Redirection always send stores the file in the current directory (normally, this will be your <code>/home/<i>&lt;user&gt;</i></code> directory). You can write the file to another directory by either (1) changing to a different directory (using the <code>cd</code> command), or (2) specifying the path along with the file name. <strong>Note:</strong> you may not have permission to write in other directories, so the operation will fail.</p>
<h1>less</h1>
<div class="c1">
<p><code>less</code> is an improved version of the <code>more</code> command. The main advantage of using <code>less</code> instead of <code>more</code> is that <code>less</code> lets you scroll backwards through data that has been piped to it; <code>more</code> only allows you to scroll forward through piped data. Other than that difference, <code>less</code> and <code>more</code> behave almost identically.</p>
</div>
<p><code>less</code> is used to display information one page at a time.</p>
<p>Most often it is used in conjunction with pipes to prevent output from scrolling off the top of the terminal:</p>
<pre><code>ls | less</code></pre>
<p><code>less</code> can be used to display the contents of a text file:</p>
<pre><code>less <i>&lt;file name&gt;</i></code></pre>
<p>where <i>&lt;file name&gt;</i> is the name of the text file to display.</p>
<p>To navigate through text being displayed by <code>less</code> you use the following commands:</p>
<ul>
<li>q &#8211; exit (quit) <code>less</code></li>
<li>SPACE or f &#8211; forward to the next page</li>
<li>b &#8211; backward to the previous page (does not work if <code>more</code> is displaying text from a pipe and the main reason why  <code>less</code> is preferred)</li>
<h1>ls</h1>
<div class="c1">
<p><code>ls</code> is short for <u>list</u></p>
</div>
<p><code>ls</code> is used to display the contents of a directory.</p>
<p><img decoding="async" src="//complete-concrete-concise.com/wp-content/uploads/2012/12/basic-command-line-techniques-2.png" alt="" border="0" class="centered" data-recalc-dims="1"/></p>
<p>Directory contents are colour coded. Different files have different colours.</p>
<p>The default colours (in the default Ubuntu 13.04 terminal) for common file types are:</p>
<div class="c2">
<p><strong>Note:</strong> if you or someone has configured your system, or you are using a different terminal (or a different Linux distribution), the colours and their significance may be completely different.</p>
</div>
<p><img decoding="async" src="//complete-concrete-concise.com/wp-content/uploads/2012/12/basic-command-line-colours.png" alt="" border="0" class="centered" data-recalc-dims="1"/></p>
<p>There are other colour combinations in use and some colours (notably purple) are reused for other file types.</p>

<p>The post <a href="https://complete-concrete-concise.com/ubuntu-2/ubuntu-13-04/ubuntu-13-04-basic-command-line-techniques/">Ubuntu 13.04 &#8211; Basic Command Line Techniques</a> appeared first on <a href="https://complete-concrete-concise.com">Complete, Concrete, Concise</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Ubuntu 13.04 &#8211; How to get a Command Line, Shell, or Terminal</title>
		<link>https://complete-concrete-concise.com/ubuntu-2/ubuntu-13-04/ubuntu-13-04-how-to-get-a-command-line-shell-or-terminal/</link>
		
		<dc:creator><![CDATA[richardsplanet]]></dc:creator>
		<pubDate>Thu, 25 Apr 2013 07:01:15 +0000</pubDate>
				<category><![CDATA[Ubuntu 13.04]]></category>
		<category><![CDATA[access]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[commandline]]></category>
		<category><![CDATA[get how to]]></category>
		<category><![CDATA[open]]></category>
		<category><![CDATA[opening]]></category>
		<category><![CDATA[openning]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[terminal]]></category>
		<category><![CDATA[ubuntu 13.04]]></category>
		<guid isPermaLink="false">http://complete-concrete-concise.com/?p=2806</guid>

					<description><![CDATA[<p>These instructions are for Ubuntu 13.04 using the Unity interface (although, hints are provided at the bottom of the article for those who have installed a different desktop). Linux (of which Ubuntu is a flavour) and it&#8217;s inspiration Unix, have a strong emphasis and tradition of doing everything via typed commands. Often, when searching the [&#8230;]</p>
<p>The post <a href="https://complete-concrete-concise.com/ubuntu-2/ubuntu-13-04/ubuntu-13-04-how-to-get-a-command-line-shell-or-terminal/">Ubuntu 13.04 &#8211; How to get a Command Line, Shell, or Terminal</a> appeared first on <a href="https://complete-concrete-concise.com">Complete, Concrete, Concise</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div class="c1">
<p>These instructions are for Ubuntu 13.04 using the Unity interface (although, hints are provided at the bottom of the article for those who have installed a different desktop).</p>
<div class="c2">
<p>Linux (of which Ubuntu is a flavour) and it&#8217;s inspiration Unix, have a strong emphasis and tradition of doing everything via typed commands.</p>
<p>Often, when searching the Internet for a solution to a problem, you often find terse (possibly cryptic) answers along the lines of:</p>
<blockquote>
<p>Test if you can reach Google with <strong>ping -c 4 google.com</strong></p>
</blockquote>
<p>or</p>
<blockquote>
<p>To recursively change your file permissions just: <strong>chmod 755 -R /opt/lampp/htdocs</strong></p>
</blockquote>
<p>In order to run those commands, you have to open a shell or command line or terminal (they are all synonymous, but <u>shell</u> is the preferred term in Linux and Unix circles).</p>
<div class="c3">
<p>There are many different shells, the original Unix shell is called the Bourne Shell (or sh), then came the C Shell (csh) and Korn Shell (ksh). Linux tends to use the Bourne Again Shell (bash). For the most part, they all do the same thing, so you don&#8217;t need to worry about which one you are using.</p>
<p>If you want to know which shell you are using, just enter <u>echo $SHELL</u> at the command line and press <u>Enter</u>.</p>
</div>
</div>
</div>
<div class="c1">
<p><strong>Note:</strong> If you find a command line solution / trick / tip for a non-Ubuntu Linux distribution, there is a good chance (though not 100% guaranteed) that it might work with Ubuntu.</p>
<p>If you get a <u>Permission denied</u> or <u>Are you root?</u> response when you type in the command, try prefixing the command with <code>sudo</code>. Ubuntu requires administrator level privileges for certain commands. <code>sudo</code> temporarily gives administrator privileges (after you supply your password).</p>
</div>
<h1>Opening a Terminal using a Keyboard Shortcut</h1>
<div class="c2">
<p>This is the default keyboard shortcut for Ubuntu 13.04 (and probably most Linux distros running a GNOME 3 based desktop), unless you (or someone else) has changed it, it should work.</p>
<p>This also the default keyboard shortcut if you have changed your desktop environment to GNOME Shell, LXDE, or the Lubuntu Desktop and will work unless you (or someone else) has changed it.</p>
<p>This will <strong><u>NOT</u></strong> work for the XFCE or Xubuntu Desktop unless you (or someone else) has added the keyboard shortcut.</p>
</div>
<p><strong>1) Press</strong> <code>Ctrl + Alt + T</code> to open a terminal / command line / shell.</p>
<div class="c2">
<p><strong>Note:</strong> pressing <code>Ctrl + Alt + T</code> means: while holding down both the <code>Ctrl</code> key and <code>Alt</code> key, press the <code>T</code> key as though you intend to type it.</p>
<p><strong>DO NOT</strong> press the <code>Shift</code> key because <code>Ctrl + Alt + Shift + T</code> is different from <code>Ctrl + Alt + T</code>.</p>
<p>It does <strong>NOT</strong> matter if your <code>Caps Lock</code> is on or off.</p>
</div>
<p>The terminal should look something like this:</p>
<p><img decoding="async" src="//complete-concrete-concise.com/wp-content/uploads/2013/04/13.04-commandline-1.png" alt="" border="0" class="centered"/></p>
<h1>Opening a Terminal from Unity</h1>
<p><strong>1) Click</strong> the Dash icon (or use the keyboard shortcut by tapping the <u>Windows / Super</u> key &#8211; don&#8217;t hold it down, just tap it as if you were going to type it):</p>
<p><img fetchpriority="high" decoding="async" src="//complete-concrete-concise.com/wp-content/uploads/2013/04/13.04-commandline-2.jpg" width="480" height="193" alt="" border="0" class="centered"/></p>
<p><strong>2) Type</strong> <u>terminal</u> into the entry field:</p>
<div class="c1">
<p>As you type, Unity will display matching results below the entry field. You can stop typing when what you are looking for is the leftmost item.</p>
</div>
<p><img decoding="async" src="//complete-concrete-concise.com/wp-content/uploads/2013/04/13.04-commandline-3.png" alt="" border="0" class="centered"/></p>
<p><strong>3) Press</strong> <u>Enter / Return</u> key to open the terminal:</p>
<div class="c1">
<p>You can also open the terminal by clicking on it with your mouse.</p>
<p>You can use the arrow keys on your keyboard to navigate to it and then press the <u>Enter</u> key to select it (if you are using the arrow keys built into your numpad ensure that <code>Num Lock</code> is off):</p>
<p><img decoding="async" src="//complete-concrete-concise.com/wp-content/uploads/2013/04/13.04-commandline-4.png" alt="" border="0" class="centered"/></div>
<h1>Opening a Terminal if You are not Using Unity</h1>
<p>Because there are many different types of desktops available for Linux, it is not possible to list all possible ways to start the terminal. However … the general technique is the same:</p>
<p><strong>1) Open</strong> the <u>Main Menu</u> or <u>Applications Menu</u> (or whatever the main menu for your environment is called).</p>
<p><strong>2)</strong> If you are lucky, there will be a menu entry for a terminal (it might be called <u>Terminal</u> or <u>LXTerminal</u> or something else with <code>terminal</code> in the name.</p>
<p><strong>3)</strong> If you are unlucky, then you will have to look for it in a submenu. It is most likely to be found in a submenu called <u>Accessories</u> or <u>System</u>.</p>
<div class="c2">
<p><strong>Note:</strong> You may have more than one terminal application installed or the terminal application may appear in more than one menu location.</p>
</div>
<h1>How to (Almost) Always Get a Command Prompt</h1>
<div class="c1">
<p>This works with pretty much any Linux distribution (unless they have been specially compiled to disable it).</p>
</div>
<p>If you need to access the command line and no terminal application has been installed,  or you can&#8217;t find it, or the GUI has become unresponsive, you can press <code>Ctrl + Alt + F1</code> to switch you to a full screen text terminal / command line / shell. To return to your GUI, press <code>Ctrl + Alt + F7</code>.</p>
<div class="c2">
<p><strong>Note:</strong> pressing <code>Ctrl + Alt + F1</code> means: while holding down both the <code>Ctrl</code> key and <code>Alt</code> key, press the <code>F1</code> key as though you intend to type it.</p>
<p>The same is true when pressing <code>Ctrl + Alt + F7</code>.</p>
<p>It does <strong>NOT</strong> matter if your <code>Caps Lock</code> is on or off.</p>
</div>
<div class="c1">
<p>All Linux distributions (unless specially compiled otherwise), use <code>Ctrl + Alt + F1</code> through <code>Ctrl + Alt + F6</code> provide access to 6 full screen command line terminals. These 6 terminals are always available, so it doesn&#8217;t matter which one you access.</p>
<p>In the same way, <code>Ctrl + Alt + F7</code> through <code>Ctrl + Alt + F12</code> provide access to running X Servers. Normally, there is only one and it is found at <code>Ctrl + Alt + F7</code> &#8211; unless you have additional X Servers running, <code>F8</code> through <code>F12</code> will be blank screens.</p>
</div>
<p>You will be required to login with your <u>username</u> and <u>password</u> (as with all command lines, your password is not echoed back to you):</p>
<p><img decoding="async" src="//complete-concrete-concise.com/wp-content/uploads/2013/04/13.04-commandline-5.png" alt="" border="0" class="centered"/></p>
<p>Otherwise, it behaves exactly like any other terminal.</p>
<p>The post <a href="https://complete-concrete-concise.com/ubuntu-2/ubuntu-13-04/ubuntu-13-04-how-to-get-a-command-line-shell-or-terminal/">Ubuntu 13.04 &#8211; How to get a Command Line, Shell, or Terminal</a> appeared first on <a href="https://complete-concrete-concise.com">Complete, Concrete, Concise</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Ubuntu 12.04 &#8211; How to Run a Shell / Command Line / Terminal with root Privilege / Access</title>
		<link>https://complete-concrete-concise.com/ubuntu-2/ubuntu-12-04/ubuntu-12-04-how-to-run-a-shell-command-line-terminal-with-root-privilege-access/</link>
		
		<dc:creator><![CDATA[richardsplanet]]></dc:creator>
		<pubDate>Wed, 13 Mar 2013 12:41:20 +0000</pubDate>
				<category><![CDATA[Ubuntu 12.04]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[root access]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[terminal]]></category>
		<guid isPermaLink="false">http://complete-concrete-concise.com/?p=2668</guid>

					<description><![CDATA[<p>This tutorial is for Ubuntu 12.04. It should be the same for other versions of Ubuntu and (probably) most other Linux distributions, but no guarantee is made./p> Detailed instructions for opening a command line / terminal can be found here. When you open a terminal in Ubuntu, you do not have administrative privileges. This means [&#8230;]</p>
<p>The post <a href="https://complete-concrete-concise.com/ubuntu-2/ubuntu-12-04/ubuntu-12-04-how-to-run-a-shell-command-line-terminal-with-root-privilege-access/">Ubuntu 12.04 &#8211; How to Run a Shell / Command Line / Terminal with root Privilege / Access</a> appeared first on <a href="https://complete-concrete-concise.com">Complete, Concrete, Concise</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div class="c1">
<p>This tutorial is for Ubuntu 12.04.</p>
<p>It should be the same for other versions of Ubuntu and (probably) most other Linux distributions, but no guarantee is made./p></p>
<p>Detailed instructions for opening a command line / terminal can be found <a href="//complete-concrete-concise.com/ubuntu-2/ubuntu-12-04/ubuntu-12-04-how-to-get-a-command-line-shell-or-terminal">here</a>.</p>
</div>
<p>When you open a terminal in Ubuntu, you do not have administrative privileges. This means that there are some operations you cannot perform at the terminal.</p>
<p>Ubuntu provides the <code>sudo</code> command which temporarily grants you administrative privilege. However, you still have to type <code>sudo</code> before each administrative command you want to perform.</p>
<p>If you want to live dangerously and have <u>full root access</u> while at the terminal, enter the following command in the terminal:</p>
<pre><code>sudo bash</code></pre>
<p>After entering your password, you now be running with full root privilege at the command line:</p>
<p><img decoding="async" src="//complete-concrete-concise.com/wp-content/uploads/2013/03/ubuntu-12.04-root-access-in-terminal.png" alt="" border="0" class="centered"/></p>
<div class="c4">
<p><strong>Note:</strong> in order for this to work, you need to be a user who has the right to run <code>sudo</code>. In general, most users of Ubuntu have this right. However, user accounts can be created that do not have this right.</p>
</div>
<h3>How it Works</h3>
<p>Because some commands are potentially dangerous, unless you are <code>root</code> you are not allowed to run them. Using the <code>sudo</code> command temporarily elevates your status to <code>root</code> and allows you to run these commands.</p>
<p>When you run a terminal, it has the same privilege as the current user.</p>
<p>By running <code>sudo bash</code> you start another copy of the <code>bash shell</code>. However, you because you started it with <code>sudo</code> it runs with <code>root</code> privilege.</p>
<div class="c1">
<p>What is commonly called a terminal or command line is, in fact, a shell. There are many types of shells, <code>bash</code> is the default one with Ubuntu.</p>
</div>
<div class="c4">
<p><strong>WARNING:</strong> running as <code>root</code> is a good way to mess up your system if you are not careful because there are no checks in place to prevent you from making catastrophic changes to your system.</p>
<p>I grant that by using the <code>sudo</code> command you can also irretrievably damage your system, but at least you had to type <code>sudo</code> (and possibly a password) before doing anything.</p>
</div>

<p>The post <a href="https://complete-concrete-concise.com/ubuntu-2/ubuntu-12-04/ubuntu-12-04-how-to-run-a-shell-command-line-terminal-with-root-privilege-access/">Ubuntu 12.04 &#8211; How to Run a Shell / Command Line / Terminal with root Privilege / Access</a> appeared first on <a href="https://complete-concrete-concise.com">Complete, Concrete, Concise</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Ubuntu 12.04 &#8211; Basic Command Line Techniques</title>
		<link>https://complete-concrete-concise.com/ubuntu-2/ubuntu-12-04/ubuntu-12-04-basic-command-line-techniques/</link>
		
		<dc:creator><![CDATA[richardsplanet]]></dc:creator>
		<pubDate>Thu, 13 Dec 2012 14:57:21 +0000</pubDate>
				<category><![CDATA[Ubuntu 12.04]]></category>
		<category><![CDATA[basic]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[commands]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[terminal]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[ubuntu 12.04]]></category>
		<guid isPermaLink="false">http://complete-concrete-concise.com/?p=2598</guid>

					<description><![CDATA[<p>This tutorial is for Ubuntu 12.04. It should be the same for every other version of Ubuntu and all other Linux distros, but I make no guarantee. Linux (on which Ubuntu is based) is fundamentally a command line driven operating system. While there are graphical interfaces to many of the available commands, sometimes you need [&#8230;]</p>
<p>The post <a href="https://complete-concrete-concise.com/ubuntu-2/ubuntu-12-04/ubuntu-12-04-basic-command-line-techniques/">Ubuntu 12.04 &#8211; Basic Command Line Techniques</a> appeared first on <a href="https://complete-concrete-concise.com">Complete, Concrete, Concise</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div class="c1">
<p>This tutorial is for Ubuntu 12.04.</p>
<p>It should be the same for every other version of Ubuntu and all other Linux distros, but I make no guarantee.</p>
</div>
<p>Linux (on which Ubuntu is based) is fundamentally a command line driven operating system. While there are graphical interfaces to many of the available commands, sometimes you need (or have no choice) to work at the command line.</p>
<p>There are five fundamental things everyone working at the command line should know (or at least be aware of):</p>
<ol>
<li>man</li>
<li>pipes</li>
<li>redirection</li>
<li>more</li>
<li>ls</li>
</ol>
<h1>man</h1>
<div class="c1">
<p><code>man</code> is short for <u>manual</u></p>
</div>
<p><code>man</code> is the help file.</p>
<p>When you want to know more about a command, you enter <code>man <em>&lt;command name&gt;</em></code> to display information about the command. For example:</p>
<pre><code>man ls</code></pre>
<p>will bring up the <code>man</code> page for the command <code>ls</code>. You could also enter <code>man man</code> to display information about the <code>man</code> command. The <code>man</code> page for <code>ls</code> looks something like this:</p>
<p><a href="//complete-concrete-concise.com/wp-content/uploads/2012/12/basic-command-line-techniques-1-big.png" target="_blank"><img decoding="async" src="//complete-concrete-concise.com/wp-content/uploads/2012/12/basic-command-line-techniques-1-thumb.png" alt="" border="0" class="centered"/></a></p>
<p>To navigate through a <code>man</code> you use the following commands:</p>
<ul>
<li>q &#8211; exit (quit) the man page</li>
<li>SPACE or f &#8211; forward to the next page</li>
<li>b &#8211; backward to the previous page</li>
<li>e &#8211; forward one line</li>
<li>y &#8211; backward one line</li>
</ul>
<div class="c4">
<p>For some reason, there is no <code>man</code> page for the command <code>cd</code>.</p>
</div>
<h1>Pipes</h1>
<p>Pipes allow you to send the displayed output from one command to another command.</p>
<p>In other words, when you enter a command that displays a bunch of information on the terminal (and maybe scrolls past the top of the terminal), you can use a pipe to send that information to another command.</p>
<p>The most common use of pipes is with the <code>more</code> command. This is especially true when information scrolls past the top of the terminal.</p>
<p>The pipe is the vertical bar (or broken bar) symbol: &#8216;<code>|</code>&#8216;.</p>
<p>For example, any of the following commands is likely display information that will scroll past the top of the terminal:</p>
<pre><code>ls /bin
ls /etc
ls /lib</code></pre>
<p>If we pipe the output to the <code>more</code> command, then we can scroll through the output one display page at a time:</p>
<pre><code>ls /etc | more</code></pre>
<p>Another common use of pipes is with the <code>grep</code> command. (<code>grep</code> is often used to filter out unwanted information &#8211; but I won&#8217;t be covering <code>grep</code> here.)</p>
<p>You can pipe together as many commands as you like. The output from the command on the left of the pipe is sent to the command on the right of the pipe.</p>
<h1>Redirection</h1>
<p>Sometimes you need to capture the information displayed by a command. This is done using redirection.</p>
<p>The output displayed by a command can be sent to a file instead of the display.<./p></p>
<p>The redirection operator is the greater than symbol: &#8216;&#038;gt&#8217;.</p>
<p>For example, suppose I want to dump a <code>man</code> page to file, so I can later look at (or print that file). I can do so by redirecting the <code>man</code> output to a file (you choose the name of the file):</p>
<pre><code>man ls > ls.txt</code></pre>
<p>The above command will send the output of the <code>man</code> page for <code>ls</code> to a file called <u>ls.txt</u>. I can then handle <u>ls.txt</u> the same way I handle any text file.</p>
<p>Another example, I could send a directory listing to a file as well:</p>
<pre><code>ls > directory_list</code></pre>
<p>The above command will send the output of <code>ls</code> to a file called <u>directory_list</u>. Again, the file can be handled the same way any other text file is handled.</p>
<p>Redirection always send stores the file in the current directory (normally, this will be your <code>/home/<i>&lt;user&gt;</i></code> directory). You can write the file to another directory by either (1) changing to a different directory (using the <code>cd</code> command), or (2) specifying the path along with the file name. <strong>Note:</strong> you may not have permission to write in other directories, so the operation will fail.</p>
<h1>more</h1>
<p><code>more</code> is used to display information one page at a time.</p>
<p>Most often it is used in conjunction with pipes to prevent output from scrolling off the top of the terminal:</p>
<pre><code>ls | more</code></pre>
<p><code>more</code> can be used to display the contents of a text file:</p>
<pre><code>more <i>&lt;file name&gt;</i></code></pre>
<p>where <i>&lt;file name&gt;</i> is the name of the text file to display.</p>
<p>To navigate through text being displayed by <code>more</code> you use the following commands:</p>
<ul>
<li>q &#8211; exit (quit) <code>more</code></li>
<li>SPACE or f &#8211; forward to the next page</li>
<li>b &#8211; backward to the previous page (does not work if <code>more</code> is displaying text from a pipe)</li>
<div class="c1">
<p>There is a slightly more useful command called <code>less</code> that allows you to scroll forwards and backwards through piped information. Aside from that difference <code>less</code> behaves very much like <code>more</code>.</p>
<p>You can use <code>man less</code> to learn about the <code>less</code> command</p>
</div>
<h1>ls</h1>
<div class="c1">
<p><code>ls</code> is short for <u>list</u></p>
</div>
<p><code>ls</code> is used to display the contents of a directory.</p>
<p><img decoding="async" src="//complete-concrete-concise.com/wp-content/uploads/2012/12/basic-command-line-techniques-2.png" alt="" border="0" class="centered"/></p>
<p>Directory contents are colour coded. Different files have different colours.</p>
<p>The default colours (in the default Ubuntu 12.04 terminal) for common file types are:</p>
<p><img decoding="async" src="//complete-concrete-concise.com/wp-content/uploads/2012/12/basic-command-line-colours.png" alt="" border="0" class="centered"/></p>
<p>There are other colour combinations in use and some colours (notably purple) are reused for other file types.</p>

<p>The post <a href="https://complete-concrete-concise.com/ubuntu-2/ubuntu-12-04/ubuntu-12-04-basic-command-line-techniques/">Ubuntu 12.04 &#8211; Basic Command Line Techniques</a> appeared first on <a href="https://complete-concrete-concise.com">Complete, Concrete, Concise</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Ubuntu 12.10 &#8211; How to get a Command Line, Shell, or Terminal</title>
		<link>https://complete-concrete-concise.com/ubuntu-2/ubuntu-12-10/how-to-get-a-command-line-shell-or-terminal/</link>
		
		<dc:creator><![CDATA[richardsplanet]]></dc:creator>
		<pubDate>Thu, 18 Oct 2012 10:47:49 +0000</pubDate>
				<category><![CDATA[Ubuntu 12.10]]></category>
		<category><![CDATA[access]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[commandline]]></category>
		<category><![CDATA[get how to]]></category>
		<category><![CDATA[open]]></category>
		<category><![CDATA[opening]]></category>
		<category><![CDATA[openning]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[terminal]]></category>
		<category><![CDATA[ubuntu 12.10]]></category>
		<guid isPermaLink="false">http://complete-concrete-concise.com/?p=2369</guid>

					<description><![CDATA[<p>These instructions are for Ubuntu 12.10 using the Unity interface (although, hints are provided at the bottom of the article for those who have installed a different desktop). Linux (of which Ubuntu is a flavour) and it&#8217;s inspiration Unix, have a strong emphasis and tradition of doing everything via typed commands. Often, when searching the [&#8230;]</p>
<p>The post <a href="https://complete-concrete-concise.com/ubuntu-2/ubuntu-12-10/how-to-get-a-command-line-shell-or-terminal/">Ubuntu 12.10 &#8211; How to get a Command Line, Shell, or Terminal</a> appeared first on <a href="https://complete-concrete-concise.com">Complete, Concrete, Concise</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div class="c1">
<p>These instructions are for Ubuntu 12.10 using the Unity interface (although, hints are provided at the bottom of the article for those who have installed a different desktop).</p>
<div class="c2">
<p>Linux (of which Ubuntu is a flavour) and it&#8217;s inspiration Unix, have a strong emphasis and tradition of doing everything via typed commands.</p>
<p>Often, when searching the Internet for a solution to a problem, you often find terse (possibly cryptic) answers along the lines of:</p>
<blockquote>
<p>Test if you can reach Google with <strong>ping -c 4 google.com</strong></p>
</blockquote>
<p>or</p>
<blockquote>
<p>To recursively change your file permissions just: <strong>chmod 755 -R /opt/lampp/htdocs</strong></p>
</blockquote>
<p>In order to run those commands, you have to open a shell or command line or terminal (they are all synonymous, but <u>shell</u> is the preferred term in Linux and Unix circles).</p>
<div class="c3">
<p>There are many different shells, the original Unix shell is called the Bourne Shell (or sh), then came the C Shell (csh) and Korn Shell (ksh). Linux tends to use the Bourne Again Shell (bash). For the most part, they all do the same thing, so you don&#8217;t need to worry about which one you are using.</p>
<p>If you want to know which shell you are using, just enter <u>echo $SHELL</u> at the command line and press <u>Enter</u>.</p>
</div>
</div>
</div>
<div class="c1">
<p><strong>TIP:</strong> If you find a command line solution / trick / tip for a non-Ubuntu Linux distribution, there is a good chance (though not 100% guaranteed) that it might work with Ubuntu.</p>
<p>If you get a <u>Permission denied</u> or <u>Are you root?</u> response when you type in the command, try prefixing the command with <code>sudo</code>. Ubuntu requires administrator level privileges for certain commands. <code>sudo</code> temporarily gives administrator privileges (after you supply your password).</p>
</div>
<h1>Opening a Terminal using a Keyboard Shortcut</h1>
<div class="c2">
<p>This is the default keyboard shortcut for Ubuntu 12.10 (and probably previous Ubuntu releases) running the GNOME / Unity desktop, unless you (or someone else) has changed it, it should work.</p>
<p>This also the default keyboard shortcut if you have changed your desktop environment to GNOME Shell, LXDE, or the Lubuntu Desktop and will work unless you (or someone else) has changed it.</p>
<p>This will <strong><u>NOT</u></strong> work for the XFCE or Xubuntu Desktop unless you (or someone else) has added the keyboard shortcut.</p>
</div>
<p><strong>1) Press</strong> <code>Ctrl + Alt + T</code> to open a terminal / command line / shell.</p>
<div class="c2">
<p><strong>NOTE:</strong> pressing <code>Ctrl + Alt + T</code> means: simultaneously hold down the <code>Ctrl</code> key and <code>Alt</code> key, then press the <code>T</code> key as though you intend to type it.</p>
<p><strong>DO NOT</strong> press the <code>Shift</code> key because <code>Ctrl + Alt + Shift + T</code> is different from <code>Ctrl + Alt + T</code>.</p>
<p>It does <strong>NOT</strong> matter if your <code>Caps Lock</code> is on or off.</p>
</div>
<p>The terminal should look something like this:</p>
<p><img decoding="async" src="//complete-concrete-concise.com/wp-content/uploads/2012/04/ubuntu-12.04-how-to-get-a-commandline-1.png" alt="" border="0" class="centered" /></p>
<h1>Opening a Terminal from Unity</h1>
<p><strong>1) Click</strong> the Dash icon (or use the keyboard shortcut by pressing the <u>Windows</u> key &#8211; don&#8217;t hold it down, just tap it as if you were going to type it):</p>
<p><img decoding="async" src="//complete-concrete-concise.com/wp-content/uploads/2012/04/ubuntu-12.04-how-to-get-a-commandline-2.jpg" width="200" height="227" alt="" border="0" class="centered" /></p>
<p><strong>2) Type</strong> <u>terminal</u> into the entry field:</p>
<p><img decoding="async" src="//complete-concrete-concise.com/wp-content/uploads/2012/04/ubuntu-12.04-how-to-get-a-commandline-3.jpg" width="480" height="283" alt="" border="0" class="centered" /></p>
<p><strong>3) Click</strong> on the <u>terminal</u> icon:</p>
<p><img loading="lazy" decoding="async" src="//complete-concrete-concise.com/wp-content/uploads/2012/04/ubuntu-12.04-how-to-get-a-commandline-4.jpg" width="480" height="283" alt="" border="0" class="centered" /></p>
<div class="c2">
<p>Alternately, you can navigate to the <u>terminal</u> icon by using the arrow keys on your keyboard (if you are using the arrow keys built into your numpad ensure that <code>Num Lock</code> is off) and then pressing the <u>Enter</u> key to select it.</p>
</div>
<h1>Opening a Terminal if You are not Using Unity</h1>
<p>Because there are many different types of desktops available for Linux, it is not possible to list all possible ways to start the terminal. However … the general technique is the same:</p>
<p><strong>1) Open</strong> the <u>Main Menu</u> or <u>Applications Menu</u> (or whatever the main menu for your environment is called).</p>
<p><strong>2)</strong> If you are lucky, there will be a menu entry for a terminal (it might be called <u>Terminal</u> or <u>LXTerminal</u> or something else with <code>terminal</code> in the name.</p>
<p><strong>3)</strong> If you are unlucky, then you will have to look for it in a submenu. It is most likely to be found in a submenu called <u>Accessories</u> or <u>System</u>.</p>
<div class="c2">
<p><strong>NOTE:</strong> You may have more than one terminal application installed or the terminal application may appear in more than one menu location.</p>
</div>
<h1>How to (Almost) Always Get a Command Prompt</h1>
<div class="c1">
<p>This works with pretty much any Linux distribution (unless they have been specially compiled to disable it).</p>
</div>
<p>If you need to access the command line and no terminal application has been installed,  or you can&#8217;t find it, or the GUI has become unresponsive, you can press <code>Ctrl + Alt + F1</code> to switch you to a full screen text terminal / command line. To return to your GUI, press <code>Ctrl + Alt + F7</code>.</p>
<div class="c2">
<p><strong>NOTE:</strong> pressing <code>Ctrl + Alt + F1</code> means: simultaneously hold down the <code>Ctrl</code> key and <code>Alt</code> key, then press the <code>F1</code> key as though you intend to type it.</p>
<p>The same is true when pressing <code>Ctrl + Alt + F7</code>.</p>
<p>It does <strong>NOT</strong> matter if your <code>Caps Lock</code> is on or off.</p>
</div>
<div class="c1">
<p>In all Linux distributions (unless specially compiled otherwise), <code>Ctrl + Alt + F1</code> through <code>Ctrl + Alt + F6</code> provide access to 6 full screen command line terminals. These 6 terminals are always available, so it doesn&#8217;t matter which one you access.</p>
<p>In the same way, <code>Ctrl + Alt + F7</code> through <code>Ctrl + Alt + F12</code> provide access to running X Servers. Normally, there is only one and it is found at <code>Ctrl + Alt + F7</code> &#8211; unless you have enabled additional X Servers to be running <code>F8</code> through <code>F12</code> will be blank screens.</p>
</div>
<p>You will be required to login with your <u>username</u> and <u>password</u> (as with all command lines, your password is not echoed back to you):</p>
<p><img decoding="async" src="//complete-concrete-concise.com/wp-content/uploads/2012/10/ubuntu-12.10-command-prompt.png" alt="" border="0" class="centered"/></p>
<p>Otherwise, it behaves exactly like any other terminal.</p>

<p>The post <a href="https://complete-concrete-concise.com/ubuntu-2/ubuntu-12-10/how-to-get-a-command-line-shell-or-terminal/">Ubuntu 12.10 &#8211; How to get a Command Line, Shell, or Terminal</a> appeared first on <a href="https://complete-concrete-concise.com">Complete, Concrete, Concise</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Ubuntu 12.04 &#8211; How to get a Command Line, Shell, or Terminal</title>
		<link>https://complete-concrete-concise.com/ubuntu-2/ubuntu-12-04/ubuntu-12-04-how-to-get-a-command-line-shell-or-terminal/</link>
		
		<dc:creator><![CDATA[richardsplanet]]></dc:creator>
		<pubDate>Thu, 26 Apr 2012 08:00:00 +0000</pubDate>
				<category><![CDATA[Ubuntu 12.04]]></category>
		<category><![CDATA[access]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[commandline]]></category>
		<category><![CDATA[get]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[open]]></category>
		<category><![CDATA[opening]]></category>
		<category><![CDATA[openning]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[terminal]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[ubuntu 12.04]]></category>
		<guid isPermaLink="false">http://complete-concrete-concise.com/?p=1695</guid>

					<description><![CDATA[<p>These instructions are for Ubuntu 12.04 using the Unity interface (although, hints are provided at the bottom of the article for those who have installed a different desktop). Linux (of which Ubuntu is a flavour) and it&#8217;s inspiration Unix, have a strong emphasis and tradition of doing everything via typed commands. Often, when searching the [&#8230;]</p>
<p>The post <a href="https://complete-concrete-concise.com/ubuntu-2/ubuntu-12-04/ubuntu-12-04-how-to-get-a-command-line-shell-or-terminal/">Ubuntu 12.04 &#8211; How to get a Command Line, Shell, or Terminal</a> appeared first on <a href="https://complete-concrete-concise.com">Complete, Concrete, Concise</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div class="c1">
<p>These instructions are for Ubuntu 12.04 using the Unity interface (although, hints are provided at the bottom of the article for those who have installed a different desktop).</p>
<div class="c2">
<p>Linux (of which Ubuntu is a flavour) and it&#8217;s inspiration Unix, have a strong emphasis and tradition of doing everything via typed commands.</p>
<p>Often, when searching the Internet for a solution to a problem, you often find terse (possibly cryptic) answers along the lines of:</p>
<blockquote><p>Test if you can reach Google with <strong>ping -c 4 google.com</strong></p></blockquote>
<p>or</p>
<blockquote><p>To recursively change your file permissions just: <strong>chmod 755 -R /opt/lampp/htdocs</strong></p></blockquote>
<p>In order to run those commands, you have to open a shell or command line or terminal (they are all synonymous, but <u>shell</u> is the preferred term in Linux and Unix circles).</p>
<div class="c3">
<p>There are many different shells, the original Unix shell is called the Bourne Shell (or sh), then came the C Shell (csh) and Korn Shell (ksh). Linux tends to use the Bourne Again Shell (bash). For the most part, they all do the same thing, so you don&#8217;t need to worry about which one you are using.</p>
<p>If you want to know which shell you are using, just enter <u>echo $SHELL</u> at the command line and press <u>Enter</u>.</p>
</div>
</div>
</div>
<div class="c1">
<p><strong>TIP:</strong> If you find a command line solution / trick / tip for a non-Ubuntu Linux distribution, there is a good chance (though not 100% guaranteed) that it might work with Ubuntu.</p>
<p>If you get a <u>Permission denied</u> or <u>Are you root?</u> response when you type in the command, try prefixing the command with <code>sudo</code>. Ubuntu requires administrator level privileges for certain commands. <code>sudo</code> temporarily gives administrator privileges (after you supply your password).</p>
</div>
<div class="c3">
<p><strong>For more information on using a command line, see this tutorial on <a href="//complete-concrete-concise.com/ubuntu-2/ubuntu-12-04/ubuntu-12-04-basic-command-line-techniques">Basic Command Line Techniques</a>.</strong></p>
</div>
<h1>Opening a Terminal using a Keyboard Shortcut</h1>
<div class="c2">
<p>This is the default keyboard shortcut for Ubuntu 12.04 (and probably previous Ubuntu releases) running the GNOME / Unity desktop, unless you (or someone else) has changed it, it should work.</p>
<p>This also the default keyboard shortcut if you have changed your desktop environment to GNOME Shell, LXDE, or the Lubuntu Desktop and will work unless you (or someone else) has changed it.</p>
<p>This will <strong><u>NOT</u></strong> work for the XFCE or Xubuntu Desktop unless you (or someone else) has added the keyboard shortcut.</p>
</div>
<p><strong>1) Press</strong> <code>Ctrl + Alt + T</code> to open a terminal / command line / shell.</p>
<div class="c2">
<p><strong>NOTE:</strong> pressing <code>Ctrl + Alt + T</code> means: simultaneously hold down the <code>Ctrl</code> key and <code>Alt</code> key, then press the <code>T</code> key as though you intend to type it.</p>
<p><strong>DO NOT</strong> press the <code>Shift</code> key because <code>Ctrl + Alt + Shift + T</code> is different from <code>Ctrl + Alt + T</code>.</p>
<p>It does <strong>NOT</strong> matter if your <code>Caps Lock</code> is on or off.</p>
</div>
<p>The terminal should look something like this:</p>
<p><img decoding="async" src="//complete-concrete-concise.com/wp-content/uploads/2012/04/ubuntu-12.04-how-to-get-a-commandline-1.png" alt="" border="0" class="centered" /></p>
<h1>Opening a Terminal from Unity</h1>
<p><strong>1) Click</strong> the Dash icon (or use the keyboard shortcut by pressing the <u>Windows</u> key &#8211; don&#8217;t hold it down, just tap it as if you were going to type it):</p>
<p><img loading="lazy" decoding="async" src="//complete-concrete-concise.com/wp-content/uploads/2012/04/ubuntu-12.04-how-to-get-a-commandline-2.jpg" width="200" height="227" alt="" border="0" class="centered" /></p>
<p><strong>2) Type</strong> <u>terminal</u> into the entry field:</p>
<p><img loading="lazy" decoding="async" src="//complete-concrete-concise.com/wp-content/uploads/2012/04/ubuntu-12.04-how-to-get-a-commandline-3.jpg" width="480" height="283" alt="" border="0" class="centered" /></p>
<p><strong>3) Click</strong> on the <u>terminal</u> icon:</p>
<p><img loading="lazy" decoding="async" src="//complete-concrete-concise.com/wp-content/uploads/2012/04/ubuntu-12.04-how-to-get-a-commandline-4.jpg" width="480" height="283" alt="" border="0" class="centered" /></p>
<div class="c2">
<p>Alternately, you can navigate to the <u>terminal</u> icon by using the arrow keys on your keyboard (if you are using the arrow keys built into your numpad ensure that <code>Num Lock</code> is off) and then pressing the <u>Enter</u> key to select it.</p>
</div>
<h1>Opening a Terminal if You are not Using Unity</h1>
<p>Because there are many different types of desktops available for Linux, it is not possible to list all possible ways to start the terminal. However … the general technique is the same:</p>
<p><strong>1) Open</strong> the <u>Main Menu</u> or <u>Applications Menu</u> (or whatever the main menu for your environment is called).</p>
<p><strong>2)</strong> If you are lucky, there will be a menu entry for a terminal (it might be called <u>Terminal</u> or <u>LXTerminal</u> or something else with <code>terminal</code> in the name.</p>
<p><strong>3)</strong> If you are unlucky, then you will have to look for it in a submenu. It is most likely to be found in a submenu called <u>Accessories</u> or <u>System</u>.</p>
<div class="c2">
<p><strong>NOTE:</strong> You may have more than one terminal application installed or the terminal application may appear in more than one menu location.</p>
</div>

<p>The post <a href="https://complete-concrete-concise.com/ubuntu-2/ubuntu-12-04/ubuntu-12-04-how-to-get-a-command-line-shell-or-terminal/">Ubuntu 12.04 &#8211; How to get a Command Line, Shell, or Terminal</a> appeared first on <a href="https://complete-concrete-concise.com">Complete, Concrete, Concise</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Ubuntu 11.10 &#8211; How to get a Command Line, Shell, or Terminal</title>
		<link>https://complete-concrete-concise.com/ubuntu-2/ubuntu-11-10-how-to-get-a-command-line-shell-or-terminal/</link>
					<comments>https://complete-concrete-concise.com/ubuntu-2/ubuntu-11-10-how-to-get-a-command-line-shell-or-terminal/#comments</comments>
		
		<dc:creator><![CDATA[richardsplanet]]></dc:creator>
		<pubDate>Wed, 09 Nov 2011 19:34:07 +0000</pubDate>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Ubuntu 11.10]]></category>
		<category><![CDATA[11.10]]></category>
		<category><![CDATA[access]]></category>
		<category><![CDATA[get]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[open]]></category>
		<category><![CDATA[opening]]></category>
		<category><![CDATA[terminal]]></category>
		<category><![CDATA[ubuntu]]></category>
		<guid isPermaLink="false">http://complete-concrete-concise.com/ubuntu-2/ubuntu-11-10-how-to-get-a-command-line-shell-or-terminal</guid>

					<description><![CDATA[<p>This article was updated for Ubuntu 12.04. The new article can be found here. These instructions are for Ubuntu 11.10 using the Unity interface. Linux (of which Ubuntu is a flavour) and it&#8217;s inspiration Unix, have a strong emphasis and tradition of doing everything via typed commands. Often, when searching the Internet for a solution [&#8230;]</p>
<p>The post <a href="https://complete-concrete-concise.com/ubuntu-2/ubuntu-11-10-how-to-get-a-command-line-shell-or-terminal/">Ubuntu 11.10 &#8211; How to get a Command Line, Shell, or Terminal</a> appeared first on <a href="https://complete-concrete-concise.com">Complete, Concrete, Concise</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div class="c4">
<p>This article was updated for Ubuntu 12.04. The new article can be found <a href="//complete-concrete-concise.com/ubuntu-2/ubuntu-12-04/ubuntu-12-04-how-to-get-a-command-line-shell-or-terminal">here</a>.</div>
<div class="c1">
<p>These instructions are for Ubuntu 11.10 using the Unity interface.
</p>
<div class="c2">
<p>Linux (of which Ubuntu is a flavour) and it&#8217;s inspiration Unix, have a strong emphasis and tradition of doing everything via typed commands.</p>
<p>Often, when searching the Internet for a solution to a problem, you often find terse (possibly cryptic) answers along the lines of:</p>
<blockquote><p>Test if you can reach Google with <code>ping -c 4 google.com</code></p></blockquote>
<p>or</p>
<blockquote><p>To recursively change your file permissions just: <code>chmod 755 -R /opt/lampp/htdocs</code></p></blockquote>
<p>In order to run those commands, you have to open a shell or command line or terminal (they are all synonymous, but <u>shell</u> is the preferred term in Linux and Unix circles).</p>
<div class="c3">
<p>There are many different shells, the original Unix shell is called the Bourne Shell (or <code>sh</code>), then came the C Shell (<code>csh</code>) and Korn Shell (<code>ksh</code>). Linux tends to use the Bourne Again Shell (<code>bash</code>). For the most part, they all do the same thing, so you don&#8217;t need to worry about which one you are using.</p>
<p>If you want to know which shell you are using, just enter <code>echo $SHELL</code> and press Enter.</p>
</div>
</div>
</div>
<div class="c1">
<p><strong>TIP:</strong> If you find a command line solution / trick / tip for a non-Ubuntu Linux distribution, there is a good chance (though not 100% guaranteed) that it might work with Ubuntu.</p>
<p>If you get a <code>Permission denied</code> or <code>Are you root?</code> response when you type in the command, try prefixing the command with <code>sudo</code>. Ubuntu requires administrator level privileges for certain commands. <code>sudo</code> temporarily gives administrator privileges (after you supply your password).</p>
</div>
<h1>Opening a Terminal using a Keyboard Shortcut</h1>
<div class="c2">
<p>This is the default keyboard shortcut for Ubuntu 11.10 (and probably previous Ubuntu releases) running the GNOME / Unity desktop, unless you (or someone else) has changed it, it should work.</p>
<p>This also the default keyboard shortcut if you have changed your desktop environment to GNOME Shell, LXDE, or the Lubuntu Desktop and will work unless you (or someone else) has changed it.</p>
<p>This will <strong>NOT</strong> work for the XFCE or Xubuntu Desktop unless you (or someone else) has added the keyboard shortcut.</p>
</div>
<p>You can access the terminal by using the keyboard shortcut: <code>ctrl + alt + T</code> (while pressing down the <code>ctrl</code> and <code>alt</code> key at the same time, press the <code>T</code> key as if you were going to type the letter T, there is no need to hold it down).</p>
<h1>Opening a Terminal from Unity</h1>
<p><strong>1) Click</strong> on the Dash icon (or use the keyboard shortcut by pressing the Windows key):</p>
<p><img loading="lazy" decoding="async" src="//complete-concrete-concise.com/wp-content/uploads/2011/11/ubuntu-11.10-apt-get-install-1.jpg" width="132" height="370" alt="" border="0" class="centered"/></p>
<p><strong>2) Type</strong> terminal into the entry field:</p>
<p><img loading="lazy" decoding="async" src="//complete-concrete-concise.com/wp-content/uploads/2011/11/ubuntu-11.10-apt-get-install-2.jpg" width="480" height="324" alt="" border="0" class="centered"/></p>
<p><strong>3) Click</strong> on the terminal icon:</p>
<p><img loading="lazy" decoding="async" src="//complete-concrete-concise.com/wp-content/uploads/2011/11/ubuntu-11.10-apt-get-install-3.jpg" width="480" height="324" alt="" border="0" class="centered"/></p>
<h1>Opening a Terminal if You are not Using Unity</h1>
<p>Because there are many different types of desktops available for Linux, it is not possible to list all possible ways to start the terminal. However &#8230; the general technique is the same:</p>
<p><strong>1) Open</strong> the <u>Main Menu</u> or <u>Applications Menu</u> (or whatever the main menu for your environment is called).</p>
<p><strong>2)</strong> If you are lucky, there will be a menu entry for a terminal (it might be called <u>Terminal</u> or <u>LXTerminal</u> or something else with <code>terminal</code> in the name.</p>
<p><strong>3)</strong> If you are unlucky, then you will have to look for it in a submenu. It is most likely to be found in either the submenu <u>Accessories</u> or <u>System</u></p>
<div class="c2">
<p><strong>NOTE:</strong> You may have more than one terminal application installed or the terminal application may appear in more than one menu location.</p>
</div>

<p>The post <a href="https://complete-concrete-concise.com/ubuntu-2/ubuntu-11-10-how-to-get-a-command-line-shell-or-terminal/">Ubuntu 11.10 &#8211; How to get a Command Line, Shell, or Terminal</a> appeared first on <a href="https://complete-concrete-concise.com">Complete, Concrete, Concise</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://complete-concrete-concise.com/ubuntu-2/ubuntu-11-10-how-to-get-a-command-line-shell-or-terminal/feed/</wfw:commentRss>
			<slash:comments>26</slash:comments>
		
		
			</item>
	</channel>
</rss>
