 
    
<?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>nano Archives - Complete, Concrete, Concise</title>
	<atom:link href="https://complete-concrete-concise.com/tag/nano/feed/" rel="self" type="application/rss+xml" />
	<link>https://complete-concrete-concise.com/tag/nano/</link>
	<description>Practical Information Without The Bloat</description>
	<lastBuildDate>Wed, 01 May 2013 10:32:28 +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; How to Change the Timout Period for sudo</title>
		<link>https://complete-concrete-concise.com/ubuntu-2/ubuntu-13-04/ubuntu-13-04-how-to-change-the-timout-period-for-sudo/</link>
		
		<dc:creator><![CDATA[richardsplanet]]></dc:creator>
		<pubDate>Wed, 01 May 2013 10:32:28 +0000</pubDate>
				<category><![CDATA[Ubuntu 13.04]]></category>
		<category><![CDATA[change]]></category>
		<category><![CDATA[nano]]></category>
		<category><![CDATA[sudo]]></category>
		<category><![CDATA[timeout]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[ubuntu 13.04]]></category>
		<category><![CDATA[visudo]]></category>
		<guid isPermaLink="false">http://complete-concrete-concise.com/?p=2930</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-change-the-timout-period-for-sudo/">Ubuntu 13.04 &#8211; How to Change the Timout Period for sudo</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>By default, <code>sudo</code> temporarily grants administrative privileges for 15 minutes. This means the first time you run <code>sudo</code> you will be prompted for your password. Then, for the next 15 minutes, you can run <code>sudo &lt;command&gt;</code> without having to re-enter your password.</p>
<p>This should be fine for most users because the average user probably rarely drops to a command line to run an administrative command or two.</p>
<p><strong>1) Open</strong> a terminal using <code>Ctrl + Alt + T</code>:</p>
<p><img decoding="async" src="//complete-concrete-concise.com/wp-content/uploads/2013/03/ubuntu-12.04-change-sudo-timeout-1.png" alt="" border="0" class="centered" /></p>
<p><strong>2) Enter</strong> the following command:</p>
<pre><code>sudo visudo</code></code></pre>
<p><img decoding="async" src="//complete-concrete-concise.com/wp-content/uploads/2013/03/ubuntu-12.04-change-sudo-timeout-2.png" alt="" border="0" class="centered" /></p>
<p><strong>3) Enter</strong> your password:</p>
<p><img decoding="async" src="//complete-concrete-concise.com/wp-content/uploads/2013/03/ubuntu-12.04-change-sudo-timeout-3.png" alt="" border="0" class="centered" /></p>
<div class="c1">
<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>
</div>
<p>This will bring up the <code>sudo</code> configuration file in the <code>nano</code> editor. <span class="i1"><strong>Note:</strong> in other versions of Linux (or if Ubuntu has been modified), the configuration file may be opened with a different editor &#8211; in which case, you will need to Google for instructions on using that editor.</span></p>
<p><a href="//complete-concrete-concise.com/wp-content/uploads/2013/03/ubuntu-12.04-change-sudo-timeout-4-big.png" target="_blank"><img decoding="async" src="//complete-concrete-concise.com/wp-content/uploads/2013/03/ubuntu-12.04-change-sudo-timeout-4-thumb.png" alt="" border="0" class="centered" /></a></p>
<div class="c1">
<p>The command <code>visudo</code> does more than just open the <code>sudo</code> configuration file with the <code>nano</code> editor. It also <u>checks</u> to ensure the configuration file is correct (i.e. it will not let you edit the file and make it invalid). <strong>Note:</strong> you can still edit the file, so <code>sudo</code> becomes unusable, but the configuration file is (technically speaking) valid.</p>
</div>
<p><strong>4) Locate</strong> the line <code>Defaults</code> (highlighted in <span class="i4">yellow</span>) and navigate to the end of it using the arrow / cursor keys on your keyboard (your mouse will not work). <strong>Add</strong> the following:</p>
<pre><code>,timestamp_timeout=0</code></pre>
<p><a href="//complete-concrete-concise.com/wp-content/uploads/2013/03/ubuntu-12.04-change-sudo-timeout-5-big.png" target="_blank"><img decoding="async" src="//complete-concrete-concise.com/wp-content/uploads/2013/03/ubuntu-12.04-change-sudo-timeout-5-thumb.png" alt="" border="0" class="centered" /></a></p>
<div class="c1">
<p>The number tells <code>sudo</code> for many minutes it should grant administrator privileges in this session.</p>
<p>A value of 0 tells <code>sudo</code> to <u>always</u> prompt for a password. Personally, this is the only setting that makes sense for me because if you are momentarily away from your computer, no one else can accidentally (or intentionally) run an administrative command while your <code>sudo</code> privilege is still active.</p>
<p>A positive number tells <code>sudo</code> to grant administrative privileges that that number of minutes. The number must be a whole number: 5, 15, 42, etc. Number like 3.1415 are not valid.</p>
<p>A negative number tells <code>sudo</code> to permanently grant administrative privileges during that session. The only use I see for this is if you want to have to type <code>sudo</code> before administrative commands, but not have to enter the password for subsequent commands.</p>
</div>
<p><strong>5) Save</strong> your changes by pressing <code>Ctrl + O</code>:</p>
<p><a href="//complete-concrete-concise.com/wp-content/uploads/2013/03/ubuntu-12.04-change-sudo-timeout-6-big.png" target="_blank"><img decoding="async" src="//complete-concrete-concise.com/wp-content/uploads/2013/03/ubuntu-12.04-change-sudo-timeout-6-thumb.png" alt="" border="0" class="centered" /></a></p>
<p>You will be prompted to save the file as <code>/etc/sudoers.tmp</code>.</p>
<p><strong>6) Press</strong> <u>Enter</u> to write the changes.</p>
<p><strong>7) Observe</strong> that the changes were written:</p>
<p><a href="//complete-concrete-concise.com/wp-content/uploads/2013/03/ubuntu-12.04-change-sudo-timeout-7-big.png" target="_blank"><img decoding="async" src="//complete-concrete-concise.com/wp-content/uploads/2013/03/ubuntu-12.04-change-sudo-timeout-7-thumb.png" alt="" border="0" class="centered" /></a></p>
<p><strong>8) Exit</strong> <code>visudo</code> by <strong>pressing</strong> <code>Ctrl + X</code>.</p>
<p>Starting a new command line session should pick up the changes you just made.</p>

<p>The post <a href="https://complete-concrete-concise.com/ubuntu-2/ubuntu-13-04/ubuntu-13-04-how-to-change-the-timout-period-for-sudo/">Ubuntu 13.04 &#8211; How to Change the Timout Period for sudo</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; 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>
