 
    
<?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>pico Archives - Complete, Concrete, Concise</title>
	<atom:link href="https://complete-concrete-concise.com/tag/pico/feed/" rel="self" type="application/rss+xml" />
	<link>https://complete-concrete-concise.com/tag/pico/</link>
	<description>Practical Information Without The Bloat</description>
	<lastBuildDate>Wed, 01 May 2013 03:12:06 +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>Ubuntu 13.04 &#8211; Command Line Basics: Editing Files</title>
		<link>https://complete-concrete-concise.com/ubuntu-2/ubuntu-13-04/ubuntu-13-04-command-line-basics-editing-files/</link>
		
		<dc:creator><![CDATA[richardsplanet]]></dc:creator>
		<pubDate>Wed, 01 May 2013 03:12:06 +0000</pubDate>
				<category><![CDATA[Ubuntu 13.04]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[edit files]]></category>
		<category><![CDATA[gedit]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[nano]]></category>
		<category><![CDATA[pico]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[ubuntu 13.04]]></category>
		<guid isPermaLink="false">http://complete-concrete-concise.com/?p=2926</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-command-line-basics-editing-files/">Ubuntu 13.04 &#8211; Command Line Basics: Editing Files</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>.</div>
<p>When you work at the command line, from time to time, it may be necessary to edit files.</p>
<p>You can use an editor like <code>gedit</code> (the GUI based editor that comes with Ubuntu), however, by default, it will not permit you to edit system configuration files (which are likely the files you are trying to edit if you happen to be at the command line).</p>
<h1>Starting gedit with Administrator Privileges</h1>
<p>Enter the following command to start <code>gedit</code> with administrator privileges:</p>
<pre><code>sudo gedit</code></pre>
<div class="c3">
<p><strong>Note:</strong> when you type your password, nothing will happen on the screen. This is normal. As a security feature, Linux does not echo back any indication of the characters you are typing in.</p>
<p>You should only be prompted to enter a password if you have not used the <code>sudo</code> command in the last 15 minutes or so.</p>
</div>
<p>You can also append the file you wish to open to the command. This will cause <code>gedit</code> to automatically open the file. For example:</p>
<pre><code>sudo gedit history.log</code></pre>
<div class="c3">
<p><strong>Note:</strong> this will only work if the file is in the current directory. However, if you are at the command line, then you probably have navigated to the directory in question.</p>
</div>
<h1>Editing with nano</h1>
<p>Sometimes, you cannot use <code>gedit</code> because you have no graphical interface (GUI) &#8211; for example, you need to edit some x-server settings because you can&#8217;t get a graphical display, so you are exclusively at a command line.</p>
<p>While <code>vi</code> or one of its clones (<code>vim</code>, <code>elvis</code>, <code>nvi</code>, and <code>vile</code> to name some) tend to be the preferred text editor among Unix / Linux geeks &#8211; it is not the friendliest for casual (or one-off) users. The other major editor is <code>emacs</code>, but it is not installed by default in Ubuntu and it is not user friendly either.</p>
<p><code>nano</code> is a clone of the <code>pico</code> editor.</p>
<p>To launch <code>nano</code> enter the command:</p>
<pre><code>sudo nano</code></pre>
<div class="c3">
<p><strong>Note:</strong> It will also launch if you type in <code>pico</code></p>
<p>As with <code>gedit</code> you can append the name of the file you want to edit to the command.</p>
</div>
<h1>Using nano</h1>
<p><code>nano</code> is a simple editor that allows you to navigate through the text using the arrow keys on your keyboard.</p>
<p><a href="//complete-concrete-concise.com/wp-content/uploads/2013/03/ubuntu-12.04-command-line-basics-1.png" target="_blank"><img decoding="async" src="//complete-concrete-concise.com/wp-content/uploads/2013/03/ubuntu-12.04-command-line-basics-1-thumb.png" alt="" border="0" class="centered" /></a></p>
<p>At the bottom of the screen, there are two lines (highlighted in blue) that display a number of common commands.</p>
<p>The caret (<code>^</code>) symbol means <code>Ctrl</code>, as in, <code>Ctrl + X</code>. This means, <em>&#8220;while holding down the <code>Ctrl</code> key, you press the other key as though you intend to type it&#8221;</em>.</p>
<div class="c2">
<p><strong>DO NOT</strong> press the Shift key because <code>Ctrl + Shift + X</code> is different from <code>Ctrl + X</code>.</p>
<p>It does <strong>NOT</strong> matter if your Caps Lock is on or off.</p>
</div>
<p>The most common commands you are likely to use are:</p>
<ul>
<li><code>^X</code> &#8211; (<code>Ctrl + X</code>) exit the editor</li>
<li><code>^O</code> &#8211; (<code>Ctrl + O</code>) save / write the contents of the editor</li>
<li><code>^R</code> &#8211; (<code>Ctrl + R</code>) open / read another file</li>
</ul>
<p>If you decide to browse through the help (<code>Ctrl + G</code>), then be aware of the following:</p>
<ul>
<li><code>^^</code> means <code>Ctrl + ^</code> not <code>Ctrl + Ctrl</code></li>
<li><code>M-</code> means the <code>Alt</code> key. The <code>Alt</code> key is used the same way the <code>Ctrl</code> key is: it is held down while another key is typed. For example: <code>M-\</code> means: <em>while holding down the </em><code>Alt</code><em> key, press the <code>\</code> key as though you intend to type it.</em></li>
<li>Some commands have parentheses around them, the parentheses are not to be typed. For example, <code>(M-X)</code> simply means <code>Alt + X</code> &#8211; the parentheses have nothing to do with it and should be ignored.</li>
</ul>

