<?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>wiki // nixi</title>
	<atom:link href="http://www.wikinixi.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.wikinixi.com</link>
	<description>Linux / Unix / Mac OS X command line tips</description>
	<lastBuildDate>Sun, 13 May 2012 13:49:16 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Ubuntu &#8211; Install packages from CD-ROM</title>
		<link>http://www.wikinixi.com/2012/05/ubuntu-install-packages-from-cd-rom/</link>
		<comments>http://www.wikinixi.com/2012/05/ubuntu-install-packages-from-cd-rom/#comments</comments>
		<pubDate>Sat, 12 May 2012 16:34:24 +0000</pubDate>
		<dc:creator>Harvey</dc:creator>
				<category><![CDATA[Linux / Unix]]></category>
		<category><![CDATA[apt]]></category>
		<category><![CDATA[cd-rom]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[package]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.wikinixi.com/?p=221</guid>
		<description><![CDATA[If you ever find your self needing to install packages on your ubuntu server but do not have an internet connection you can install packages directly from the installation CD. Take in to consideration the fact that the packages will only ever be up to date as the day the CD was released but it [...]]]></description>
			<content:encoded><![CDATA[<p>If you ever find your self needing to install packages on your ubuntu server but do not have an internet connection you can install packages directly from the installation CD. Take in to consideration the fact that the packages will only ever be up to date as the day the CD was released but it could certainly save the day.</p>
<p>There are three simple steps to get a package installed, for example to install &#8216;build-essentials&#8217; you would:-</p>
<pre class="brush: bash; title: ; notranslate">apt-cdrom add
apt-get update
apt-get install build-essential</pre>
<p>The first line tells apt to use the cd-rom as a source. Line two updates the source listings making all the packages on the cd-rom available. The third will install it as normal.</p>
<p>Once you have finished installing the packages you need or no longer require the the cd-rom as a source if you now have internet access you can remove it by:-</p>
<p>vim /etc/apt/sources</p>
<p>Then remove any lines that contain &#8216;cd-rom&#8217;, save the file and then do an apt-get update.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.wikinixi.com/2012/05/ubuntu-install-packages-from-cd-rom/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install SSH key in one line to remote server</title>
		<link>http://www.wikinixi.com/2012/05/install-ssh-key-in-one-line-to-remote-server/</link>
		<comments>http://www.wikinixi.com/2012/05/install-ssh-key-in-one-line-to-remote-server/#comments</comments>
		<pubDate>Sat, 12 May 2012 14:22:41 +0000</pubDate>
		<dc:creator>Harvey</dc:creator>
				<category><![CDATA[Linux / Unix]]></category>
		<category><![CDATA[Quick Tip]]></category>
		<category><![CDATA[key]]></category>
		<category><![CDATA[oneliner]]></category>
		<category><![CDATA[public]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://www.wikinixi.com/?p=197</guid>
		<description><![CDATA[I quite often create new linux based servers and always secure SSH using key based authentication. Using the quick tip below you can install your public key on the remote server in one line and set secure permissions on the file. Once you have run this line the next time you attempt to login (as [...]]]></description>
			<content:encoded><![CDATA[<p>I quite often create new linux based servers and always secure SSH using key based authentication. Using the quick tip below you can install your public key on the remote server in one line and set secure permissions on the file.</p>
<pre class="brush: bash; title: ; notranslate">cat .ssh/your_key.pub | ssh user@server &quot;cat - &gt;&gt; ~/.ssh/authorized_keys; chmod 700 ~/.ssh; chmod 600 ~/.ssh/authorized_keys&quot;</pre>
<p>Once you have run this line the next time you attempt to login (as long as your key has been loaded in to the ssh-agent) you will no longer be required to type your password.</p>
<p>In a future post I will be talking about further ways to secure your SSH server.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.wikinixi.com/2012/05/install-ssh-key-in-one-line-to-remote-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Site IPv6 Ready</title>
		<link>http://www.wikinixi.com/2012/05/site-ipv6-ready/</link>
		<comments>http://www.wikinixi.com/2012/05/site-ipv6-ready/#comments</comments>
		<pubDate>Fri, 11 May 2012 15:43:54 +0000</pubDate>
		<dc:creator>Harvey</dc:creator>
				<category><![CDATA[wikinixi news]]></category>

		<guid isPermaLink="false">http://www.wikinixi.com/?p=185</guid>
		<description><![CDATA[A quick note to mention that the wikinixi.com site is fully IPv6 ready. Visiting www.wikinixi.com will work with IPv4 and IPv6 addresses. To force an IPv6 connection use ipv6.wikinixi.com More details are available here:- To test any website, use the great tools from ipv6-test.com]]></description>
			<content:encoded><![CDATA[<p>A quick note to mention that the wikinixi.com site is fully IPv6 ready. Visiting <a title="www.wikinixi.com" href="http://www.wikinixi.com" target="_blank">www.wikinixi.com</a> will work with IPv4 and IPv6 addresses. To force an IPv6 connection use <a title="ipv6.wikinixi.com" href="http://ipv6.wikinixi.com" target="_blank">ipv6.wikinixi.com</a></p>
<p><span id="more-185"></span></p>
<p>More details are available here:-</p>
<p><!-- IPv6-test.com button BEGIN --><br />
<a href="http://ipv6-test.com/validate.php?url=referer"><img class="aligncenter" title="ipv6 ready" src="http://ipv6-test.com/button-ipv6-big.png" alt="ipv6 ready" border="0" /></a></p>
<p>To test any website, use the great tools from <a title="ipv6-test.com" href="http://ipv6-test.com" target="_blank">ipv6-test.com</a> <!-- IPv6-test.com button END --></p>
]]></content:encoded>
			<wfw:commentRss>http://www.wikinixi.com/2012/05/site-ipv6-ready/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Quick tip: Monitor Logs Live</title>
		<link>http://www.wikinixi.com/2011/12/quick-tip-monitor-logs-live/</link>
		<comments>http://www.wikinixi.com/2011/12/quick-tip-monitor-logs-live/#comments</comments>
		<pubDate>Mon, 26 Dec 2011 18:34:38 +0000</pubDate>
		<dc:creator>Harvey</dc:creator>
				<category><![CDATA[Linux / Unix]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Quick Tip]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[logs]]></category>
		<category><![CDATA[monitor]]></category>

		<guid isPermaLink="false">http://www.wikinixi.com/?p=174</guid>
		<description><![CDATA[There are times you want to monitor log files and immediately see new entries as it is updated. This is easily achieved using &#8216;tail&#8217;. tail is used to display the end of a file and by default shows the last 10 lines of a file using:- This will however not update as new entries are added to [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><img class="aligncenter size-full wp-image-182" title="Using 'tail'" src="http://www.wikinixi.com/wp-content/uploads/2011/12/tail.jpg" alt="" width="603" height="118" /></p>
<p>There are times you want to monitor log files and immediately see new entries as it is updated. This is easily achieved using &#8216;tail&#8217;.</p>
<p>tail is used to display the end of a file and by default shows the last 10 lines of a file using:-</p>
<p><span id="more-174"></span></p>
<pre class="brush: bash; title: ; notranslate">tail /path/to/file</pre>
<p>This will however not update as new entries are added to the file. To do this we add the follow option -f like this:-</p>
<pre class="brush: bash; title: ; notranslate">tail -f /path/to file</pre>
<p>Now this will auto update as the file is changed. We can also extend or reduce the amount of files using -n like this:-</p>
<pre class="brush: bash; title: ; notranslate">tail -f -n 20 /path/to file</pre>
<p>Now the last 20 lines will show. As always use the man command to find out more on what tail can do.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.wikinixi.com/2011/12/quick-tip-monitor-logs-live/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install Zabbix Server 1.8.9 on CentOS6</title>
		<link>http://www.wikinixi.com/2011/12/install-zabbix-server-1-8-9-on-centos6/</link>
		<comments>http://www.wikinixi.com/2011/12/install-zabbix-server-1-8-9-on-centos6/#comments</comments>
		<pubDate>Mon, 26 Dec 2011 11:26:56 +0000</pubDate>
		<dc:creator>Harvey</dc:creator>
				<category><![CDATA[Linux / Unix]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[zabbix]]></category>

		<guid isPermaLink="false">http://www.wikinixi.com/?p=165</guid>
		<description><![CDATA[The following instructions will install the latest version of Zabbix server on CentOS6 including setting up mysql databases. It presumes a fairly basic install of CentOS6. Zabbix is an open source, highly customisable server monitoring tool. More details are available here. These instructions use the EPEL repository for a more upto date version than the [...]]]></description>
			<content:encoded><![CDATA[<p>The following instructions will install the latest version of Zabbix server on CentOS6 including setting up mysql databases. It presumes a fairly basic install of CentOS6.</p>
<p>Zabbix is an open source, highly customisable server monitoring tool. More details are available <a title="Zabbix" href="http://www.zabbix.com/" target="_blank">here</a>.</p>
<p>These instructions use the EPEL repository for a more upto date version than the included version in the main repos.</p>
<p><span id="more-165"></span></p>
<p>So lets start:-</p>
<p>For 32bit version use:-</p>
<pre class="brush: bash; title: ; notranslate">$ rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-5.noarch.rpm</pre>
<p>And for 64bit us:-</p>
<pre class="brush: bash; title: ; notranslate">$ rpm -Uvh http://download.fedora.redhat.com/pub/epel/6/x86_64/epel-release-6-5.noarch.rpm</pre>
<p>&nbsp;</p>
<pre class="brush: bash; title: ; notranslate">$ yum update

$ yum --enablerepo=epel install zabbix-server-mysql zabbix-agent zabbix-web-mysql

$ yum install mysql-server

$ /sbin/chkconfig --levels 235 httpd on

$ /sbin/chkconfig --levels 235 mysqld on

$ /etc/init.d/mysqld start

$ mysql_secure_installation

$ mysql -u root -p

mysql&gt; create database zabbix;

mysql&gt; grant all privileges on zabbix.* to zabbix@localhost identified by 'password';

mysql&gt; exit

$ cd /usr/share/doc/zabbix-server-mysql-*/create/schema

$ cat mysql.sql | mysql -u root -p zabbix

$ cd ../data

$ cat data.sql | mysql -u root -p zabbix

$ cat images_mysql.sql | mysql -u root -p zabbix

$ vi /etc/zabbix/zabbix_server.conf

# line 110: uncomment and add DB password for Zabbix
DBPassword=password

$ vi /etc/zabbix/zabbix_agentd.conf

# line 91: change to your hostname
Hostname=zabbix.server.com

$ vi /etc/php.ini

# line 440: change to Zabbix recomended
max_execution_time = 600

# line 449: change to Zabbix recomended
max_input_time = 600

# line 457: change to Zabbix recomended
memory_limit = 256M

# line 729: change to Zabbix recomended
post_max_size = 32M

# line 878: change to Zabbix recomended
upload_max_filesize = 16M

# line 946: uncomment and add your timezone
date.timezone = Europe/London

$ /etc/rc.d/init.d/zabbix-server start

$ /etc/rc.d/init.d/zabbix-agent start

$ /etc/rc.d/init.d/httpd restart

$ chkconfig zabbix-server on

$ chkconfig zabbix-agent on</pre>
<p>Once complete, open your browser and navigate to http://serveraddress/zabbix<br />
Don&#8217;t forget to open port 80, 10050 and 10051 on your firewall.</p>
<p>Credit to <a title="Server-World" href="http://www.server-world.info/en/note?os=CentOS_6&amp;p=zabbix" target="_blank">Server-world</a> for initial instructions, the above have been tweaked for a few things that did not work for me.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.wikinixi.com/2011/12/install-zabbix-server-1-8-9-on-centos6/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to Import all your existing Instapaper Items to Evernote</title>
		<link>http://www.wikinixi.com/2011/12/how-to-import-all-your-existing-instapaper-items-to-evernote/</link>
		<comments>http://www.wikinixi.com/2011/12/how-to-import-all-your-existing-instapaper-items-to-evernote/#comments</comments>
		<pubDate>Mon, 26 Dec 2011 10:42:45 +0000</pubDate>
		<dc:creator>Harvey</dc:creator>
				<category><![CDATA[Applescript]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[applescript]]></category>
		<category><![CDATA[evernote]]></category>
		<category><![CDATA[import]]></category>
		<category><![CDATA[instapaper]]></category>

		<guid isPermaLink="false">http://www.wikinixi.com/?p=148</guid>
		<description><![CDATA[Please note, depending on the amount of Instapaper items you may need a Evernote premium account if you wish to make all your articles synced. The script will parse each URL from your Instapaper account though Instapaper Mobalizer before adding it to your Evernote notebook to tidy things up a little. The page title of [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Please note, depending on the amount of Instapaper items you may need a Evernote premium account if you wish to make all your articles synced.</strong></p>
<p>The script will parse each URL from your Instapaper account though Instapaper Mobalizer before adding it to your Evernote notebook to tidy things up a little. The page title of the website becomes the note title.</p>
<p><span id="more-148"></span></p>
<p>These are the steps:-</p>
<p><img class="alignright size-medium wp-image-154" style="border-style: initial; border-color: initial;" title="Instapaper Export CSV" src="http://www.wikinixi.com/wp-content/uploads/2011/12/Screen-Shot-2011-12-26-at-10.08.15-203x300.png" alt="" width="203" height="300" /></p>
<ol>
<li>In Evernote create a new notebook e.g. Instapaper.<a href="http://www.wikinixi.com/wp-content/uploads/2011/12/Screen-Shot-2011-12-26-at-10.08.15.png"><br class="Apple-interchange-newline" /><br />
</a></li>
<li>In instapaper, in the right hand column select &#8216;Export CSV&#8230;&#8217; then &#8216;Download CSV file&#8217;.</li>
<li>Once downloaded, open the csv file in a spreadsheet and select only the column containing the URL&#8217;s, don&#8217;t include the 1st row titled URL. Copy the contents to clipboard.</li>
<li>Open TextEdit.</li>
<li>Create a new document then select &#8216;Format&#8217; and then &#8216;Make Plain Text&#8217;.</li>
<li>Go &#8216;Edit&#8217; -&gt; &#8216;Paste&#8217;</li>
<li>Make sure you only have a text file containing a single URL perline (you may need to increase window size as long URLs will be wrapped on to a new line).</li>
<li>Save the document as &#8216;instapaper.txt&#8217; to you Desktop (can be anything with a .txt file extension).</li>
<li>Open &#8216;Applescipt Editor&#8217; from &#8216;Applications&#8217; -&gt; &#8216;Utilities&#8217; Folder.</li>
<li>Paste the code below in to the document.</li>
<li>Modify the first line to include the name of the notebook you created in Evernote in step 1.</li>
<li>In Applescript Editor click &#8216;Run&#8217;. The script will then provide a file selection box where you specify the file created in step 8.</li>
<li>Once you a selected the file the script will begin running through each line of the text file, parsing it through Instapaper Mobalizer first before adding the article in to your Evernote notebook. The script waits 5 seconds before running the next line to allow time for processing. The script will automatically sync evernote when every line is done.</li>
</ol>
<pre class="brush: bash; title: ; notranslate">
set myNotebook to &quot;Instapaper&quot;

tell application &quot;Finder&quot;
set Names to paragraphs of (read (choose file with prompt &quot;Pick text file containing URLs&quot;))
repeat with nextLine in Names
if length of nextLine is greater than 0 then
tell application &quot;Evernote&quot;
create note from url &quot;http://www.instapaper.com/m?u=&quot; &amp; nextLine notebook myNotebook
end tell
delay 5
end if
end repeat
end tell

tell application &quot;Evernote&quot;
synchronize
end tell
</pre>
<p>All going well you should now have all of your Instapaper articles stored and synced with Evernote.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.wikinixi.com/2011/12/how-to-import-all-your-existing-instapaper-items-to-evernote/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Get External IP address from Ubuntu Command line</title>
		<link>http://www.wikinixi.com/2011/07/get-external-ip-address-from-ubuntu-command-line/</link>
		<comments>http://www.wikinixi.com/2011/07/get-external-ip-address-from-ubuntu-command-line/#comments</comments>
		<pubDate>Fri, 15 Jul 2011 21:28:36 +0000</pubDate>
		<dc:creator>Harvey</dc:creator>
				<category><![CDATA[Linux / Unix]]></category>
		<category><![CDATA[Quick Tip]]></category>

		<guid isPermaLink="false">http://www.wikinixi.com/?p=140</guid>
		<description><![CDATA[Some times you want to check your external IP address of your server. This can easily be done with:- As you can see you will require curl installed, if you don&#8217;t have it type:-]]></description>
			<content:encoded><![CDATA[<p>Some times you want to check your external IP address of your server. This can easily be done with:-</p>
<pre class="brush: bash; title: ; notranslate">curl -s http://checkip.dyndns.org/ | sed 's/[a-zA-Z&lt;&gt;/ :]//g'</pre>
<p>As you can see you will require curl installed, if you don&#8217;t have it type:-</p>
<pre class="brush: bash; title: ; notranslate">apt-get install curl</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.wikinixi.com/2011/07/get-external-ip-address-from-ubuntu-command-line/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Split Files in to Smaller Chunks</title>
		<link>http://www.wikinixi.com/2011/07/split-files-in-to-smaller-chunks/</link>
		<comments>http://www.wikinixi.com/2011/07/split-files-in-to-smaller-chunks/#comments</comments>
		<pubDate>Fri, 15 Jul 2011 21:25:32 +0000</pubDate>
		<dc:creator>Harvey</dc:creator>
				<category><![CDATA[Linux / Unix]]></category>
		<category><![CDATA[Quick Tip]]></category>

		<guid isPermaLink="false">http://www.wikinixi.com/?p=135</guid>
		<description><![CDATA[I had problem copying off a large file on a server so I decided that it may be easier to chop the file up in to smaller pieces. This can be easily achieved by:- To break it down, &#8216;nohup nice&#8217; runs the task in the background, &#8216;split&#8217; is the command we are using, &#8216;&#8211;line-bytes=500m&#8217; this [...]]]></description>
			<content:encoded><![CDATA[<p>I had problem copying off a large file on a server so I decided that it may be easier to chop the file up in to smaller pieces. This can be easily achieved by:-</p>
<pre class="brush: bash; title: ; notranslate">nohup nice split --line-bytes=500m foo.tar.gz foo_ &amp;</pre>
<p>To break it down, &#8216;nohup nice&#8217; runs the task in the background, &#8216;split&#8217; is the command we are using, &#8216;&#8211;line-bytes=500m&#8217; this defines the size of each piece, in this case 500MB each, &#8216; foo.tar.gz&#8217; the file you want to split, &#8216;foo_&#8217; the starting part of each piece of the filenames, then finally &#8216;&amp;&#8217; part of the nohup.</p>
<p>This will create files 500mb in size named, foo_aa, foo_ab, foo_ac&#8230;&#8230;.and so on.</p>
<p>To piece the files back together we use:-</p>
<pre class="brush: bash; title: ; notranslate">nohup nice cat foo_a* &gt; foo_FULL.tar.gz &amp;</pre>
<p>This time we use &#8216;cat&#8217; and specify &#8216;foo_a*&#8217; as the input files and &#8216;foo_FULL.tar.gz&#8217; as the resulting combined file.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.wikinixi.com/2011/07/split-files-in-to-smaller-chunks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rercursivly chmod just Folder OR Files</title>
		<link>http://www.wikinixi.com/2011/03/rercursivly-chmod-just-folder-or-files/</link>
		<comments>http://www.wikinixi.com/2011/03/rercursivly-chmod-just-folder-or-files/#comments</comments>
		<pubDate>Wed, 09 Mar 2011 07:58:43 +0000</pubDate>
		<dc:creator>Harvey</dc:creator>
				<category><![CDATA[General Terminal]]></category>
		<category><![CDATA[Linux / Unix]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[chmod]]></category>
		<category><![CDATA[files]]></category>
		<category><![CDATA[find]]></category>
		<category><![CDATA[folders]]></category>
		<category><![CDATA[permissions]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.wikinixi.com/?p=132</guid>
		<description><![CDATA[Learn how to chmod just files OR folders through a directory structure]]></description>
			<content:encoded><![CDATA[<p><img class="size-full wp-image-196 aligncenter" title="chmod-775" src="http://www.wikinixi.com/wp-content/uploads/2011/03/chmod-775.png" alt="" width="472" height="166" /><br />
I recently had a requirement when installing wordpress to change the permissions of all files to 0644 and all folders to 0755. Instead of running a chmod -r to make all files and folders a certain permission and then manually having to go through and change all the folders manually, there are two simple commands to do this all for you.<span id="more-132"></span></p>
<p>To start you can use the following command:-</p>
<pre class="brush: bash; title: ; notranslate">find /directory/to/start/of/permission/change -type d -exec chmod 755 {} ;</pre>
<p>In this command we are using the find command and specify our starting directory. We then specify <strong>-type d</strong> this specifies we only want directories then <strong>-exec chmod 755 {} ;</strong> is saying we want to execute chmod 755 on the results found. This will recursivly travel through our folder structure from our starting point and change the chmod on all our folders.</p>
<p>Likewise we can do:-</p>
<pre class="brush: bash; title: ; notranslate">find /directory/to/start/of/permission/change -type f -exec chmod 644 {} ;</pre>
<p>By changing <strong>-type d</strong> to <strong>-type f</strong> it will change only files to 644 and leave all the directories alone.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.wikinixi.com/2011/03/rercursivly-chmod-just-folder-or-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Quick Tip: Re-run command as sudo</title>
		<link>http://www.wikinixi.com/2011/03/quick-tip-re-run-command-as-sudo/</link>
		<comments>http://www.wikinixi.com/2011/03/quick-tip-re-run-command-as-sudo/#comments</comments>
		<pubDate>Tue, 08 Mar 2011 18:12:41 +0000</pubDate>
		<dc:creator>Harvey</dc:creator>
				<category><![CDATA[Linux / Unix]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Quick Tip]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[quicktip]]></category>
		<category><![CDATA[sudo]]></category>

		<guid isPermaLink="false">http://www.wikinixi.com/?p=120</guid>
		<description><![CDATA[If you run a command and get an error such as 'rm: Test/Downloads: Permission denied' and you know you should have used sudo at the beginning of the command there is a quick way to correct this.]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-173" title="Screen shot 2011-03-09 at 18.35.17" src="http://www.wikinixi.com/wp-content/uploads/2011/03/Screen-shot-2011-03-09-at-18.35.17-e1299705871885.png" alt="" width="602" height="117" /></p>
<p>If you run a command and get an error such as &#8216;rm: Test/Downloads: Permission denied&#8217; and you know you should have used sudo at the beginning of the command there is a quick way to correct this. <span id="more-120"></span>Instead of retyping the command or pressing up to show the previous command and then move the cursor to the beginning and add sudo, all you need to do is type:-</p>
<pre class="brush: bash; title: ; notranslate">sudo !!</pre>
<p>This re-runs the previous command with sudo. Simple.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.wikinixi.com/2011/03/quick-tip-re-run-command-as-sudo/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

