<?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>Smile is like a secret love note &#187; Unix</title>
	<atom:link href="http://www.anilezfa.com/category/unix/feed" rel="self" type="application/rss+xml" />
	<link>http://www.anilezfa.com</link>
	<description>Did you find my message in a bottle?</description>
	<lastBuildDate>Thu, 29 Jul 2010 05:03:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Remove ^M from file in unix file</title>
		<link>http://www.anilezfa.com/remove-m-from-file-in-unix-file</link>
		<comments>http://www.anilezfa.com/remove-m-from-file-in-unix-file#comments</comments>
		<pubDate>Sat, 10 May 2008 14:11:52 +0000</pubDate>
		<dc:creator>anilezfa</dc:creator>
				<category><![CDATA[Unix]]></category>
		<category><![CDATA[ascii]]></category>
		<category><![CDATA[binary]]></category>
		<category><![CDATA[dos]]></category>
		<category><![CDATA[vi]]></category>
		<category><![CDATA[^M]]></category>

		<guid isPermaLink="false">http://www.anilezfa.com/?p=66</guid>
		<description><![CDATA[This note is dedicated to my chubby hubby that keep asking me how to remove ^M in a file. UNIX treats the end of line differently than other operating systems. Normally CTRL-M character is visibly displayed at the end of each line as ^M if the file is not transfered in binary mode (this is [...]]]></description>
			<content:encoded><![CDATA[<p>This note is dedicated to my chubby hubby that keep asking me how to remove ^M in a file.</p>
<p>UNIX treats the end of line differently than other operating systems. Normally CTRL-M character is visibly displayed at the end of each line as ^M if the file is not transfered in binary mode (this is why I always prefer SFTP instead of FTP).</p>
<ol>
<li>In vi, to remove the ^M do as following :</li>
<p><strong>:%s/^V^M//g</strong></p>
<p>^V is a CONTROL-V character<br />
^M is a CONTROL-M.</p>
<p>So it will look like this:</p>
<p><strong>:%s/^M//g</strong></p>
<p>%s is a basic search and replace command in vi.<br />
The g is use for search and replace globally (all occurrences).</p>
<li>with Solaris you can just do (heard HPUX has the command &#8220;dos2ux&#8221; instead of dos2unix):</li>
<p><strong>dos2unix &lt;dos file&gt; &lt;unix file&gt;</strong></p>
<li>You can also use the octal representatiion of ^M:</li>
<p><strong>tr -d &#8216;\015\032&#8242; &lt; file</strong></ol>
]]></content:encoded>
			<wfw:commentRss>http://www.anilezfa.com/remove-m-from-file-in-unix-file/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>semaphores and shared memory settings</title>
		<link>http://www.anilezfa.com/semaphores-and-shared-memory-settings</link>
		<comments>http://www.anilezfa.com/semaphores-and-shared-memory-settings#comments</comments>
		<pubDate>Tue, 22 Apr 2008 02:08:58 +0000</pubDate>
		<dc:creator>anilezfa</dc:creator>
				<category><![CDATA[Unix]]></category>
		<category><![CDATA[semaphores]]></category>
		<category><![CDATA[setting]]></category>
		<category><![CDATA[shared memory]]></category>
		<category><![CDATA[shminfo]]></category>
		<category><![CDATA[shmsys]]></category>

		<guid isPermaLink="false">http://www.anilezfa.com/semaphores-and-shared-memory-settings</guid>
		<description><![CDATA[shmsys:shminfo_shmmax Maximum shared memory segment size shmsys:shminfo_shmmin Minimum shared memory segment size shmsys:shminfo_shmmni Number of shared memory identifiers shmsys:shminfo_shmseg Number of segments, per process semsys:seminfo_semmap Number of entries in the semaphore map semsys:seminfo_semmni Number of semaphore identifiers semsys:seminfo_semmns Number of semaphores in the system semsys:seminfo_semmsl Maximum number of semaphores, per ID semsys:seminfo_semmnu Number of processes [...]]]></description>
			<content:encoded><![CDATA[<p>shmsys:shminfo_shmmax<br />
Maximum shared memory segment size </p>
<p>shmsys:shminfo_shmmin<br />
Minimum shared memory segment size </p>
<p>shmsys:shminfo_shmmni<br />
Number of shared memory identifiers </p>
<p>shmsys:shminfo_shmseg<br />
Number of segments, per process </p>
<p>semsys:seminfo_semmap<br />
Number of entries in the semaphore map </p>
<p>semsys:seminfo_semmni<br />
Number of semaphore identifiers </p>
<p>semsys:seminfo_semmns<br />
Number of semaphores in the system </p>
<p>semsys:seminfo_semmsl<br />
Maximum number of semaphores, per ID </p>
<p>semsys:seminfo_semmnu<br />
Number of processes using the undo facility</p>
<p>semsys:seminfo_semume<br />
Maximum number of undo structures per process</p>
]]></content:encoded>
			<wfw:commentRss>http://www.anilezfa.com/semaphores-and-shared-memory-settings/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Useful vi command &#8211; quick guide</title>
		<link>http://www.anilezfa.com/useful-vi-command-quick-guide</link>
		<comments>http://www.anilezfa.com/useful-vi-command-quick-guide#comments</comments>
		<pubDate>Sun, 20 Apr 2008 17:12:54 +0000</pubDate>
		<dc:creator>anilezfa</dc:creator>
				<category><![CDATA[Unix]]></category>
		<category><![CDATA[command]]></category>
		<category><![CDATA[edit]]></category>
		<category><![CDATA[editor]]></category>
		<category><![CDATA[guide]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[solaris]]></category>
		<category><![CDATA[vi]]></category>

		<guid isPermaLink="false">http://www.anilezfa.com/useful-vi-command-quick-guide</guid>
		<description><![CDATA[Useful vi Commands Cut/Paste Commands: x delete one character (destructive backspace) dw delete the current word (Note: ndw deletes n numbered words) dd delete the current line (Note: ndd deletes n numbered lines) D delete all content to the right of the cursor d$ same as above :u undo last command p,P paste line starting [...]]]></description>
			<content:encoded><![CDATA[<h1><strong>Useful vi Commands</strong></h1>
<h3><span lang="EN">Cut/Paste Commands: </span></h3>
<table class="MsoTableGrid" style="border: medium none ; border-collapse: collapse;" border="1" cellspacing="0" cellpadding="0"; color="white">
<tbody>
<tr>
<td style="border: 1pt solid windowtext; padding: 0in 5.4pt; width: 0.95in;" width="91" valign="top"><span lang="EN">x</span></td>
<td style="border-style: solid solid solid none; border-color: windowtext windowtext windowtext -moz-use-text-color; border-width: 1pt 1pt 1pt medium; padding: 0in 5.4pt; width: 4.75in;" width="456" valign="top"><span lang="EN">delete one character   (destructive backspace)</span></td>
</tr>
<tr>
<td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 0.95in;" width="91" valign="top"><span lang="EN">dw</span></td>
<td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 4.75in;" width="456" valign="top"><span lang="EN">delete the current word (Note:   ndw deletes n numbered words)</span></td>
</tr>
<tr>
<td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 0.95in;" width="91" valign="top"><span lang="EN">dd</span></td>
<td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 4.75in;" width="456" valign="top"><span lang="EN">delete the current line (Note:   ndd deletes n numbered lines)</span></td>
</tr>
<tr>
<td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 0.95in;" width="91" valign="top"><span lang="EN">D</span></td>
<td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 4.75in;" width="456" valign="top"><span lang="EN">delete all content to the right   of the cursor</span></td>
</tr>
<tr>
<td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 0.95in;" width="91" valign="top"><span lang="EN">d$</span></td>
<td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 4.75in;" width="456" valign="top"><span lang="EN">same as above</span></td>
</tr>
<tr>
<td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 0.95in;" width="91" valign="top"><span lang="EN">:u</span></td>
<td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 4.75in;" width="456" valign="top"><span lang="EN">undo last command</span></td>
</tr>
<tr>
<td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 0.95in;" width="91" valign="top"><span lang="EN">p,P</span></td>
<td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 4.75in;" width="456" valign="top"><span lang="EN">paste line starting one line   below/above current cursor location</span></td>
</tr>
<tr>
<td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 0.95in;" width="91" valign="top"><span lang="EN">J</span></td>
<td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 4.75in;" width="456" valign="top"><span lang="EN">combine the contents of two   lines</span></td>
</tr>
<tr>
<td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 0.95in;" width="91" valign="top"><span lang="EN">&quot;[a-z]nyy</span></td>
<td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 4.75in;" width="456" valign="top"><span lang="EN">yank next n lines into named   buffer [a-z]</span></td>
</tr>
<tr>
<td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 0.95in;" width="91" valign="top"><span lang="EN">&quot;[a-z]p/P</span></td>
<td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 4.75in;" width="456" valign="top"><span lang="EN">place the contents of selected   buffer below/above the current line</span></td>
</tr>
</tbody>
</table>
<h3><a name="d0e847"><span lang="EN"> </span> </a> <span id="more-46"></span></h3>
<h3><span lang="EN">Extensions to the Above Commands: </span></h3>
<table class="MsoTableGrid" style="border: medium none ; border-collapse: collapse;" border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td style="border: 1pt solid windowtext; padding: 0in 5.4pt; width: 0.95in;" width="91" valign="top"><span lang="EN">:3,18d</span></td>
<td style="border-style: solid solid solid none; border-color: windowtext windowtext windowtext -moz-use-text-color; border-width: 1pt 1pt 1pt medium; padding: 0in 5.4pt; width: 4.75in;" width="456" valign="top"><span lang="EN">delete lines 3 through 18</span></td>
</tr>
<tr>
<td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 0.95in;" width="91" valign="top"><span lang="EN">16,25m30</span></td>
<td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 4.75in;" width="456" valign="top"><span lang="EN">move lines 16 through 25 to   after line 30</span></td>
</tr>
<tr>
<td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 0.95in;" width="91" valign="top"><span lang="EN">23,29co62</span></td>
<td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 4.75in;" width="456" valign="top"><span lang="EN">copy specified lines and place   after line 62</span></td>
</tr>
</tbody>
</table>
<h3><a name="d0e862"><span lang="EN"> </span> </a></h3>
<h3><span lang="EN">Cursor Relocation commands: </span></h3>
<table class="MsoTableGrid" style="border: medium none ; border-collapse: collapse;" border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td style="border: 1pt solid windowtext; padding: 0in 5.4pt; width: 0.95in;" width="91" valign="top"><span lang="EN">:[n]</span></td>
<td style="border-style: solid solid solid none; border-color: windowtext windowtext windowtext -moz-use-text-color; border-width: 1pt 1pt 1pt medium; padding: 0in 5.4pt; width: 4.75in;" width="456" valign="top"><span lang="EN">goto line [n]</span></td>
</tr>
<tr>
<td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 0.95in;" width="91" valign="top"><span lang="EN">shift g</span></td>
<td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 4.75in;" width="456" valign="top"><span lang="EN">place cursor on last line of   text</span></td>
</tr>
<tr>
<td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 0.95in;" width="91" valign="top"><span lang="EN">h/l/j/k</span></td>
<td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 4.75in;" width="456" valign="top"><span lang="EN">move cursor left, right, down   and up</span></td>
</tr>
<tr>
<td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 0.95in;" width="91" valign="top"><span lang="EN">^f/^b</span></td>
<td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 4.75in;" width="456" valign="top"><span lang="EN">move forward, backward in text,   one page</span></td>
</tr>
<tr>
<td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 0.95in;" width="91" valign="top"><span lang="EN">^u/^d</span></td>
<td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 4.75in;" width="456" valign="top"><span lang="EN">move up, down one half page</span></td>
</tr>
<tr>
<td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 0.95in;" width="91" valign="top"><span lang="EN">$</span></td>
<td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 4.75in;" width="456" valign="top"><span lang="EN">move to end of line</span></td>
</tr>
<tr>
<td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 0.95in;" width="91" valign="top"><span lang="EN">0</span></td>
<td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 4.75in;" width="456" valign="top"><span lang="EN">move to beginning of line</span></td>
</tr>
</tbody>
</table>
<p style="margin-left: 0.25in;"><span lang="EN"> </span></p>
<h3><span lang="EN">Extensions to the Above: </span></h3>
<table class="MsoTableGrid" style="border: medium none ; border-collapse: collapse;" border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td style="border: 1pt solid windowtext; padding: 0in 5.4pt; width: 0.95in;" width="91" valign="top"><span lang="EN">b</span></td>
<td style="border-style: solid solid solid none; border-color: windowtext windowtext windowtext -moz-use-text-color; border-width: 1pt 1pt 1pt medium; padding: 0in 5.4pt; width: 4.75in;" width="456" valign="top"><span lang="EN">move backwards one word (Note:   nb moves back n number of words)</span></td>
</tr>
<tr>
<td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 0.95in;" width="91" valign="top"><span lang="EN">e</span></td>
<td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 4.75in;" width="456" valign="top"><span lang="EN">move to end of current word</span></td>
</tr>
<tr>
<td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 0.95in;" width="91" valign="top"><span lang="EN">(</span></td>
<td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 4.75in;" width="456" valign="top"><span lang="EN">move to beginning of curent   block</span></td>
</tr>
<tr>
<td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 0.95in;" width="91" valign="top"><span lang="EN">)</span></td>
<td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 4.75in;" width="456" valign="top"><span lang="EN">move to the end of current block</span></td>
</tr>
</tbody>
</table>
<h3><span lang="EN">Searching and Substitution commands: </span></h3>
<table class="MsoTableGrid" style="border: medium none ; border-collapse: collapse;" border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td style="border: 1pt solid windowtext; padding: 0in 5.4pt; width: 0.95in;" width="91" valign="top"><span lang="EN">/ [string]</span></td>
<td style="border-style: solid solid solid none; border-color: windowtext windowtext windowtext -moz-use-text-color; border-width: 1pt 1pt 1pt medium; padding: 0in 5.4pt; width: 4.75in;" width="456" valign="top"><span lang="EN">search forward for string</span></td>
</tr>
<tr>
<td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 0.95in;" width="91" valign="top"><span lang="EN">? [string]</span></td>
<td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 4.75in;" width="456" valign="top"><span lang="EN">search backwards for string</span></td>
</tr>
<tr>
<td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 0.95in;" width="91" valign="top"><span lang="EN">n</span></td>
<td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 4.75in;" width="456" valign="top"><span lang="EN">repeat last search</span></td>
</tr>
<tr>
<td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 0.95in;" width="91" valign="top"><span lang="EN">N</span></td>
<td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 4.75in;" width="456" valign="top"><span lang="EN">repeat search in opposite   direction</span></td>
</tr>
<tr>
<td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 0.95in;" width="91" valign="top"><span lang="EN">cw</span></td>
<td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 4.75in;" width="456" valign="top"><span lang="EN">change the contents of the   current word, (use ESC to stop replacement mode)</span></td>
</tr>
<tr>
<td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 0.95in;" width="91" valign="top"><span lang="EN">c$</span></td>
<td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 4.75in;" width="456" valign="top"><span lang="EN">Replace all content to the   right of cursor (exit replacement mode with ESC)</span></td>
</tr>
<tr>
<td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 0.95in;" width="91" valign="top"><span lang="EN">c0</span></td>
<td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 4.75in;" width="456" valign="top"><span lang="EN">Replace all content to the left   of cursor (exit with ESC)</span></td>
</tr>
<tr>
<td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 0.95in;" width="91" valign="top"><span lang="EN">:1,$s/s1/s2/g</span></td>
<td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 4.75in;" width="456" valign="top"><span lang="EN">global replacement of string1   with string2</span></td>
</tr>
<tr>
<td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 0.95in;" width="91" valign="top"><span lang="EN">r</span></td>
<td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 4.75in;" width="456" valign="top"><span lang="EN">replace current character with   next character typed</span></td>
</tr>
</tbody>
</table>
<p><span lang="EN"> </span></p>
<h3><span lang="EN">Entering the Insert Mode: </span></h3>
<table class="MsoTableGrid" style="border: medium none ; border-collapse: collapse;" border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td style="border: 1pt solid windowtext; padding: 0in 5.4pt; width: 0.95in;" width="91" valign="top"><span lang="EN">i</span></td>
<td style="border-style: solid solid solid none; border-color: windowtext windowtext windowtext -moz-use-text-color; border-width: 1pt 1pt 1pt medium; padding: 0in 5.4pt; width: 4.75in;" width="456" valign="top"><span lang="EN">Begin inserting text at current   cursor location</span></td>
</tr>
<tr>
<td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 0.95in;" width="91" valign="top"><span lang="EN">I</span></td>
<td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 4.75in;" width="456" valign="top"><span lang="EN">Begin inserting text at the beginning   of the current line</span></td>
</tr>
<tr>
<td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 0.95in;" width="91" valign="top"><span lang="EN">a</span></td>
<td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 4.75in;" width="456" valign="top"><span lang="EN">Begin appending text, one   character to the right of current cursor location</span></td>
</tr>
<tr>
<td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 0.95in;" width="91" valign="top"><span lang="EN">A</span></td>
<td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 4.75in;" width="456" valign="top"><span lang="EN">Begin appending text at the end   of the current line</span></td>
</tr>
<tr>
<td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 0.95in;" width="91" valign="top"><span lang="EN">o/O</span></td>
<td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 4.75in;" width="456" valign="top"><span lang="EN">Begin entering text one line   below\above current line</span></td>
</tr>
<tr>
<td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 0.95in;" width="91" valign="top"><span lang="EN">ESC</span></td>
<td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 4.75in;" width="456" valign="top"><span lang="EN">Exit insertion mode and return   to command mode</span></td>
</tr>
</tbody>
</table>
<p style="margin-left: 0.25in;"><span lang="EN"> </span></p>
<h3><span lang="EN">Exiting and Entering VI </span></h3>
<table class="MsoTableGrid" style="border: medium none ; border-collapse: collapse;" border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td style="border: 1pt solid windowtext; padding: 0in 5.4pt; width: 0.95in;" width="91" valign="top"><span lang="EN">ZZ</span></td>
<td style="border-style: solid solid solid none; border-color: windowtext windowtext windowtext -moz-use-text-color; border-width: 1pt 1pt 1pt medium; padding: 0in 5.4pt; width: 4.75in;" width="456" valign="top"><span lang="EN">save file and exit VI</span></td>
</tr>
<tr>
<td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 0.95in;" width="91" valign="top"><span lang="EN">:wq</span></td>
<td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 4.75in;" width="456" valign="top"><span lang="EN">same as above</span></td>
</tr>
<tr>
<td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 0.95in;" width="91" valign="top"><span lang="EN">:e!</span></td>
<td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 4.75in;" width="456" valign="top"><span lang="EN">return to last saved version of   current file</span></td>
</tr>
<tr>
<td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 0.95in;" width="91" valign="top"><span lang="EN">:q</span></td>
<td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 4.75in;" width="456" valign="top"><span lang="EN">quit without save, (Note :q! is   required if changes have been made)</span></td>
</tr>
<tr>
<td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 0.95in;" width="91" valign="top"><span lang="EN">:w</span></td>
<td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 4.75in;" width="456" valign="top"><span lang="EN">write without exit (:w! to   force write)</span></td>
</tr>
</tbody>
</table>
<h3><span lang="EN">Fancy Stuff: </span></h3>
<table class="MsoNormalTable" style="border-collapse: collapse;" border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td style="border: 1pt solid windowtext; padding: 0in 5.4pt; width: 1.2in;" width="115" valign="top">:1,10w file</td>
<td style="border-style: solid solid solid none; border-color: windowtext windowtext windowtext -moz-use-text-color; border-width: 1pt 1pt 1pt medium; padding: 0in 5.4pt; width: 4.75in;" width="432" valign="top">write lines 1 through 10 to file newfile</td>
</tr>
<tr>
<td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 0.95in;" width="115" valign="top">:340,$w &gt;&gt; file</td>
<td style="border-style: solid solid solid none; border-color: windowtext windowtext windowtext -moz-use-text-color; border-width: 1pt 1pt 1pt medium; padding: 0in 5.4pt; width: 4.75in;" width="432" valign="top">write lines 340 through the end of the file and append to file newfile</td>
</tr>
<tr>
<td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 0.95in;" width="115" valign="top"><span lang="EN">:sh</span></td>
<td style="border-style: solid solid solid none; border-color: windowtext windowtext windowtext -moz-use-text-color; border-width: 1pt 1pt 1pt medium; padding: 0in 5.4pt; width: 4.75in;" width="432" valign="top">escape temporarily to a shell</td>
</tr>
<tr>
<td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 0.95in;" width="115" valign="top"><span lang="EN">^d</span></td>
<td style="border-style: solid solid solid none; border-color: windowtext windowtext windowtext -moz-use-text-color; border-width: 1pt 1pt 1pt medium; padding: 0in 5.4pt; width: 4.75in;" width="432" valign="top">return from shell to VI</td>
</tr>
<tr>
<td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 0.95in;" width="115" valign="top"><span lang="EN">:![command]</span></td>
<td style="border-style: solid solid solid none; border-color: windowtext windowtext windowtext -moz-use-text-color; border-width: 1pt 1pt 1pt medium; padding: 0in 5.4pt; width: 4.75in;" width="432" valign="top">execute UNIX command without leaving VI</td>
</tr>
<tr>
<td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 0.95in;" width="115" valign="top"><span lang="EN">:r![command]</span></td>
<td style="border-style: solid solid solid none; border-color: windowtext windowtext windowtext -moz-use-text-color; border-width: 1pt 1pt 1pt medium; padding: 0in 5.4pt; width: 4.75in;" width="432" valign="top">read output of command into VI</td>
</tr>
<tr>
<td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 0.95in;" width="115" valign="top"><span lang="EN">:r[filename]</span></td>
<td style="border-style: solid solid solid none; border-color: windowtext windowtext windowtext -moz-use-text-color; border-width: 1pt 1pt 1pt medium; padding: 0in 5.4pt; width: 4.75in;" width="432" valign="top"><span lang="EN">read filename into VI</span></td>
</tr>
<tr>
<td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 0.95in;" width="115" valign="top"><span lang="EN">:$r newfile</span></td>
<td style="border-style: solid solid solid none; border-color: windowtext windowtext windowtext -moz-use-text-color; border-width: 1pt 1pt 1pt medium; padding: 0in 5.4pt; width: 4.75in;" width="432" valign="top">read in newfile and attach at the end of current document</td>
</tr>
<tr>
<td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 0.95in;" width="115" valign="top"><span lang="EN">:r !sort file</span></td>
<td style="border-style: solid solid solid none; border-color: windowtext windowtext windowtext -moz-use-text-color; border-width: 1pt 1pt 1pt medium; padding: 0in 5.4pt; width: 4.75in;" width="432" valign="top">read in contents of file after it has been passed through the UNIX sort</td>
</tr>
<tr>
<td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 0.95in;" width="115" valign="top"><span lang="EN">:n</span></td>
<td style="border-style: solid solid solid none; border-color: windowtext windowtext windowtext -moz-use-text-color; border-width: 1pt 1pt 1pt medium; padding: 0in 5.4pt; width: 4.75in;" width="432" valign="top">open next file (works with wildcard filenames, ex: vi file*)</td>
</tr>
<tr>
<td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 0.95in;" width="115" valign="top"><span lang="EN">:^g</span></td>
<td style="border-style: solid solid solid none; border-color: windowtext windowtext windowtext -moz-use-text-color; border-width: 1pt 1pt 1pt medium; padding: 0in 5.4pt; width: 4.75in;" width="432" valign="top">list current line number</td>
</tr>
<tr>
<td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 0.95in;" width="115" valign="top"><span lang="EN">:set</span></td>
<td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 4.75in;" width="432" valign="top">number show line numbers</td>
</tr>
<tr>
<td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 0.95in;" width="115" valign="top"><span lang="EN">:set showinsert</span></td>
<td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 4.75in;" width="432" valign="top">show flag (&quot;I&quot;) at bottom of screen when in insert mode</td>
</tr>
<tr>
<td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 0.95in;" width="115" valign="top"><span lang="EN">:set all</span></td>
<td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 4.75in;" width="432" valign="top">display current values of VI variables</td>
</tr>
<tr>
<td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 0.95in;" width="115" valign="top"><span lang="EN">:set ai</span></td>
<td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 4.75in;" width="432" valign="top">set autoindent; after this enter the insert mode and tab, from this point   on VI will indent each line to this location. Use ESC to stop the   indentations</td>
</tr>
<tr>
<td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 0.95in;" width="115" valign="top"><span lang="EN">^T</span></td>
<td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 4.75in;" width="432" valign="top">set the autoindent tab one tab stop to the right</td>
</tr>
<tr>
<td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 0.95in;" width="115" valign="top"><span lang="EN">^D</span></td>
<td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 4.75in;" width="432" valign="top">set the autoindent tab one stop to the left</td>
</tr>
<tr>
<td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 0.95in;" width="115" valign="top"><span lang="EN">:set tabstop=n</span></td>
<td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 4.75in;" width="432" valign="top">sets default tab space to number n</td>
</tr>
<tr>
<td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 0.95in;" width="115" valign="top"><span lang="EN">&gt;&gt;</span></td>
<td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 4.75in;" width="432" valign="top">shift contents of line one tab stop to the right</td>
</tr>
<tr>
<td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 0.95in;" width="115" valign="top"><span lang="EN">&lt;&lt;</span></td>
<td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 4.75in;" width="432" valign="top">shift contents of line one tab stop to the left</td>
</tr>
</tbody>
</table>
<h3><a name="d0e847"><span lang="EN"> </span> </a></h3>
]]></content:encoded>
			<wfw:commentRss>http://www.anilezfa.com/useful-vi-command-quick-guide/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Reset root password on linux red hat vmware</title>
		<link>http://www.anilezfa.com/reset-root-password-on-linux-red-hat-vmware</link>
		<comments>http://www.anilezfa.com/reset-root-password-on-linux-red-hat-vmware#comments</comments>
		<pubDate>Fri, 18 Apr 2008 16:23:24 +0000</pubDate>
		<dc:creator>anilezfa</dc:creator>
				<category><![CDATA[Unix]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[password]]></category>
		<category><![CDATA[red hat]]></category>
		<category><![CDATA[reset]]></category>
		<category><![CDATA[root]]></category>
		<category><![CDATA[vmware]]></category>

		<guid isPermaLink="false">http://www.anilezfa.com/?p=45</guid>
		<description><![CDATA[I forgot my root password on my linux vmware. Here are the steps that I do in order to reset it. Press any key to go to the menu : Press &#34;e &#34; when you see the following menu: Select the image you want to load and press &#34;e &#34;: Type &#34; 1 &#34; (fyi [...]]]></description>
			<content:encoded><![CDATA[<p>I forgot my root password on my linux vmware. Here are the steps that I do in order to reset it.</p>
<ol>
<li>Press any key to go to the menu :
<a href="http://www.anilezfa.com/wp-content/gallery/redhat/rhat4-18-2008-11.49.25 PM.gif" title="" class="thickbox" rel="singlepic64" >
	<img class="ngg-singlepic" src="http://www.anilezfa.com/index.php?callback=image&amp;pid=64&amp;width=200&amp;height=500&amp;mode=" alt="rhat4-18-2008-11.49.25 PM.gif" title="rhat4-18-2008-11.49.25 PM.gif" />
</a>
<span id="more-45"></span></li>
<li>Press &quot;<strong>e</strong> &quot; when you see the following menu: 
<a href="http://www.anilezfa.com/wp-content/gallery/redhat/rhat4-18-2008-11.49.58 PM.gif" title="" class="thickbox" rel="singlepic65" >
	<img class="ngg-singlepic" src="http://www.anilezfa.com/index.php?callback=image&amp;pid=65&amp;width=200&amp;height=500&amp;mode=" alt="rhat4-18-2008-11.49.58 PM.gif" title="rhat4-18-2008-11.49.58 PM.gif" />
</a>
</li>
<li>Select the image you want to load and press &quot;<strong>e</strong> &quot;: 
<a href="http://www.anilezfa.com/wp-content/gallery/redhat/rhat4-18-2008-11.50.38 PM.gif" title="" class="thickbox" rel="singlepic67" >
	<img class="ngg-singlepic" src="http://www.anilezfa.com/index.php?callback=image&amp;pid=67&amp;width=200&amp;height=500&amp;mode=" alt="rhat4-18-2008-11.50.38 PM.gif" title="rhat4-18-2008-11.50.38 PM.gif" />
</a>
</li>
<li>Type &quot; <strong>1</strong> &quot; (fyi it space and number one) as in following screen and press enter : 
<a href="http://www.anilezfa.com/wp-content/gallery/redhat/rhat4-18-2008-11.50.56 PM.gif" title="" class="thickbox" rel="singlepic68" >
	<img class="ngg-singlepic" src="http://www.anilezfa.com/index.php?callback=image&amp;pid=68&amp;width=200&amp;height=500&amp;mode=" alt="rhat4-18-2008-11.50.56 PM.gif" title="rhat4-18-2008-11.50.56 PM.gif" />
</a>
</li>
<li>Press &quot;<strong>b</strong> &quot; here to boot to single user: 
<a href="http://www.anilezfa.com/wp-content/gallery/redhat/rhat4-18-2008-11.51.17 PM.gif" title="" class="thickbox" rel="singlepic69" >
	<img class="ngg-singlepic" src="http://www.anilezfa.com/index.php?callback=image&amp;pid=69&amp;width=200&amp;height=500&amp;mode=" alt="rhat4-18-2008-11.51.17 PM.gif" title="rhat4-18-2008-11.51.17 PM.gif" />
</a>
</li>
<li>You would get the following promt without being asked for password : 
<a href="http://www.anilezfa.com/wp-content/gallery/redhat/rhat4-18-2008-11.52.12 PM.gif" title="" class="thickbox" rel="singlepic70" >
	<img class="ngg-singlepic" src="http://www.anilezfa.com/index.php?callback=image&amp;pid=70&amp;width=200&amp;height=500&amp;mode=" alt="rhat4-18-2008-11.52.12 PM.gif" title="rhat4-18-2008-11.52.12 PM.gif" />
</a>
</li>
<li>Type the change password command which is &quot;<strong>passwd</strong> &quot; and set your new password : 
<a href="http://www.anilezfa.com/wp-content/gallery/redhat/rhat4-18-2008-11.52.58 PM.gif" title="" class="thickbox" rel="singlepic71" >
	<img class="ngg-singlepic" src="http://www.anilezfa.com/index.php?callback=image&amp;pid=71&amp;width=200&amp;height=500&amp;mode=" alt="rhat4-18-2008-11.52.58 PM.gif" title="rhat4-18-2008-11.52.58 PM.gif" />
</a>
</li>
<li>Reboot our system by typing &quot;<strong>reboot</strong> &quot; : 
<a href="http://www.anilezfa.com/wp-content/gallery/redhat/rhat4-18-2008-11.53.11 PM.gif" title="" class="thickbox" rel="singlepic72" >
	<img class="ngg-singlepic" src="http://www.anilezfa.com/index.php?callback=image&amp;pid=72&amp;width=200&amp;height=500&amp;mode=" alt="rhat4-18-2008-11.53.11 PM.gif" title="rhat4-18-2008-11.53.11 PM.gif" />
</a>
</li>
<li>When prompt for password key in the new password just set up.</li>
<li>By now you should be able to login to the system : 
<a href="http://www.anilezfa.com/wp-content/gallery/redhat/rhat4-18-2008-11.56.24 PM.gif" title="" class="thickbox" rel="singlepic73" >
	<img class="ngg-singlepic" src="http://www.anilezfa.com/index.php?callback=image&amp;pid=73&amp;width=200&amp;height=500&amp;mode=" alt="rhat4-18-2008-11.56.24 PM.gif" title="rhat4-18-2008-11.56.24 PM.gif" />
</a>
</li>
</ol>
<p>Hope this help anyone that hit the same problem as me.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.anilezfa.com/reset-root-password-on-linux-red-hat-vmware/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Reset Root Password on Solaris</title>
		<link>http://www.anilezfa.com/reset-root-password-on-solaris</link>
		<comments>http://www.anilezfa.com/reset-root-password-on-solaris#comments</comments>
		<pubDate>Thu, 10 Apr 2008 18:36:12 +0000</pubDate>
		<dc:creator>anilezfa</dc:creator>
				<category><![CDATA[Unix]]></category>
		<category><![CDATA[reset]]></category>
		<category><![CDATA[root]]></category>
		<category><![CDATA[solaris]]></category>

		<guid isPermaLink="false">http://www.anilezfa.com/?p=39</guid>
		<description><![CDATA[In order to reset root password on Solaris box, you would need to do the following : Go to OK Prompt by: &#60;stop&#62; + &#60;a&#62; or # init 0 Once you got the OK prompt, boot into single user mode: OK&#62; boot cdrom -s Mount the root directory, On a typical system, it&#8217;s probably c0t0d0s0 [...]]]></description>
			<content:encoded><![CDATA[<p>In order to reset root password on Solaris box, you would need to do the following :</p>
<ol>
<li>Go to OK Prompt by:</li>
<p style="padding-left: 60px;"><strong>&lt;stop&gt; + &lt;a&gt;</strong></p>
<p style="padding-left: 60px;">or</p>
<p style="padding-left: 60px;"><strong># init 0</strong></p>
<li>Once you got the OK prompt, boot into single user mode:</li>
<p style="padding-left: 60px;"><strong>OK&gt; boot cdrom -s</strong></p>
<li>Mount the root directory, On a typical system, it&#8217;s probably c0t0d0s0 or c0t0d0s1:</li>
<p style="padding-left: 60px;"><strong> # mount /dev/dsk/c0t0d0s1 /</strong></p>
<li>Make a copy of /etc/shadow.</li>
<p style="padding-left: 60px;"><strong> # cp /etc/shadow /etc/shadow.backupcopy</strong></p>
<li>Edit /etc/shadow file</li>
<p style="padding-left: 60px;"><strong> # vi /etc/shadow</strong></p>
<p style="padding-left: 60px;">Your /etc/shadow should look like this:<br />
<em> r<strong>oot:&lt;password&gt;::877667</strong> </em></p>
<li>Delete the password of the root user (Leave the second field empty, dont change anything else):</li>
<p style="padding-left: 60px;"><strong><em>root:&lt;password&gt;::877667</em> </strong></p>
<p style="padding-left: 60px;">edit to</p>
<p style="padding-left: 60px;"><em><strong>root:::877667</strong> </em></p>
<li>Reboot the box</li>
<li>Login to root account with no password.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.anilezfa.com/reset-root-password-on-solaris/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