<p>The post <a href="https://complete-concrete-concise.com/ubuntu-2/ubuntu-13-04/ubuntu-13-04-command-line-basics-editing-files/">Ubuntu 13.04 &#8211; Command Line Basics: Editing Files</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; Command Line Basics: Editing Files</title>
		<link>https://complete-concrete-concise.com/ubuntu-2/ubuntu-12-04/ubuntu-12-04-command-line-basics-editing-files/</link>
		
		<dc:creator><![CDATA[richardsplanet]]></dc:creator>
		<pubDate>Tue, 12 Mar 2013 18:06:57 +0000</pubDate>
				<category><![CDATA[Ubuntu 12.04]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[edit files]]></category>
		<category><![CDATA[gedit]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[nano]]></category>
		<category><![CDATA[pico]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[ubuntu 12.04]]></category>
		<guid isPermaLink="false">http://complete-concrete-concise.com/?p=2654</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. Detailed instructions for opening a command line / terminal can be found here. When you work at the command line, from time to time, it may be necessary [&#8230;]</p>
<p>The post <a href="https://complete-concrete-concise.com/ubuntu-2/ubuntu-12-04/ubuntu-12-04-command-line-basics-editing-files/">Ubuntu 12.04 &#8211; Command Line Basics: Editing Files</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>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>.</div>
<p>When you work at the command line, from time to time, it may be necessary to edit files.</p>
<p>Normally, you can use an editor like <code>gedit</code> (the GUI based editor that comes with Ubuntu), however, by default, it will not permit you to edit system configuration files (which are likely the files you are trying to edit if you happen to be at the command line).</p>
<h1>Starting gedit with Administrator Privileges</h1>
<p>Enter the following command to start <code>gedit</code> with administrator privileges:</p>
<pre><code>sudo gedit</code></pre>
<div class="c3">
<p><strong>Note:</strong> when you type your password, nothing will happen on the screen. This is normal. As a security feature, Linux does not echo back any indication of the characters you are typing in.</p>
<p>You should only be prompted to enter a password if you have not used the <code>sudo</code> command in the last 15 minutes or so.</p>
</div>
<p>You can also append the file you wish to open to the command. This will cause <code>gedit</code> to automatically open the file. For example:</p>
<pre><code>sudo gedit history.log</code></pre>
<div class="c3">
<p><strong>Note:</strong> this will only work if the file is in the current directory. However, if you are at the command line, then you probably have navigated to the directory in question.</p>
</div>
<h1>Editing with nano</h1>
<p>Sometimes, you cannot use <code>gedit</code> because you have no graphical interface (GUI) &#8211; for example, you need to edit some x-server settings because you can&#8217;t get a graphical display, so you are exclusively at a command line.</p>
<p>While <code>vi</code> or one of its clones (<code>vim</code>, <code>elvis</code>, <code>nvi</code>, and <code>vile</code> to name some) tend to be the preferred text editor among Unix / Linux geeks &#8211; it is not the friendliest for casual (or one-off) users. The other major editor is <code>emacs</code>, but it is not installed by default in Ubuntu and it is not user friendly either.</p>
<p><code>nano</code> is a clone of the <code>pico</code> editor.</p>
<p>To launch <code>nano</code> enter the command:</p>
<pre><code>sudo nano</code></pre>
<div class="c3">
<p><strong>Note:</strong> It will also launch if you type in <code>pico</code></p>
<p>As with <code>gedit</code> you can append the name of the file you want to edit to the command.</p>
</div>
<h1>Using nano</h1>
<p><code>nano</code> is a simple editor that allows you to navigate through the text using the arrow keys on your keyboard.</p>
<p><a href="//complete-concrete-concise.com/wp-content/uploads/2013/03/ubuntu-12.04-command-line-basics-1.png" target="_blank"><img decoding="async" src="//complete-concrete-concise.com/wp-content/uploads/2013/03/ubuntu-12.04-command-line-basics-1-thumb.png" alt="" border="0" class="centered"/></a></p>
<p>At the bottom of the screen, there are two lines (highlighted in blue) that display a number of common commands.</p>
<p>The caret (<code>^</code>) symbol means <code>Ctrl</code>, as in, <code>Ctrl + X</code>. This means that while holding down the <code>Ctrl</code> key, you press the other key as though you intend to type it.</p>
<div class="c2">
<p><strong>DO NOT</strong> press the Shift key because <code>Ctrl + Shift + X</code> is different from <code>Ctrl + X</code>.</p>
<p>It does <strong>NOT</strong> matter if your Caps Lock is on or off.</p>
</div>
<p>The most common commands you are likely to use are:</p>
<ul>
<li><code>^X</code> &#8211; (<code>Ctrl + X</code>) exit the editor</li>
<li><code>^O</code> &#8211; (<code>Ctrl + O</code>) save / write the contents of the editor</li>
<li><code>^R</code> &#8211; (<code>Ctrl + R</code>) open / read another file</li>
</ul>
<p>If you decide to browse through the help (<code>Ctrl + G</code>), then be aware of the following:</p>
<ul>
<li><code>^^</code> means <code>Ctrl + ^</code> not <code>Ctrl + Ctrl</code></li>
<li><code>M-</code> means the <code>Alt</code> key. The <code>Alt</code> key is used the same way the <code>Ctrl</code> key is: it is held down while another key is typed. For example: <code>M-\</code> means: while holding down the <code>Alt</code> key, press the <code>\</code> key as though you intend to type it.</li>
<li>Some commands have parentheses around them, the parentheses are not to be typed. For example, <code>(M-X)</code> simply means <code>Alt + X</code> &#8211; the parentheses have nothing to do with it and should be ignored.</li>
</ul>

<p>The post <a href="https://complete-concrete-concise.com/ubuntu-2/ubuntu-12-04/ubuntu-12-04-command-line-basics-editing-files/">Ubuntu 12.04 &#8211; Command Line Basics: Editing Files</a> appeared first on <a href="https://complete-concrete-concise.com">Complete, Concrete, Concise</a>.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
