<?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>ORATraining Blog &#187; Linux/Unix/Solaris</title>
	<atom:link href="http://www.oratraining.com/blog/category/linuxunixsolaris/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.oratraining.com/blog</link>
	<description>Not just another Oracle Blog</description>
	<lastBuildDate>Tue, 07 Feb 2012 06:27:38 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Configuring Oracle Identity and Access Management components</title>
		<link>http://www.oratraining.com/blog/2012/02/configuring-oracle-identity-and-access-management-components/</link>
		<comments>http://www.oratraining.com/blog/2012/02/configuring-oracle-identity-and-access-management-components/#comments</comments>
		<pubDate>Mon, 06 Feb 2012 09:30:04 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Fusion Applications Provisioning]]></category>
		<category><![CDATA[Fusion Middleware]]></category>
		<category><![CDATA[HTTP Server]]></category>
		<category><![CDATA[Identity Management]]></category>
		<category><![CDATA[Installing Oracle Applications]]></category>
		<category><![CDATA[Linux/Unix/Solaris]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Oracle Applications]]></category>
		<category><![CDATA[Oracle Applications DBA]]></category>
		<category><![CDATA[Oracle DBA]]></category>
		<category><![CDATA[Oracle Fusion Applications]]></category>
		<category><![CDATA[Oracle Internet Directory]]></category>
		<category><![CDATA[Webgate]]></category>
		<category><![CDATA[access manager]]></category>
		<category><![CDATA[Administration]]></category>
		<category><![CDATA[fusion 11g]]></category>
		<category><![CDATA[fusion applications installation]]></category>
		<category><![CDATA[guide]]></category>
		<category><![CDATA[HTTP server]]></category>
		<category><![CDATA[identity management]]></category>
		<category><![CDATA[installation]]></category>
		<category><![CDATA[installing]]></category>
		<category><![CDATA[installing oracle fusion applications]]></category>
		<category><![CDATA[oracle applications]]></category>
		<category><![CDATA[oracle apps]]></category>
		<category><![CDATA[oracle directory service]]></category>
		<category><![CDATA[Oracle fusion applications]]></category>
		<category><![CDATA[oracle internet directory]]></category>
		<category><![CDATA[virtual directory]]></category>
		<category><![CDATA[webgate]]></category>

		<guid isPermaLink="false">http://www.oratraining.com/blog/?p=878</guid>
		<description><![CDATA[Tweet Oracle Fusion Applications Installation: Configuring Oracle Identity and Access Management components Previous: Installing Oracle Identity and Access Management Components Configuring Oracle Identity Management components&#8221; can be divided into following tasks. Configuring the Web Tier Create Weblogic Domain for Identity Management Extending the Domain with Oracle Internet Directory Extending the Domain with Oracle Directory Service Manager [...]]]></description>
			<content:encoded><![CDATA[<div class="bottomcontainerBox" style="background-color:#F0F4F9;">
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.oratraining.com%2Fblog%2F2012%2F02%2Fconfiguring-oracle-identity-and-access-management-components%2F&amp;layout=button_count&amp;show_faces=false&amp;width=85&amp;action=like&amp;font=verdana&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width=85px; height:21px;" allowTransparency="true"></iframe></div>
			<div style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<g:plusone size="medium" href="http://www.oratraining.com/blog/2012/02/configuring-oracle-identity-and-access-management-components/"></g:plusone>
			</div>
			<div style="float:left; width:95px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<a href="http://twitter.com/share" class="twitter-share-button" data-url="http://www.oratraining.com/blog/2012/02/configuring-oracle-identity-and-access-management-components/"  data-text="Configuring Oracle Identity and Access Management components" data-count="horizontal">Tweet</a>
			</div><div style="float:left; width:105px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"><script type="in/share" data-url="http://www.oratraining.com/blog/2012/02/configuring-oracle-identity-and-access-management-components/" data-counter="right"></script></div>			
			</div><div style="clear:both"></div><div style="padding-bottom:4px;"></div><p style="background: white;"><span style="color: #404040; font-size: 13pt;"><span style="text-decoration: underline;">Oracle Fusion Applications Installation</span><strong>: Configuring Oracle Identity and Access Management components<br />
</strong></span></p>
<p style="background: white;">Previous: <strong><a title="Installing Oracle Identity and Access Management components" href="http://www.oratraining.com/blog/2012/02/installing-oracle-identity-and-access-management-components/">Installing Oracle Identity and Access Management Components</a></strong></p>
<p style="background: white;">Configuring Oracle Identity Management components&#8221; can be divided into following tasks.</p>
<ol>
<li>Configuring the Web Tier</li>
<li>Create Weblogic Domain for Identity Management</li>
<li>Extending the Domain with Oracle Internet Directory</li>
<li>Extending the Domain with Oracle Directory Service Manager (ODSM)</li>
<li>Extending the Domain with Oracle Virtual Directory</li>
<li>Extending the Domain with Oracle Access Manager</li>
<li>Extending the Domain to Configure Oracle Identity Manager and Oracle SOA Suite</li>
<li>Installing and Configuring WebGate</li>
</ol>
<p><span style="color: red; background-color: white;">Please note that this post is going to be long so allow time to load all images.</span></p>
<p style="background: white;"><span style="color: #632423; font-size: 14pt; text-decoration: underline;"><strong>Configuring the Web Tier<br />
</strong></span></p>
<p>Start the configuration from <strong>&lt;Web_Home&gt;/bin<br />
</strong></p>
<blockquote><p>[oracle@fusion bin]$ <strong>cd /app/fusion/bea_default/Oracle_WT1/bin</strong></p>
<p>[oracle@fusion bin]$ <strong>./config.sh</strong></p></blockquote>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring1.png" alt="" /></p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring2.png" alt="" /></p>
<p>Click <strong>Next</strong></p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring3.png" alt="" /></p>
<p>Select &#8220;<strong>Oracle HTTP Server</strong>&#8221; and click <strong>Next</strong></p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring4.png" alt="" /></p>
<p>For Instance location enter &#8220;/app/fusion/bea_default/instances&#8221; since we will keep all instances in this location. Provide any appropriate Instance name and OHS component name. We will go for the defaults. Click <strong>Next</strong></p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring5.png" alt="" /></p>
<p>Select &#8220;<strong>Specify Ports using Configuration File</strong>&#8221; and enter file name as <strong>/home/oracle/staticports.ini<br />
</strong></p>
<p>Now we will copy staticports.ini default file from &lt;repository_location&gt;/installers/webtier/Disk1/stage/Response to home directory /home/oracle</p>
<blockquote><p><strong>cp /mnt/fusion/installers/webtier/Disk1/stage/Response/staticports.ini ~/staticports.ini<br />
</strong></p></blockquote>
<p>Now click on &#8220;<strong>View/Edit File</strong>&#8221; to edit this file.</p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring6.png" alt="" /></p>
<p>Uncomment and set the following values. Click <strong>Save</strong></p>
<p><strong>OPMN Local Port = 6700<br />
</strong></p>
<p><strong>OHS Port = 7777<br />
</strong></p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring7.png" alt="" /></p>
<p>Click <strong>Next</strong></p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring8.png" alt="" /></p>
<p>Deselect email notification and click <strong>Next</strong></p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring9.png" alt="" /></p>
<p>Save summary if needed and click <strong>Configure</strong> to start configuration.</p>
<blockquote><p><strong>Important Note:</strong> If SELinux is enabled in your Linux operating System then it will throw an error. Since we already disabled it during installation, we will not see that error here.</p></blockquote>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring10.png" alt="" /></p>
<p>Once installation finishes, click <strong>Next</strong></p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring11.png" alt="" /></p>
<p>Save installation summary if needed and click <strong>Finish</strong> to complete the installation.</p>
<p>It would have already started HTTP server now. We can verify the same.</p>
<blockquote><p>[oracle@fusion instances]$ ps -ef | grep http</p>
<p><span style="font-size: 10pt;">oracle 3521 3491 0 10:06 ? 00:00:00 /app/fusion/bea_default/Oracle_WT1/ohs/bin/httpd.worker -DSSL<br />
</span></p>
<p><span style="font-size: 10pt;">oracle 3547 3521 0 10:06 ? 00:00:00 /app/fusion/bea_default/Oracle_WT1/ohs/bin/httpd.worker -DSSL<br />
</span></p>
<p><span style="font-size: 10pt;">oracle 3548 3521 0 10:06 ? 00:00:00 /app/fusion/bea_default/Oracle_WT1/ohs/bin/httpd.worker -DSSL<br />
</span></p>
<p><span style="font-size: 10pt;">oracle 3549 3521 0 10:06 ? 00:00:00 /app/fusion/bea_default/Oracle_WT1/ohs/bin/httpd.worker -DSSL<br />
</span></p></blockquote>
<p>Check /app/fusion/bea_default/Oracle_WT1/instances/instance1/config/OHS/ohs1/httpd.conf to make sure it reflects correct user and group name</p>
<p><strong>User oracle</strong></p>
<p><strong>Group oinstall<br />
</strong></p>
<p>We can launch <span style="color: red;">http://fusion:7777</span> (Homepage of Oracle HTTP server) now. It will look as follows.</p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring12.png" alt="" /></p>
<p><span style="color: #632423; font-size: 15pt; text-decoration: underline;"><strong>Create Weblogic Domain for Identity Management<br />
</strong></span></p>
<p>&nbsp;</p>
<p>Start the configuration from <strong>&lt;Middleware Home&gt;/oracle_common/commin/bin</strong></p>
<blockquote><p>[oracle@fusion bin]$ /app/fusion/bea_default/oracle_common/common/bin/config.sh</p></blockquote>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring13.png" alt="" /><strong><br />
</strong></p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring14.png" alt="" /><strong><br />
</strong></p>
<p>Select &#8220;Create a new Weblogic domain&#8221; and click<strong> Next<br />
</strong></p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring15.png" alt="" /><strong><br />
</strong></p>
<p>Select &#8220;<strong>Oracle Enterprise Manager – 11.1.1.0 [oracle_common]</strong>&#8221; and &#8220;<strong>Oracle JRF – 11.1.1.0 [oracle_common]</strong>&#8221; and click <strong>Next<br />
</strong></p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring16.png" alt="" /></p>
<p>Enter details as above or accept default values and click <strong>Next.<br />
</strong></p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring17.png" alt="" /><strong><br />
</strong></p>
<p>Since it accepts minimum 8 characters set password again to<strong><br />
</strong>oracle123. Please note that you can also change username from weblogic but in future whenever we refer to weblogic user you must enter the new user which selected. We will go for default &#8220;weblogic&#8221; username</p>
<p><strong><a href="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring18.png"><img class="alignnone size-full wp-image-882" title="020612_0626_Configuring18" src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring18.png" alt="" width="628" height="474" /></a><br />
</strong></p>
<p>You would see option of Oracle JRockit here. So select that JDK in this list.</p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring19.png" alt="" /><strong><br />
</strong></p>
<p>Select &#8220;Administration Server&#8221; and &#8220;Managed Servers, Clusters and Machines&#8221;. Click <strong>Next</strong></p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring20.png" alt="" /><strong><br />
</strong></p>
<p>Keep defaults but make a note of the port since this will be widely used during next part of installation. Click <strong>Next<br />
</strong></p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring21.png" alt="" /><strong><br />
</strong></p>
<p>Just click <strong>Next<br />
</strong></p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring22.png" alt="" /><strong><br />
</strong></p>
<p>Click <strong>Next</strong> again</p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring23.png" alt="" /><strong><br />
</strong></p>
<p>Select Second Tab &#8220;<strong>Unix Machine</strong>&#8221; and enter the hostname as above. Click <strong>Next<br />
</strong></p>
<p>&nbsp;</p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring24.png" alt="" /><strong><br />
</strong></p>
<p>Click on <strong>AdminServer</strong> and Click right arrow. Click <strong>Next</strong></p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring25.png" alt="" /><strong><br />
</strong></p>
<p>It will now look as above. Click <strong>Next<br />
</strong></p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring26.png" alt="" /><strong><br />
</strong></p>
<p>On Summary page click <strong>Create<br />
</strong></p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring27.png" alt="" /><strong><br />
</strong></p>
<p>Once installation finishes, click <strong>Done<br />
</strong></p>
<p>Make sure that the encrypted username and password values are already in boot.properties</p>
<blockquote><p>[oracle@fusion security]$ <span style="color: red;"><strong>more /app/fusion/bea_default/user_projects/domains/IDM_domain/servers/AdminServer/security/boot.properties</strong><br />
</span></p>
<p># Generated by Configuration Wizard on Mon Jan 23 10:59:07 GST 2012</p>
<p>username={AES}zaXc3+4y2KGuxnK6WkI7ehKcliQDeandkjdTdu0vpuY=</p>
<p>password={AES}WZ6Zo+j6aGoCyE2nQmCCdboEkA8TDGRlagdSqFGRedo=</p></blockquote>
<p>&nbsp;</p>
<p>Set StartScriptEnabled=true in nodemanager.properties by running following script</p>
<blockquote><p><strong>[oracle@fusion bin]$ <span style="color: red;">cd /app/fusion/bea_default/oracle_common/common/bin</span></strong></p>
<p><strong> [oracle@fusion bin]$ <span style="color: red;">./setNMProps.sh</span><br />
</strong></p>
<p>Appending required nodemanager.properties</p></blockquote>
<p>Verify the change.</p>
<blockquote><p><strong>[oracle@fusion bin]$ <span style="color: red;">tail -f /app/fusion/bea_default/wlserver_10.3/common/nodemanager/nodemanager.properties<br />
</span></strong></p>
<p>#Required NM Property overrides (append to existing nodemanager.properties)</p>
<p>StartScriptEnabled=true</p></blockquote>
<p>&nbsp;</p>
<p><span style="font-size: 13pt;"><strong>Start Node manager<br />
</strong></span></p>
<blockquote><p><strong>[oracle@fusion bin]$ <span style="color: red;">cd /app/fusion/bea_default/wlserver_10.3/server/bin<br />
</span></strong></p>
<p><strong>[oracle@fusion bin]$ <span style="color: red;">nohup ./startNodeManager.sh &amp;</span><br />
</strong></p>
<p><strong>…<br />
</strong></p>
<p>IDM_domain -&gt; /app/fusion/bea_default/user_projects/domains/IDM_domain</p>
<p>…</p>
<p>INFO: Secure socket listener started on port 5556</p></blockquote>
<p>&nbsp;</p>
<p><span style="font-size: 12pt;"><strong>Start Weblogic AdminServer<br />
</strong></span></p>
<blockquote><p>[oracle@fusion bin]$ <span style="color: red;"><strong>nohup</strong></span><br />
<span style="color: red;"><strong>/app/fusion/bea_default/user_projects/domains/IDM_domain/bin/startWebLogic.sh &amp;<br />
</strong></span></p></blockquote>
<p>tail nohup.out file until it shows following message.</p>
<p><strong>&lt;Jan 23, 2012 11:55:21 AM GST&gt; &lt;Notice&gt; &lt;WebLogicServer&gt; &lt;BEA-000360&gt; &lt;Server started in RUNNING mode&gt;</strong></p>
<p>&nbsp;</p>
<p><span style="font-size: 12pt;"><strong>Open Weblogic Admin Console<br />
</strong></span></p>
<p>Launch Weblogic Admin console through<strong><br />
<a href="http://fusion:7001/console">http://fusion:7001/console</a><br />
</strong></p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring28.png" alt="" /></p>
<p>Login with weblogic/oracle123</p>
<p>&nbsp;</p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring29.png" alt="" /><strong><br />
</strong></p>
<p>&nbsp;</p>
<p>Note: Go to preferences and change &#8220;automatic acquire lock&#8221; settings to avoid accidental changes since we are in development mode.</p>
<p>&nbsp;</p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring30.png" alt="" /><strong><br />
</strong></p>
<p>&nbsp;</p>
<p><span style="color: #632423;"><strong><span style="font-size: 13pt;">Configuring HTTP server for the Administration Server</span><span style="font-size: 14pt;"><br />
</span></strong></span></p>
<p>&nbsp;</p>
<p>Create a new file admin.conf as follows.</p>
<p>&nbsp;</p>
<blockquote><p>[oracle@fusion moduleconf]$ <strong>more /app/fusion/bea_default/Oracle_WT1/instances/<span style="color: red;">instance1/config/OHS/ohs1/moduleconf/admin.conf</span><br />
</strong></p>
<p>&lt;VirtualHost *:7777&gt;</p>
<p>ServerName fusion:80</p>
<p>ServerAdmin you@your.address</p>
<p>RewriteEngine On</p>
<p>RewriteOptions inherit</p>
<p>RewriteRule ^/console/jsp/common/logout.jsp /oamsso/logout.html [PT]</p>
<p>RewriteRule ^/em/targetauth/emaslogout.jsp /oamsso/logout.html [PT]</p>
<p># Admin Server and EM</p>
<p>&lt;Location /console&gt;</p>
<p>SetHandler weblogic-handler</p>
<p>WebLogicHost fusion</p>
<p>WeblogicPort 7001</p>
<p>&lt;/Location&gt;</p>
<p>&lt;Location /consolehelp&gt;</p>
<p>SetHandler weblogic-handler</p>
<p>WebLogicHost fusion</p>
<p>WeblogicPort 7001</p>
<p>&lt;/Location&gt;</p>
<p>&lt;Location /em&gt;</p>
<p>SetHandler weblogic-handler</p>
<p>WebLogicHost fusion</p>
<p>WeblogicPort 7001</p>
<p>&lt;/Location&gt;</p>
<p>&lt;/VirtualHost&gt;</p></blockquote>
<p>&nbsp;</p>
<p><strong style="font-size: 12pt;">Restart http server.</strong></p>
<blockquote><p>ORACLE_HOME=/app/fusion/bea_default/Oracle_WT1</p>
<p>export ORACLE_HOME</p>
<p>ORACLE_INSTANCE=/app/fusion/bea_default/Oracle_WT1/instances/instance1</p>
<p>export ORACLE_INSTANCE</p>
<p>PATH=$ORACLE_HOME/opmn/bin:$PATH</p>
<p>export PATH</p>
<p>&nbsp;</p>
<p>opmnctl stopall</p>
<p>opmnctl startall</p></blockquote>
<p>&nbsp;</p>
<p><span style="font-size: 12pt;"><strong>Now we need to Register HTTP server with Weblogic Server so that Enterprise Manager can monitor the instance.<br />
</strong></span></p>
<blockquote><p>[oracle@fusion ~]$ <span style="color: red;"><strong>opmnctl registerinstance -adminHost fusion -adminport 7001 -adminUsername weblogic</strong></span></p>
<p>Command requires login to weblogic admin server (fusion):</p>
<p>Username: weblogic</p>
<p>Password:</p>
<p>…</p>
<p>Done</p>
<p>Registering instance</p>
<p>Command succeeded.</p></blockquote>
<p>Note: We will not enable load-balancer access since we have skipped load-balancing in this single node installation guide.</p>
<p>&nbsp;</p>
<p><span style="font-size: 12pt; background-color: white;"><strong>Enable Weblogic Plugin<br />
</strong></span></p>
<p><span style="background-color: white;">Log in the Oracle Weblogic Server Administration and click on Lock and Edit. Click on IDMDomain and Click on Configuration tab and then select the Web Applications tab.</span></p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring31.png" alt="" /></p>
<p>&nbsp;</p>
<p><span style="color: #444444;"><strong>Scroll down and enable &#8220;Weblogic Plug-in Enabled&#8221;.<br />
</strong></span></p>
<p><a href="http://bloggingaboutoracleapplications.org/wp-content/uploads/431.png"><span style="text-decoration: underline;"><br />
</span></a>Click on Save and Activate the Changes.</p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring32.png" alt="" /></p>
<p><strong>Restart the Weblogic Administration Server.<br />
</strong></p>
<p>&nbsp;</p>
<h2><span style="color: #632423; text-decoration: underline;">Extending the Domain with Oracle Internet Directory<br />
</span></h2>
<p>Start the configuration from <strong>&lt;IDM Oracle Home/bin</strong></p>
<blockquote><p>[oracle@fusion bin]$ cd /app/fusion/bea_default/Oracle_IDM1/bin</p>
<p>[oracle@fusion bin]$ ./config.sh &amp;</p></blockquote>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring33.png" alt="" /></p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring34.png" alt="" /></p>
<p>Click <strong>Next</strong></p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring35.png" alt="" /></p>
<p>Select &#8220;<strong>Configure Without A Domain</strong>&#8221; and click <strong>Next</strong></p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring36.png" alt="" /></p>
<p>Make sure to select any directory inside MW_HOME/instances. You can accept default for Instance Name. Click <strong>Next</strong></p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring37.png" alt="" /></p>
<p>Deselect email notification and click <strong>Next</strong></p>
<p>&nbsp;</p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring38.png" alt="" /></p>
<p>Select only &#8220;<strong>Oracle Internet Directory</strong>&#8221; and click <strong>Next</strong></p>
<p>&nbsp;</p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring39.png" alt="" /></p>
<p>Select &#8220;<strong>Specify Ports using Configuration File</strong>&#8221; and enter file name as <strong>/home/oracle/staticports.ini<br />
</strong></p>
<p>In another terminal window copy the staticports.ini file to home directory.</p>
<blockquote><p>[oracle@fusion bin]$ cp /app/fusion/provisioning/idm/idm/Disk1/stage/Response/staticports.ini ~/</p></blockquote>
<p>Click on View/Edit file</p>
<p>&nbsp;</p>
<blockquote><p><span style="color: red;"><strong>VERY IMPORTANT:<br />
</strong></span></p>
<p>As per Oracle Manual we should Change it to as follows.</p>
<p style="background: white;"><span style="color: #002060;">#The Non-SSL port for OID<br />
</span></p>
<p style="background: white;"><span style="color: #002060;">Oracle Internet Directory Port No = 389<br />
</span></p>
<p style="background: white;"><span style="color: #002060;">#The SSL port for OID<br />
</span></p>
<p style="background: white;"><span style="color: #002060;">Oracle Internet Directory (SSL) Port No = 636<br />
</span></p>
<p>&nbsp;</p>
<p>But OID fails to configure and start at the end of installation with these values so we will stick to the OID values for 11g in the staticports.ini and just remove the comments.</p>
<p>&nbsp;</p>
<p style="background: white;"><span style="color: #002060;">#The Non-SSL port for OID<br />
</span></p>
<p style="background: white;"><span style="color: #002060;">Oracle Internet Directory Port No = 3060<br />
</span></p>
<p style="background: white;"><span style="color: #002060;">#The SSL port for OID<br />
</span></p>
<p style="background: white;"><span style="color: #002060;">Oracle Internet Directory (SSL) Port No = 3061<br />
</span></p>
</blockquote>
<p>&nbsp;</p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring40.png" alt="" /></p>
<p>Click <strong>Save</strong></p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring41.png" alt="" /></p>
<p>Once saved, click <strong>Next</strong></p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring42.png" alt="" /></p>
<p>Enter oracle123 or any suitable password. If you are using different passwords then please make a note of all of them. Click <strong>Next</strong></p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring43.png" alt="" /></p>
<p>Since we are not using any domains as such but as we have added an entry in our hosts file for fusion.localdomain, we will add &#8220;<strong>dc=localdomain</strong>&#8221; for Realm. Enter oracle123 or any suitable password. Click <strong>Next</strong></p>
<p>&nbsp;</p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring44.png" alt="" /></p>
<p>Save summary if needed and click <strong>Configure</strong> to start configuration.</p>
<p><strong><a href="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring46.png"><img class="alignnone size-full wp-image-881" title="020612_0626_Configuring46" src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring46.png" alt="" width="627" height="506" /></a></strong></p>
<p>Once installation finishes, click <strong>Next</strong></p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring47.png" alt="" /><strong><br />
</strong></p>
<p>Save installation summary if needed and click <strong>Finish</strong> to complete the installation.</p>
<p>&nbsp;</p>
<p><strong>Validate the OID installation<br />
</strong></p>
<blockquote><p>[oracle@fusion ~]$ <span style="color: red;"><strong>export ORACLE_HOME=/app/fusion/bea_default/Oracle_IDM1<br />
</strong></span></p>
<p>[oracle@fusion ~]$ <span style="color: red;"><strong>export ORACLE_INSTANCE=/app/fusion/bea_default/instances/oid_inst1<br />
</strong></span></p>
<p>[oracle@fusion ~]$ <span style="color: red;"><strong>export PATH=$ORACLE_HOME/opmn/bin:$ORACLE_HOME/bin:$ORACLE_HOME/ldap/bin:$ORACLE_HOME/ldap/admin:$PATH<br />
</strong></span></p>
<p>[oracle@fusion ~]$ <span style="color: red;"><strong>ldapbind -h fusion -p 3060 -D &#8220;cn=orcladmin&#8221; -q<br />
</strong></span></p>
<p>Please enter bind password:</p>
<p>bind successful</p>
<p>[oracle@fusion ~]$ <span style="color: red;"><strong>ldapbind -h fusion -p 3061 -D &#8220;cn=orcladmin&#8221; -q -U 1</strong></span></p>
<p>Please enter bind password:</p>
<p>bind successful</p>
<p>[oracle@fusion ~]$ <span style="color: red;"><strong>opmnctl status</strong></span></p>
<p>Processes in Instance: oid_inst1</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+&#8212;&#8212;&#8212;+&#8212;&#8212;&#8212;</p>
<p>ias-component | process-type | pid | status</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+&#8212;&#8212;&#8212;+&#8212;&#8212;&#8212;</p>
<p>oid1 | oidldapd | 19810 | Alive</p>
<p>oid1 | oidldapd | 19798 | Alive</p>
<p>oid1 | oidmon | 19785 | Alive</p>
<p>EMAGENT | EMAGENT | 19325 | Alive</p></blockquote>
<p>&nbsp;</p>
<p><span style="color: #632423;"><strong><span style="font-size: 13pt;">Registering Oracle Internet Directory with the WebLogic Server Domain</span><span style="font-size: 14pt;"><br />
</span></strong></span></p>
<blockquote><p>[oracle@fusion ~]$ <span style="color: red;"><strong>echo $ORACLE_HOME</strong></span></p>
<p>/app/fusion/bea_default/Oracle_IDM1</p>
<p>[oracle@fusion ~]$ <span style="color: red;"><strong>echo $ORACLE_INSTANCE</strong></span></p>
<p>/app/fusion/bea_default/instances/oid_inst1</p>
<p>[oracle@fusion ~]$ <span style="color: red;"><strong>opmnctl registerinstance -adminHost fusion -adminPort 7001 -adminUsername weblogic<br />
</strong></span></p>
<p>Command requires login to weblogic admin server (fusion):</p>
<p>Username: weblogic</p>
<p>Password:</p>
<p>Registering instance</p>
<p>Command succeeded.</p></blockquote>
<p>&nbsp;</p>
<p><strong>Note:</strong> We have skipped next steps related to SSL since we are setting up non-SSL connections here.</p>
<p>&nbsp;</p>
<p><span style="color: black; font-size: 12pt; background-color: white;"><strong>Update the Enterprise Manager Repository URL</strong><br />
</span></p>
<p><span style="color: black; background-color: white;">Next we will update the Enterprise Manager Repository URL using the emctl utility with the <strong>switchOMS</strong> flag. The emctl utility is located under the <em>ORACLE_INSTANCE</em><span style="font-family: Courier New; font-size: 10pt;">/EMAGENT/EMAGENT/bin </span>directory.<br />
</span></p>
<blockquote><p>[oracle@fusion ~]$ <span style="color: red;"><strong>cd /app/fusion/bea_default/instances/oid_inst1/EMAGENT/EMAGENT/bin</strong></span></p>
<p>[oracle@fusion bin]$ <span style="color: red;"><strong>./emctl switchOMS http://fusion:7001/em/upload<br />
</strong></span></p>
<p>Oracle Enterprise Manager 10g Release 5 Grid Control 10.2.0.5.0.</p>
<p>Copyright (c) 1996, 2009 Oracle Corporation. All rights reserved.</p>
<p>SwitchOMS succeeded.</p></blockquote>
<p>&nbsp;</p>
<p>We can now verify whether this instance is registered for monitoring agent.</p>
<p>Login to <strong>http://fusion:7001/em</strong></p>
<p>Click on <strong>Farm-&gt;Agent monitored targets.</strong></p>
<p>&nbsp;</p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring48.png" alt="" /><strong><br />
</strong></p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring49.png" alt="" /><strong><br />
</strong></p>
<p>You should be able to see the OID instance under this. Make sure that the Agent URL is showing up fine. If the status shows as &#8220;Need Configuration&#8221; then click on Configure and then in next screen enter weblogic user credentials. It should now show the correct Agent URL.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p style="background: white;"><span style="color: #632423; font-size: 15pt; text-decoration: underline;"><strong>Extending the Domain with Oracle Directory Service Manager (ODSM)<br />
</strong></span></p>
<p>Start the configuration from <strong>&lt;IDM Oracle Home&gt;/bin</strong></p>
<blockquote><p>[oracle@fusion bin]$ cd /app/fusion/bea_default/Oracle_IDM1/bin</p>
<p>[oracle@fusion bin]$ <span style="color: red;"><strong>./config.sh &amp;</strong></span></p></blockquote>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring50.png" alt="" /><strong><br />
</strong></p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring51.png" alt="" /><strong><br />
</strong></p>
<p>Click<strong> Next<br />
</strong></p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring52.png" alt="" /><strong><br />
</strong></p>
<p>Select &#8220;<strong>Extend Existing Domain</strong>&#8221; and enter details of existing weblogic Server and AdminServer port. Click <strong>Next</strong></p>
<p>&nbsp;</p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring53.png" alt="" /><strong><br />
</strong></p>
<p>You can ignore this error since we created this domain using the Identity Management installer. Click <strong>Yes</strong> to ignore.</p>
<p>&nbsp;</p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring54.png" alt="" /><strong><br />
</strong></p>
<p>Verify that the weblogic server directory shown is correct as per previous steps. Specify name and path for Oracle Directory Service instance. Make sure to keep the instance in same parent directory as previous instances. Click <strong>Next</strong></p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring55.png" alt="" /></p>
<p>Deselect email notification and click <strong>Next</strong></p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring56.png" alt="" /></p>
<p>Select Oracle &#8220;<strong>Directory Service Manager</strong>&#8221; and click <strong>Next</strong></p>
<p>&nbsp;</p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring57.png" alt="" /></p>
<p>Select &#8220;<strong>Specify Ports using Configuration File</strong>&#8221; and enter file name as <strong>/home/oracle/staticports.ini</strong></p>
<p>Meanwhile in another terminal window copy the <strong>staticports.ini</strong> to home directory.</p>
<blockquote><p>[oracle@fusion bin]$ cp -p /app/fusion/provisioning/idm/idm/Disk1/stage/Response/staticports.ini ~/</p></blockquote>
<p>&nbsp;</p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring58.png" alt="" /></p>
<p>Uncomment the ODS Server Port and keep it default 7006. Click Save.</p>
<p>&nbsp;</p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring59.png" alt="" /></p>
<p>Once Saved click Next.</p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring60.png" alt="" /></p>
<p>Save summary if needed and click <strong>Configure</strong> to start configuration.</p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring61.png" alt="" /></p>
<p>Once installation finishes, click <strong>Next</strong></p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring62.png" alt="" /></p>
<p>Save installation summary if needed and click <strong>Finish</strong> to complete the installation.</p>
<p>&nbsp;</p>
<p><span style="font-size: 12pt;"><strong>Password-less startup for ODS<br />
</strong></span></p>
<blockquote><p>cd /app/fusion/bea_default/user_projects/domains/IDM_domain/servers/wls_ods1/security</p>
<p>cp ../../AdminServer/security/boot.properties .</p>
<p>cd /app/fusion/bea_default/user_projects/domains/IDM_domain/bin</p>
<p>nohup ./startManagedWebLogic.sh wls_ods1<strong><br />
</strong></p></blockquote>
<p>&nbsp;</p>
<p>Now you can access ODS homepage at <a href="http://fusion:7006/odsm/faces/odsm.jspx">http://fusion:7006/odsm/faces/odsm.jspx</a> (as per the above post-installation summary screen)</p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring63.png" alt="" /></p>
<p>&nbsp;</p>
<p><span style="font-size: 12pt;"><strong>Register ODS with OID<br />
</strong></span></p>
<p>&nbsp;</p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring64.png" alt="" /></p>
<p>Click on <strong>Connect to a directory</strong> -&gt; <strong>Create A New Connection</strong></p>
<p>&nbsp;</p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring65.png" alt="" /></p>
<p>Enter the details for OID.</p>
<p>Name: <strong>fusion-oid</strong></p>
<p>Server: <strong>fusion</strong></p>
<p>SSL Enabled: <strong>Unchecked</strong></p>
<p>User Name: <strong>cn=orcladmin</strong></p>
<p>Password: <strong>oracel123</strong></p>
<p>Start Page: <strong>Home</strong></p>
<p>Click <strong>Connect</strong></p>
<p>&nbsp;</p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring66.png" alt="" /></p>
<p>Once connection is successful, you should be able to see OID page.<img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring67.png" alt="" /></p>
<p>You can randomly check whether you are able to see details of any user, for example <strong>cn=orcladmin</strong></p>
<p>&nbsp;</p>
<p><span style="color: #632423; font-size: 13pt;"><strong>Configuring Oracle HTTP Servers to Access the ODSM Console<br />
</strong></span></p>
<blockquote><p>[oracle@fusion moduleconf]$ cd /app/fusion/bea_default/Oracle_WT1/instances/instance1/config/OHS/ohs1/moduleconf</p>
<p>[oracle@fusion moduleconf]$ vi admin.conf</p>
<p><strong># Append following lines in admin.conf</strong></p>
<p><span style="color: red;"> &lt;Location /odsm&gt;<br />
</span></p>
<p><span style="color: red;"> SetHandler weblogic-handler<br />
</span></p>
<p><span style="color: red;"> WebLogicCluster fusion:7006<br />
</span></p>
<p><span style="color: red;"> &lt;/Location&gt;<br />
</span></p></blockquote>
<p>&nbsp;</p>
<p><strong>Restart HTTP server.<br />
</strong></p>
<p>Now we can access ODSM through <a href="http://fusion:7777/odsm/faces/odsm.jspx">http://fusion:7777/odsm/faces/odsm.jspx</a></p>
<p>&nbsp;</p>
<p><span style="text-decoration: underline;"><strong style="color: #632423;"><span style="font-size: 15pt;">Extending the Domain with Oracle Virtual Directory</span></strong></span></p>
<p>Start the configuration from <strong>&lt;IDM Oracle Home&gt;/bin</strong></p>
<blockquote><p>[oracle@fusion ~]$ cd /app/fusion/bea_default/Oracle_IDM1/bin/</p>
<p>[oracle@fusion bin]$ ./config.sh &amp;</p></blockquote>
<p>&nbsp;</p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring68.png" alt="" /></p>
<p>Click <strong>Next</strong></p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring69.png" alt="" /></p>
<p>Select &#8220;<strong>Configure Without A Domain</strong>&#8220;. Click <strong>Next</strong></p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring70.png" alt="" /></p>
<p>Provide values for Oracle Virtual Directory (OVD) instance. You can accept default values. Click <strong>Next</strong></p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring71.png" alt="" /></p>
<p>Deselect email notification and click <strong>Next</strong></p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring72.png" alt="" /></p>
<p>Select &#8220;<strong>Oracle Virtual Directory</strong>&#8221; and click <strong>Next</strong></p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring73.png" alt="" /></p>
<p>Select &#8220;<strong>Specify Ports using Configuration File</strong>&#8221; and enter file name as <strong>/home/oracle/staticports.ini</strong></p>
<p>Open a separate terminal/putty window and copy <strong>staticports.ini</strong> file to home directory.</p>
<blockquote><p>[oracle@fusion ~]$ cp /app/fusion/provisioning/idm/idm/Disk1/stage/Response/staticports.ini ~/</p></blockquote>
<p>Click on <strong>View/Edit</strong>.</p>
<p style="background: white;"><span style="color: black;">Edit the staticports.ini file to assign ports 6501 and 7501, as follows.<br />
</span></p>
<blockquote>
<p style="background: white;"><span style="color: black;"># The non-SSL port for Oracle Virtual Directory<br />
</span></p>
<p style="background: white;"><span style="color: black;">Oracle Virtual Directory port = 6501<br />
</span></p>
<p style="background: white;"><span style="color: black;"># The SSL port for Oracle Virtual Directory<br />
</span></p>
<p style="background: white;"><span style="color: black;">Oracle Virtual Directory (SSL) port = 7501<br />
</span></p>
</blockquote>
<p style="background: white;"><span style="color: black;">Click <strong>Save</strong> and then <strong>Next<br />
</strong></span></p>
<p style="background: white;"><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring74.png" alt="" /><span style="color: black;"><br />
</span></p>
<p style="background: white;"><span style="color: black;">Provide OID login details.<br />
</span></p>
<p style="background: white;"><span style="color: black;">Uncheck &#8220;Configure Administrative Server in secure mode&#8221; since we are not using SSL anywhere in this installation. Click <strong>Next</strong><br />
</span></p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring75.png" alt="" /></p>
<p>Click <strong>Ok<br />
</strong></p>
<p>&nbsp;</p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring76.png" alt="" /></p>
<p>Save summary if needed and click <strong>Configure</strong> to start configuration.</p>
<p>&nbsp;</p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring77.png" alt="" /></p>
<p>Once installation finishes, click <strong>Next</strong></p>
<p>&nbsp;</p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring78.png" alt="" /></p>
<p>Save installation summary if needed and click <strong>Finish</strong> to complete the installation.</p>
<p>&nbsp;</p>
<p><span style="font-size: 13pt;"><strong>Registering OVD with the Oracle WebLogic Server Domain<br />
</strong></span></p>
<blockquote><p>[oracle@fusion bin]$ cd /app/fusion/bea_default/instances/ovd_inst1/bin</p>
<p>[oracle@fusion bin]$ <span style="color: red;"><strong>./opmnctl registerinstance -adminHost fusion -adminPort 7001 -adminUsername</strong></span> weblogic</p>
<p>Command requires login to weblogic admin server (fusion):</p>
<p>Username: weblogic</p>
<p>Password:</p>
<p>Registering instance</p>
<p>Command succeeded.</p></blockquote>
<p>&nbsp;</p>
<p><span style="color: black; background-color: white;"><strong>Update the Enterprise Manager Repository URL using the emctl utility with the switchOMS flag.</strong><br />
</span></p>
<p><span style="color: black; background-color: white;">The emctl utility is located under the <em>ORACLE_INSTANCE</em><span style="font-family: Courier New; font-size: 10pt;">/EMAGENT/EMAGENT/bin </span>directory.<br />
</span></p>
<blockquote><p>[oracle@fusion bin]$ cd /app/fusion/bea_default/instances/ovd_inst1/EMAGENT/EMAGENT/bin</p>
<p>[oracle@fusion bin]$ <span style="color: red;"><strong>./emctl switchOMS http://fusion:7001/em/upload</strong></span></p>
<p>Oracle Enterprise Manager 10g Release 5 Grid Control 10.2.0.5.0.</p>
<p>Copyright (c) 1996, 2009 Oracle Corporation. All rights reserved.</p>
<p>SwitchOMS succeeded.</p></blockquote>
<p>&nbsp;</p>
<p>We can now verify whether this instance is registered for monitoring agent.</p>
<p>Login to <strong>http://fusion:7001/em</strong></p>
<p>Click on <strong>Farm-&gt;Agent monitored targets.</strong></p>
<p>&nbsp;</p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring79.png" alt="" /><br />
<img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring80.png" alt="" /><br />
<img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring81.png" alt="" /><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring82.png" alt="" /></p>
<p>You should be able to see the OID and OVD instances under this. Make sure that the Agent URL is showing up fine. If the status shows as &#8220;Need Configuration&#8221; then click on Configure and then in next screen enter weblogic user credentials. It should now show the correct Agent URL.</p>
<p>&nbsp;</p>
<p><span style="font-size: 13pt;"><strong>Validate the Oracle Virtual Directory Instances<br />
</strong></span></p>
<blockquote><p>[oracle@fusion ~]$ <span style="color: red;"><strong>export ORACLE_HOME=/app/fusion/bea_default/Oracle_IDM1<br />
</strong></span></p>
<p>[oracle@fusion ~]$ <span style="color: red;"><strong>export ORACLE_INSTANCE=/app/fusion/bea_default/instances/ovd_inst1<br />
</strong></span></p>
<p>[oracle@fusion ~]$ <span style="color: red;"><strong>export PATH=$ORACLE_HOME/opmn/bin:$ORACLE_HOME/bin:$ORACLE_HOME/ldap/bin:$ORACLE_HOME/ldap/admin:$PATH<br />
</strong></span></p>
<p>[oracle@fusion bin]$ <span style="color: red;"><strong>ldapbind -h fusion -p 6501 -D &#8220;cn=orcladmin&#8221; –q</strong></span></p>
<p>Please enter bind password:</p>
<p>bind successful</p>
<p>[oracle@fusion bin]$ <span style="color: red;"><strong>ldapbind -h fusion -p 7501 -D &#8220;cn=orcladmin&#8221; -q -U 1<br />
</strong></span></p>
<p>Please enter bind password:</p>
<p>SSL handshake failed</p>
<p><span style="color: red;">This is fine since we did not configure SSL mode.</span></p></blockquote>
<p>&nbsp;</p>
<p><span style="color: #632423; font-size: 13pt;"><strong>Creating ODSM connections to Oracle Virtual Directory<br />
</strong></span></p>
<p>Open <a href="http://fusion:7777/odsm/faces/odsm.jspx">http://fusion:7777/odsm/faces/odsm.jspx</a></p>
<p>Click <strong>Connect to a directory</strong> -&gt; <strong>Create a new connection</strong></p>
<p>&nbsp;</p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring83.png" alt="" /></p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring84.png" alt="" /></p>
<p>Enter details of OVD here.</p>
<p>Name: <strong>fusion-ovd</strong></p>
<p>Host: <strong>fusion</strong></p>
<p>Port: <strong>8899</strong></p>
<p>SSL Enabled: <strong>Unchecked</strong></p>
<p>User Name: <strong>cn=orcladmin</strong></p>
<p>Password: <strong>oracle123</strong></p>
<p>Start Page: <strong>Home</strong></p>
<p>Click <strong>Connect</strong></p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring85.png" alt="" /></p>
<p>It will display OVD home page.</p>
<p>&nbsp;</p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring86.png" alt="" /></p>
<p>Note: We are skipping the adapter creation for now. We will create them later once needed.</p>
<p>&nbsp;</p>
<p><span style="color: #632423; font-size: 15pt; text-decoration: underline;"><strong>Extending the Domain with Oracle Access Manager<br />
</strong></span></p>
<p>&nbsp;</p>
<p>Start the configuration from <strong>&lt;Middleware Home/oracle_common/commin/bin</strong></p>
<blockquote><p>[oracle@fusion bin]$ cd /app/fusion/bea_default/oracle_common/common/bin</p>
<p>[oracle@fusion bin]$ <span style="color: red;"><strong>./config.sh</strong></span></p></blockquote>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring87.png" alt="" /></p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring88.png" alt="" /></p>
<p>Click &#8220;Extend an existing WebLogic domain&#8221; and click <strong>Next</strong></p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring89.png" alt="" /></p>
<p>Scroll down and select <strong>user_projects-&gt;domains-&gt;IDM_domain</strong>. Click <strong>Next<br />
</strong></p>
<p>&nbsp;</p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring90.png" alt="" /></p>
<p style="background: white;">Select only &#8220;<strong>Oracle Access Manager with Database Policy Store&#8221;</strong> and click on Next.</p>
<p>&nbsp;</p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring91.png" alt="" /></p>
<p>Here you need to provide the database connection details and choose schema owner username. You can keep the name default but make sure to keep a note of it since you will need this later. Choose a password for example oracle123. Click <strong>Next</strong></p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring92.png" alt="" /></p>
<p>Now it will test the database connectivity through JDBC.</p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring93.png" alt="" /></p>
<p>Once successful, click <strong>Next</strong></p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring94.png" alt="" /></p>
<p>Select &#8220;Managed Servers, Clusters and Machines&#8221; only and click <strong>Next</strong></p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring95.png" alt="" /></p>
<p>The first row was from previous configuration of ODS and now there will be another row for OAM. Keep the default port and make a note of it. Enter wls_oam1 for the instance name (or whichever you chose while creating instance) and click <strong>Next</strong></p>
<p>&nbsp;</p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring96.png" alt="" /></p>
<p>Just click <strong>Next</strong></p>
<p>&nbsp;</p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring97.png" alt="" /></p>
<p>On the &#8220;<strong>Machines</strong>&#8221; tab make sure that correct hostname is entered. Click <strong>Next</strong></p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring98.png" alt="" /></p>
<p>Select <strong>wls_oam1</strong> and click the right arrow.</p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring99.png" alt="" /></p>
<p>Now it should look as above. Click <strong>Next</strong></p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring100.png" alt="" /></p>
<p>On the summary page Click <strong>Extend</strong>.</p>
<p>&nbsp;</p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring101.png" alt="" /></p>
<p>Click <strong>OK</strong> Since we are aware that these are correct ports being used by AdminServer and wls_ods1 instance.</p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring102.png" alt="" /></p>
<p>Once configuration finishes, click <strong>Done</strong>.</p>
<p>You can start the managed server by using following command.</p>
<blockquote><p>[oracle@fusion bin]$ <span style="color: red;"><strong>cd /app/fusion/bea_default/user_projects/domains/IDM_domain/bin</strong></span></p>
<p>[oracle@fusion bin]$ .<span style="color: red;"><strong>/startManagedWebLogic.sh wls_oam1</strong></span></p></blockquote>
<p>This will create the directory <strong>/app/fusion/bea_default/user_projects/domains/IDM_domain/servers/wls_oam1</strong></p>
<p>Press CTRL+C to stop the process since we will need to configure startup without password prompt.</p>
<blockquote><p>[oracle@fusion wls_oam1]$ <span style="color: red;"><strong>cd /app/fusion/bea_default/user_projects/domains/IDM_domain/servers/wls_oam1</strong></span></p>
<p>[oracle@fusion wls_oam1]$ <span style="color: red;"><strong>cp ../wls_ods1/security/ boot.properties .</strong></span></p></blockquote>
<p>&nbsp;</p>
<p>Now we can start the managed server without prompting for password.</p>
<blockquote><p>[oracle@fusion bin]$ <span style="color: red;"><strong>cd /app/fusion/bea_default/user_projects/domains/IDM_domain/bin</strong></span></p>
<p>[oracle@fusion bin]$ <span style="color: red;"><strong>nohup ./startManagedWebLogic.sh wls_oam1 &amp;</strong></span></p></blockquote>
<p>&nbsp;</p>
<p><span style="color: #632423; font-size: 13pt;"><strong>Configuring Oracle HTTP Servers to Display Login Page and Oracle Access Manager Console</strong><br />
</span></p>
<p><strong>Append</strong> following entries in /app/fusion/bea_default/Oracle_WT1/instances/<strong>instance1/config/OHS/ohs1/moduleconf/admin.conf</strong></p>
<blockquote><p> <span style="color: red;">&lt;Location /oam&gt;</span></p>
<p><span style="color: red;"> SetHandler weblogic-handler<br />
</span></p>
<p><span style="color: red;"> WebLogicCluster fusion:14100<br />
</span></p>
<p><span style="color: red;"> &lt;/Location&gt;<br />
</span></p>
<p>&nbsp;</p>
<p><span style="color: red;"> &lt;Location /oamconsole&gt;<br />
</span></p>
<p><span style="color: red;"> SetHandler weblogic-handler<br />
</span></p>
<p><span style="color: red;"> WebLogicHost fusion<br />
</span></p>
<p><span style="color: red;"> WebLogicPort 7001<br />
</span></p>
<p><span style="color: red;"> &lt;/Location&gt;<br />
</span></p></blockquote>
<p>&nbsp;</p>
<p><strong>Restart HTTP Server</strong> to bring this to effect.</p>
<p><strong>Note: </strong>There are few other steps as well as per Oracle documentation but we will skip them for now.</p>
<p>&nbsp;</p>
<p><span style="color: #632423; font-size: 15pt; text-decoration: underline;"><strong>Extending the Domain to Configure Oracle Identity Manager and Oracle SOA Suite<br />
</strong></span></p>
<p>&nbsp;</p>
<p>Start the configuration from <strong>&lt;Middleware Home/oracle_common/common/bin</strong></p>
<blockquote><p>[oracle@fusion bin]$ <span style="color: red;"><strong>cd /app/fusion/bea_default/oracle_common/common/bin</strong></span></p>
<p>[oracle@fusion bin]$ <span style="color: red;"><strong>./config.sh &amp;<br />
</strong></span></p></blockquote>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring103.png" alt="" /></p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring104.png" alt="" /></p>
<p>Select &#8220;<strong>Extend an existing WebLogic domain</strong>&#8221; and click <strong>Next</strong></p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring105.png" alt="" /></p>
<p>Scroll down and select <strong>user_projects-&gt;domains-&gt;IDM_domain</strong> and click <strong>Next</strong></p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring106.png" alt="" /></p>
<p>Select <strong>Oracle Identity Manager</strong>. It will automatically select <strong>Oracle SOA Suite</strong> and <strong>Oracle WSM</strong>. Click <strong>Next</strong></p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring107.png" alt="" /></p>
<p>Check all to modify all entries together. Provide database connect details and select a password for all. Accept default value for Schema owner names. Click <strong>Next</strong></p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring108.png" alt="" /></p>
<p>Now it will test the database connectivity through JDBC.</p>
<p>&nbsp;</p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring109.png" alt="" /></p>
<p>Once JDBC test is successful, click <strong>Next</strong></p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring110.png" alt="" /></p>
<p>Select only &#8220;<strong>Managed Servers, Clusters and Machines</strong>&#8221; and click <strong>Next</strong></p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring111.png" alt="" /></p>
<p>Add entries for <strong>soa_server1</strong> and <strong>oim_server1</strong>. As per Oracle documentation you can change them to <strong>wls_soa1</strong> and <strong>wls_oim1</strong> as well. But here we have kept them as default.<strong><br />
</strong></p>
<p>Note the ports and click <strong>Next. </strong></p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring112.png" alt="" /></p>
<p>Just click <strong>Next</strong></p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring113.png" alt="" /></p>
<p>Since we are using Linux/Unix machine, <strong>delete</strong> entry from above screen. And proceed to <strong>Unix Machine</strong> tab.</p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring114.png" alt="" /></p>
<p>Make sure correct hostname is entered here. Click <strong>Next</strong></p>
<p><a href="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring115.png"><img class="alignnone size-full wp-image-880" title="020612_0626_Configuring115" src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring115.png" alt="" width="628" height="472" /></a></p>
<p>Select <strong>oim_server1</strong> and <strong>soa_server1</strong> and click right arrow. (if you had renamed them to <strong>wls_oim1</strong> and <strong>wls_soa1</strong> then you will see those entries instead of this)</p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring116.png" alt="" /><strong><br />
</strong></p>
<p>The screen will now look like above. Click <strong>Next</strong></p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring117.png" alt="" /><strong><br />
</strong></p>
<p>On Summary screen click <strong>Next</strong></p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring118.png" alt="" /><strong><br />
</strong></p>
<p>Click<strong> OK</strong></p>
<p>&nbsp;</p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring119.png" alt="" /><strong><br />
</strong></p>
<p>Once configuration finishes, click <strong>Done<br />
</strong></p>
<p>&nbsp;</p>
<p><span style="color: #632423; font-size: 14pt;"><strong>Configuring Oracle Identity Manager<br />
</strong></span></p>
<p>Now we will configure the Identity Manager from<strong> &lt;IAM Oracle Home&gt;/bin</strong></p>
<blockquote><p>[oracle@fusion bin]$ <strong><span style="color: red;">cd /app/fusion/bea_default/Oracle_IAM/bin</span><br />
</strong></p>
<p>[oracle@fusion bin]$ <span style="color: red;"><strong>./config.sh &amp;</strong></span></p></blockquote>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring120.png" alt="" /><strong><br />
</strong></p>
<p>Click<strong> Next<br />
</strong></p>
<p>&nbsp;</p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring121.png" alt="" /><strong><br />
</strong></p>
<p>Select only OIM Server and click <strong>Next</strong></p>
<p>&nbsp;</p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring122.png" alt="" /><strong><br />
</strong></p>
<p>Enter database details in shown format &#8220;<strong>fusion:1521:fusiondb</strong>&#8220;. Select Schema names (keep default) and enter password (oracle123). Make sure to keep a note of these schema names <strong>DEV_OIM</strong> and <strong>DEV_MDS</strong>. We will need these later during provisioning plan. Click <strong>Next<br />
</strong></p>
<p>&nbsp;</p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring123.png" alt="" /><strong><br />
</strong></p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring124.png" alt="" /><strong><br />
</strong></p>
<p>Enter AdminServer details in <strong>t3://&lt;hostname&gt;:&lt;port&gt; </strong>format. Here<strong> t3://fusion:7001<br />
</strong></p>
<p>&nbsp;</p>
<blockquote><p><strong>Important Note: </strong>Before clicking next make sure that AdminServer is running otherwise it may throw following error on next page. Start or restart AdminServer if you see this error.<strong><br />
</strong></p>
<p><span style="color: red;">INST-6180: Error while retrieving OIM Managed Server URL from the domain.</span></p></blockquote>
<p>&nbsp;</p>
<p>Click <strong>Next</strong></p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring125.png" alt="" /><strong><br />
</strong></p>
<p>Enter passwords as follows and keep a note of them since we will require them in provisioning wizard.</p>
<p>OIM Admin password: Oracle123</p>
<p>Keystore Password: oracle123</p>
<p>Enter OIM HTTP URL as <a href="http://fusion:14000">http://fusion:14000</a> (based on port value in previous configuration step). Click <strong>Next</strong></p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring126.png" alt="" /><strong><br />
</strong></p>
<p>Deselect both and click <strong>Next<br />
</strong></p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring127.png" alt="" /><strong><br />
</strong></p>
<p>Save the summary if required and click <strong>Configure.<br />
</strong></p>
<p>&nbsp;</p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring128.png" alt="" /><strong><br />
</strong></p>
<p>Once configuration finishes click <strong>Next<br />
</strong></p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring129.png" alt="" /><strong><br />
</strong></p>
<p>Save the configuration summary if needed and click <strong>Finish</strong> to complete the configuration.</p>
<p>&nbsp;</p>
<p><span style="color: #632423; font-size: 15pt; text-decoration: underline;"><strong>Installing and Configuring WebGate<br />
</strong></span></p>
<p>Start Webgate 10g installation from <strong>&lt;repository_location&gt;/installers/webgate</strong></p>
<blockquote><p>[oracle@fusion webgate]$ <span style="color: red;"><strong>cd /mnt/fusion/installers/webgate</strong></span></p>
<p>[oracle@fusion webgate]$ <span style="color: red;"><strong>./Oracle_Access_Manager10_1_4_3_0_linux64_OHS11g_WebGate –gui<br />
</strong></span></p></blockquote>
<p>&nbsp;</p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring130.png" alt="" /></p>
<p>Click <strong>Next</strong></p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring131.png" alt="" /></p>
<p>Enter the OS oracle user details. Click <strong>Next</strong></p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring132.png" alt="" /></p>
<p>Select a path where you want to install webgate. We have selected <strong>/app/fusion/webgate</strong>. Click <strong>Next</strong></p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring133.png" alt="" /></p>
<p>Click <strong>Next</strong></p>
<p>&nbsp;</p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring134.png" alt="" /></p>
<p>Open a new terminal/putty window and execute following commands. Once done enter the location /app/fusion/oam_lib in this screen and click <strong>Next</strong> to start the installation.<strong><br />
</strong></p>
<p>&nbsp;</p>
<blockquote><p>[oracle@fusion oam_lib]$ <strong>mkdir /app/fusion/oam_lib</strong></p>
<p>[oracle@fusion oam_lib]$ <strong>ln -s /usr/lib64/libstdc++.so.5 /app/fusion/oam_lib/libstdc++.so.5<br />
</strong></p>
<p>[oracle@fusion oam_lib]$ <strong>ln -s /lib64/libgcc_s.so.1 /app/fusion/oam_lib/libgcc_s.so.1</strong></p></blockquote>
<p>&nbsp;</p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring135.png" alt="" /></p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring136.png" alt="" /></p>
<p>Now WebGate Configuration will start. Select &#8220;<strong>Open Mode</strong>&#8221; and click <strong>Next</strong></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring137.png" alt="" /></p>
<p>&nbsp;</p>
<p>Since this screen requires WebGate ID from Access Manager. We need to first create a Webgate Agent in Access Manager. So keep this Java window open and open Oracle Access Manager Console in browser by entering <a href="http://fusion/oamconsole">http://fusion/oamconsole</a> or <a href="http://fusion:7777/oamconsole">http://fusion:7777/oamconsole</a></p>
<p>&nbsp;</p>
<p>Note: We could have done this before starting Webgate installation as well but keeping it here in the guide gives you an idea where we are going to this configuration. Next time when you install, you can do this step before itself.</p>
<p>&nbsp;</p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring138.png" alt="" /></p>
<p>Login with weblogic admin user.</p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring139.png" alt="" /></p>
<p>Once logged under SSO Agents, click on New &#8220;<strong>OAM 10g Webgate</strong>&#8221; (since we are installing 10g webgate).</p>
<p>&nbsp;</p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring140.png" alt="" /></p>
<p>Enter name: <strong>Webgate_sso</strong> or any name</p>
<p>Base URL: <strong>http://fusion:7777<br />
</strong></p>
<p>Host Identifier: <strong>Webgate_sso</strong></p>
<p>Security: <strong>Open</strong></p>
<p>Uncheck all 3 options on right.</p>
<p><strong>Click Apply</strong></p>
<p>&nbsp;</p>
<p>Now <strong>Edit</strong> the same Webgate Agent again. It will show following screen.</p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring141.png" alt="" /></p>
<p>&nbsp;</p>
<p>We did not put <span style="text-decoration: underline;">domain</span> since we are using only <a href="http://fusion">http://fusion</a></p>
<p><span style="text-decoration: underline;">Change Max Connections</span> to <strong>4</strong></p>
<p><span style="text-decoration: underline;">Logout URL:</span> Enter following values.</p>
<p><strong>/oamconsole/logout.html<br />
</strong></p>
<p><strong>/console/jsp/common/logout.jsp<br />
</strong></p>
<p><strong>/em/targetauth/eamlogout.jsp<br />
</strong></p>
<p>&nbsp;</p>
<p>Click <strong>Apply<br />
</strong></p>
<p>&nbsp;</p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020612_0626_Configuring142.png" alt="" /></p>
<p>Once webgate Agent is created in OAM, go back to the already open configuration window and enter following details and click Next to finish the configuration. In case if the configuration window was closed, you can also launch the configuration from command prompt.</p>
<blockquote><p>[oracle@fusion webgate]$ <span style="color: red;"><strong>/app/fusion/webgate/access/oblix/tools/configureWebGate/start_configureWebGate -i /app/fusion/webgate/access -t WebGate</strong></span></p>
<p>Please enter the Mode in which you want the Web Gate to run : 1(Open) 2(Simple) 3(Cert) : <strong>1</strong></p>
<p>Please enter the Web Gate ID : <strong>Webgate_sso</strong></p>
<p>Please enter the Password for this Web Gate : &lt;enter oracle123 or any password here. Make note of it&gt;</p>
<p>Please enter the Access Server ID : <strong>wls_oam1</strong></p>
<p>Please enter the Access Server Host Machine Name : <strong>fusion</strong></p>
<p>Please enter the Access Server Port : <strong>5575</strong></p>
<p>Preparing to connect to Access Server. Please wait.</p>
<p>Web Gate installed Successfully.</p>
<p>Press enter key to continue &#8230;</p></blockquote>
<p>&nbsp;</p>
<p>As per Oracle documentation there are a few steps to use the Webgate and validate but we will skip them for now.</p>
<p>Next step is to prepare Identity and Policy Stores by creating necessary users and groups for provisioning Fusion Applications.</p>
<p>Next: <strong><a title="Preparing Identity and Policy Stores" href="http://www.oratraining.com/blog/2012/02/preparing-identity-and-policy-stores/">Preparing Identity and Policy Stores</a></strong></p>
<p><strong><a title="Oracle Fusion Applications installation – Step by step guide" href="http://www.oratraining.com/blog/2012/02/oracle-fusion-applications-installation-step-by-step-guide/">Installing Oracle Fusion Applications – steps</a></strong></p>
<ol>
<li><strong><a title="Installing Fusion Applications Provisioning Framework" href="http://www.oratraining.com/blog/2012/02/installing-fusion-applications-provisioning-framework/">Installing Fusion Applications Provisioning Framework</a><br />
</strong></li>
<li><strong><a title="Installing Transactional Database" href="http://www.oratraining.com/blog/2012/02/installing-transactional-database/">Installing Oracle 11g Database (Applications Transactional Database)</a><br />
</strong></li>
<li><strong><a title="Running Fusion Applications RCU" href="http://www.oratraining.com/blog/2012/02/running-fusion-applications-rcu/">Running Oracle Fusion Applications Repository Creation Utility (Applications RCU)<br />
</a></strong></li>
<li><strong>Creating another database for Oracle  <strong>Identity Management Infrastructure </strong>(optional)<br />
</strong></li>
<li><strong><a title="Running Repository Creation Utility for Oracle Identity Management components" href="http://www.oratraining.com/blog/2012/02/running-repository-creation-utility-for-oracle-identity-management-components/">Running Repository Creation Utility (RCU) for Oracle Identity Management components</a></strong></li>
<li><strong><a title="Installing Oracle Identity and Access Management components" href="http://www.oratraining.com/blog/2012/02/installing-oracle-identity-and-access-management-components/">Installing Oracle Identity and Access Management Components</a><br />
</strong></li>
<li><strong><a title="Configuring Oracle Identity and Access Management components" href="http://www.oratraining.com/blog/2012/02/configuring-oracle-identity-and-access-management-components/">Configuring Oracle Identity and Access Management components</a><br />
</strong></li>
<li><strong><a title="Preparing Identity and Policy Stores" href="http://www.oratraining.com/blog/2012/02/preparing-identity-and-policy-stores/">Preparing Identity and Policy Stores</a><br />
</strong></li>
<li><strong><a title="Creating a new Provisioning Plan" href="http://www.oratraining.com/blog/2012/02/creating-a-new-provisioning-plan/">Creating a New Provisioning Plan</a><br />
</strong></li>
<li><strong>Provisioning an Applications Environment</strong></li>
</ol>
<div class="printfriendly alignleft"><a href="http://www.oratraining.com/blog/2012/02/configuring-oracle-identity-and-access-management-components/?pfstyle=wp" rel="nofollow" ><img src="//cdn.printfriendly.com/pf-button-both.gif" alt="Print Friendly" /></a></div><div class="tweetthis" style="text-align:left;"><p> <a class="tt" href="http://twitter.com/intent/tweet?text=Configuring+Oracle+Identity+and+Access+Management+components+http%3A%2F%2Foratraining.com%2Fblog%2F%3Fp%3D878" title="Post to Twitter"><img class="nothumb" src="http://www.oratraining.com/blog/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter-big3.png" alt="Post to Twitter" /></a> <a class="tt" href="http://digg.com/submit?url=http://www.oratraining.com/blog/2012/02/configuring-oracle-identity-and-access-management-components/&amp;title=Configuring+Oracle+Identity+and+Access+Management+components" title="Post to Digg"><img class="nothumb" src="http://www.oratraining.com/blog/wp-content/plugins/tweet-this/icons/en/digg/tt-digg-big4.png" alt="Post to Digg" /></a></p></div><p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.oratraining.com%2Fblog%2F2012%2F02%2Fconfiguring-oracle-identity-and-access-management-components%2F&amp;title=Configuring%20Oracle%20Identity%20and%20Access%20Management%20components" id="wpa2a_2"><img src="http://www.oratraining.com/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.oratraining.com/blog/2012/02/configuring-oracle-identity-and-access-management-components/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Creating Oracle VirtualBox Virtual Machine with Oracle Linux 5</title>
		<link>http://www.oratraining.com/blog/2012/02/creating-oracle-virtualbox-virtual-machine-with-oracle-linux/</link>
		<comments>http://www.oratraining.com/blog/2012/02/creating-oracle-virtualbox-virtual-machine-with-oracle-linux/#comments</comments>
		<pubDate>Wed, 01 Feb 2012 15:23:42 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux/Unix/Solaris]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Oracle Applications DBA]]></category>
		<category><![CDATA[Unix administration]]></category>
		<category><![CDATA[VirtualBox]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[Administration]]></category>
		<category><![CDATA[fusion applications]]></category>
		<category><![CDATA[installing]]></category>
		<category><![CDATA[Installing Linux]]></category>
		<category><![CDATA[installtion]]></category>
		<category><![CDATA[virtual machine]]></category>
		<category><![CDATA[virtualbox]]></category>

		<guid isPermaLink="false">http://www.oratraining.com/blog/?p=481</guid>
		<description><![CDATA[Tweet Previous: Oracle Fusion Applications Installation &#8211; Steps Creating Oracle VirtualBox Virtual Machine with Oracle Linux Before we begin first download the required software. Download and install Oracle VirtualBox Software from https://www.virtualbox.org/wiki/Downloads Download Oracle Linux from http://edelivery.oracle.com/linux Select &#8220;Oracle Linux&#8221; and &#8220;x86 64 bit&#8220;. Click Go &#160; Download Oracle Linux Release 5 Update 7 &#160; [...]]]></description>
			<content:encoded><![CDATA[<div class="bottomcontainerBox" style="background-color:#F0F4F9;">
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.oratraining.com%2Fblog%2F2012%2F02%2Fcreating-oracle-virtualbox-virtual-machine-with-oracle-linux%2F&amp;layout=button_count&amp;show_faces=false&amp;width=85&amp;action=like&amp;font=verdana&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width=85px; height:21px;" allowTransparency="true"></iframe></div>
			<div style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<g:plusone size="medium" href="http://www.oratraining.com/blog/2012/02/creating-oracle-virtualbox-virtual-machine-with-oracle-linux/"></g:plusone>
			</div>
			<div style="float:left; width:95px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<a href="http://twitter.com/share" class="twitter-share-button" data-url="http://www.oratraining.com/blog/2012/02/creating-oracle-virtualbox-virtual-machine-with-oracle-linux/"  data-text="Creating Oracle VirtualBox Virtual Machine with Oracle Linux 5" data-count="horizontal">Tweet</a>
			</div><div style="float:left; width:105px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"><script type="in/share" data-url="http://www.oratraining.com/blog/2012/02/creating-oracle-virtualbox-virtual-machine-with-oracle-linux/" data-counter="right"></script></div>			
			</div><div style="clear:both"></div><div style="padding-bottom:4px;"></div><p><strong>Previous: <a href="oracle-fusion-applications-installation-step-by-step-guide">Oracle Fusion Applications Installation &#8211; Steps</a><br />
</strong></p>
<p><span style="color: #595959; font-size: 14pt;"><strong>Creating Oracle VirtualBox Virtual Machine with Oracle Linux<br />
</strong></span></p>
<p>Before we begin first download the required software.</p>
<ol>
<li>Download and install Oracle VirtualBox Software from <a href="https://www.virtualbox.org/wiki/Downloads">https://www.virtualbox.org/wiki/Downloads</a></li>
<li>Download Oracle Linux from <a href="http://edelivery.oracle.com/linux">http://edelivery.oracle.com/linux</a></li>
</ol>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020112_1514_CreatingOra1.png" alt="" /></p>
<p>Select &#8220;<strong>Oracle Linux</strong>&#8221; and &#8220;<strong>x86 64 bit</strong>&#8220;. Click <strong>Go</strong></p>
<p>&nbsp;</p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020112_1514_CreatingOra2.png" alt="" /></p>
<p>Download <strong>Oracle Linux Release 5 Update 7</strong></p>
<p>&nbsp;</p>
<p>If you are installing on your Windows machine then download the software for Windows.</p>
<blockquote><p><strong>Important Note:</strong> We are using Linux 5 because somehow Oracle Linux 6 (update 2) is not working with VirtualBox for us as it was not able to launch GUI mode. The whole installation was going in text mode and later also it was not able to shift to GUI mode. The error is as follows.</p></blockquote>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020112_1514_CreatingOra3.png" alt="" /></p>
<p>&nbsp;</p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020112_1514_CreatingOra4.png" alt="" /></p>
<p>Click on<strong> New<br />
</strong></p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020112_1514_CreatingOra5.png" alt="" /></p>
<p>Click <strong>Next</strong></p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020112_1514_CreatingOra6.png" alt="" /></p>
<p>Provide any name for this VM and select Linux/Oracle (64 bit) for the OS Type. Click <strong>Next</strong></p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020112_1514_CreatingOra7.png" alt="" /></p>
<p>In Memory screen, select at least 2 GB memory. I have selected 2.5 GB (2560 MB). Click <strong>Next</strong>.</p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020112_1514_CreatingOra8.png" alt="" /></p>
<p>Select &#8220;<strong>Startup Disk</strong>&#8221; and &#8220;<strong>Create new hard disk</strong>&#8220;. Click <strong>Next</strong></p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020112_1514_CreatingOra9.png" alt="" /></p>
<p>Since we want our VM Disks to be compatible with VMWare as well, we will use VMDK file type.</p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020112_1514_CreatingOra10.png" alt="" /></p>
<p>Next screen we will select &#8220;<strong>Dynamically allocated</strong>&#8221; storage. This will allow us to keep the VM disk size according to the actual usage. Click <strong>Next</strong></p>
<blockquote><p><strong></strong><strong>Note:</strong> This of course makes VM a bit slower initially during the installation (compared to Fixed size) since in this case the VM needs to keep on increasing the disk size as we move with the installation. So we have to choose between the trade-offs.</p></blockquote>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020112_1514_CreatingOra11.png" alt="" /></p>
<p>Provide a location with at least 300 GB available space. Select size as 300 GB. Click Next</p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020112_1514_CreatingOra12.png" alt="" /></p>
<p>On Summary screen click on &#8220;<strong>Create</strong>&#8221; to create the <strong>Virtual Disk</strong>.</p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020112_1514_CreatingOra13.png" alt="" /></p>
<p>On next Summary screen click on &#8220;<strong>Create</strong>&#8221; to create the <strong>Virtual Machine</strong>.</p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020112_1514_CreatingOra14.png" alt="" /></p>
<p>Click on <strong>Settings</strong></p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020112_1514_CreatingOra15.png" alt="" /></p>
<p>Click on <strong>Network</strong>. Select &#8220;<strong>Host-only Adapter</strong>&#8220;. We will explain this later while assigning IP in Linux. Click <strong>OK</strong></p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020112_1514_CreatingOra16.png" alt="" /></p>
<p>Make sure to have Operating System CD (Here Oracle Linux 5) in the CD drive. Click on <strong>Start</strong></p>
<blockquote><p><strong></strong>Note: You can optionally use Virtual CD drive software (for example Daemon tools-lite) to mount an ISO image to a virtual CD.</p></blockquote>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020112_1514_CreatingOra17.png" alt="" /></p>
<p>Click <strong>Next</strong></p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020112_1514_CreatingOra18.png" alt="" /></p>
<p>Select the drive / virtual drive containing OS installation CD/DVD. Click <strong>Next</strong></p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020112_1514_CreatingOra19.png" alt="" /></p>
<p>Click on <strong>Start</strong> to begin installation of Linux</p>
<p>In the next section we will coner <strong>Installing Linux on Physical or Virtual Machine (VMWare or VirtualBox) .<br />
</strong></p>
<blockquote><p><strong>Note: </strong>This is a generic guide which can be used for installation on Physical or Virtual machine.</p></blockquote>
<p>&nbsp;</p>
<p><span style="color: #595959; font-size: 14pt;"><strong>Installing Linux Operating System<br />
</strong></span></p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020112_1514_CreatingOra20.png" alt="" /></p>
<p>Press <strong>Enter </strong>to continue with<strong> Graphical mode </strong>installation</p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020112_1514_CreatingOra21.png" alt="" /></p>
<p>At this moment we can ignore this message if it appears since graphics is already available. Once we install <strong>Virtualbox Guest Additions</strong> (Explained later)</p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020112_1514_CreatingOra22.png" alt="" /></p>
<p>Use <strong>TAB</strong> to select between options. Select &#8220;<strong>Skip</strong>&#8221; and press <strong>Enter</strong></p>
<p>&nbsp;</p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020112_1514_CreatingOra23.png" alt="" /></p>
<p>Click <strong>Next<br />
</strong></p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020112_1514_CreatingOra24.png" alt="" /></p>
<p>Keep default &#8220;<strong>English (English)</strong>&#8221; Click <strong>Next</strong></p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020112_1514_CreatingOra25.png" alt="" /></p>
<p>Keep default &#8220;<strong>US English</strong>&#8221; Click <strong>Next</strong></p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020112_1514_CreatingOra26.png" alt="" /></p>
<p>Since our disk is blank and not yet formatted to Linux File System, click &#8220;<strong>Yes</strong>&#8221; to erase all data.</p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020112_1514_CreatingOra27.png" alt="" /></p>
<p>Select &#8220;<strong>Remove all partitions on selected drive and create default layout</strong>&#8221; and click <strong>Next</strong></p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020112_1514_CreatingOra28.png" alt="" /></p>
<p>Manually assign host name. We are using &#8220;fusion&#8221; as our hostname. We will assign IP later.</p>
<blockquote><p><strong>Important note:</strong> We will use the hostname &#8220;fusion&#8221; throughout this installation. If you are planning to change the host name then make sure that you enter the new name everywhere during the installation wherever we have mentioned &#8220;fusion&#8221;</p></blockquote>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020112_1514_CreatingOra29.png" alt="" /></p>
<p>Select <strong>Customize now</strong> and click <strong>Next</strong></p>
<p>Make sure to include following while selecting.</p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020112_1514_CreatingOra30.jpg" alt="" /></p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020112_1514_CreatingOra31.jpg" alt="" /></p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020112_1514_CreatingOra32.jpg" alt="" /></p>
<p><span style="color: #444444; background-color: white;">Now select Base System from the left pane and check System Tools from the right pane. Click on Optional packages. In the list of packages select oracle-validated package. This package will create a Linux user oracle and will create necessary Linux groups. This package will also set Linux kernel parameters needed for Oracle installations.<br />
</span></p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020112_1514_CreatingOra33.jpg" alt="" /></p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020112_1514_CreatingOra34.png" alt="" /></p>
<p>Click <strong>Next </strong>to finish the installation and reboot the OS.</p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020112_1514_CreatingOra35.png" alt="" /></p>
<p>After first boot, above welcome screen appears. Click <strong>Forward</strong></p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020112_1514_CreatingOra36.png" alt="" /></p>
<p>Select Yes and click <strong>Forward</strong></p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020112_1514_CreatingOra37.png" alt="" /></p>
<p>Select <strong>Disabled</strong> and click <strong>Forward</strong></p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020112_1514_CreatingOra38.png" alt="" /></p>
<p>Select <strong>Disabled</strong> in this screen and click <strong>Forward</strong>.</p>
<p>Please note that if this is kept Enforcing then at one point the installation will fail to start the services.</p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020112_1514_CreatingOra39.png" alt="" /></p>
<p>Click <strong>Forward</strong></p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020112_1514_CreatingOra40.png" alt="" /></p>
<p>Select correct date and time and click <strong>Forward</strong></p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020112_1514_CreatingOra41.png" alt="" /></p>
<p>We can skip this page since we will create users later if required. Just click <strong>Forward</strong></p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020112_1514_CreatingOra42.png" alt="" /></p>
<p>Click <strong>Forward</strong></p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020112_1514_CreatingOra43.png" alt="" /></p>
<p>Click <strong>Finish. </strong>On the login screen, login as root</p>
<p>Now let us check what is the IP range for our VM network. Open command prompt on your host windows OS.</p>
<blockquote><p>C:\&gt;ipconfig</p>
<p>Windows IP Configuration</p>
<p>Ethernet adapter VirtualBox Host-Only Network:</p>
<p>Connection-specific DNS Suffix . :</p>
<p>IP Address. . . . . . . . . . . . : 192.168.56.1</p>
<p>Subnet Mask . . . . . . . . . . . : 255.255.255.0</p>
<p>Default Gateway . . . . . . . . . :</p></blockquote>
<p>In the ipconfig output look for <strong>VirtualBox Host-Only Network</strong>. We can see that the IP address is 192.168.56.1. This is our gateway for VM. Since the Subnet mask is 255.255.255.0, we can change the last octet and assign any IP in that range for our VM. Let us select <strong>192.168.56.101</strong> as our VM IP.</p>
<p>&nbsp;</p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020112_1514_CreatingOra44.png" alt="" /></p>
<p>Click on <strong>System-&gt;Administration-&gt;Network</strong></p>
<p><a href="http://www.oratraining.com/blog/wp-content/uploads/2012/02/11.jpg"><img class="alignnone size-full wp-image-893" title="1" src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/11.jpg" alt="" width="460" height="462" /></a></p>
<p>&nbsp;</p>
<p>Click on <strong>Edit</strong>.</p>
<p><a href="http://www.oratraining.com/blog/wp-content/uploads/2012/02/21.jpg"><img class="alignnone size-full wp-image-894" title="2" src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/21.jpg" alt="" width="528" height="593" /></a></p>
<p>&nbsp;</p>
<p>Enter manual IP address as follows.</p>
<blockquote><p>IP: 192.168.56.101</p>
<p>Subnet mask: 255.255.255.0</p>
<p>Gateway: 192.168.56.1</p></blockquote>
<p>Click on <strong>File-&gt;Save</strong> and click <strong>Activate</strong>. Now on shell prompt run following command as root to restart network services.</p>
<p>service network restart</p>
<p>Make an entry for this IP for the host in /etc/hosts file. Also comment out IPv6 entry (localhost6). Also create an additional alias fusion.localdomain (we will use this later)</p>
<blockquote><p>[root@fusion ~]# cat /etc/hosts</p>
<p># Do not remove the following line, or various programs</p>
<p># that require network functionality will fail.</p>
<p>127.0.0.1       localhost.localdomain localhost</p>
<p>#::1            localhost6.localdomain6 localhost6</p>
<p>192.168.56.101  fusion fusion.localdomain</p></blockquote>
<p>Now we must install Guest Additions to smoothly use the VM along with the host windows. We can have higher resolution and also easier mouse movements between VM and host Windows after this.</p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020112_1514_CreatingOra46.png" alt="" /></p>
<p>Click <strong>Devices-&gt; Install Guest Additions</strong> in the VirtualBox menu. This will automatically mount a CD on the VM CD drive.</p>
<p>Then run following commands. Make sure you are logged in as <strong>root</strong></p>
<blockquote><p><strong>cd /media/VBOXADDITIONS_4.1.8_75467<br />
</strong></p>
<p><strong>./VBoxLinuxAdditions.run<br />
</strong></p></blockquote>
<p>This will install the Guest Additions. Reboot the VM. Now we can change the resolution to higher value.</p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020112_1514_CreatingOra47.png" alt="" /></p>
<p>Click on <strong>System -&gt; Preferences -&gt; Screen Resolution</strong></p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020112_1514_CreatingOra48.png" alt="" /><strong><br />
</strong></p>
<p>Change the resolution to <strong>1024&#215;768</strong>. Click<strong> Apply. </strong>On next reboot the system will show higher resolution.<strong><br />
</strong></p>
<p>Now we will mount the already created Stage directory/Provisioning Repository in the Linux VM.</p>
<p>In the VirtualBox window, click on Settings</p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020112_1514_CreatingOra49.png" alt="" /><span style="color: red;"><br />
</span></p>
<p>&nbsp;</p>
<p>Click on Shared Folders -&gt; Add shared folder</p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020112_1514_CreatingOra50.png" alt="" /></p>
<p>Browse for the directory where we staged the installation files. We will mount it as &#8220;Read-only&#8221; because we do not want to make any changes in the source folder.</p>
<p><img src="http://www.oratraining.com/blog/wp-content/uploads/2012/02/020112_1514_CreatingOra51.png" alt="" /></p>
<p>It will look as above. Click <strong>OK</strong></p>
<p>&nbsp;</p>
<p>Now we will mount it in the VM. Login as root and run following commands.</p>
<blockquote><p><span style="color: #595959;">[root@fusion ~]# </span>mkdir /mnt/fusion</p>
<p><span style="color: #595959;">[root@fusion ~]# </span><strong style="color: #595959;">chown oracle:dba /mnt/fusion/</strong></p>
<p><strong style="color: #595959;"></strong><span style="color: #595959;">[root@fusion ~]#</span><strong style="color: #595959;"> mount -t vboxsf FusionStage /mnt/fusion/</strong></p>
<p><strong style="color: #595959;"></strong><span style="color: #595959;">[root@fusion ~]# </span><strong style="color: #595959;">ls -l /mnt/fusion/</strong></p>
<p><strong style="color: #595959;"></strong><span style="color: #595959;">drwxrwxrwx 1 root root 0 Sep 7 08:02 appspatches</span></p>
<p><span style="color: #595959;">drwxrwxrwx 1 root root 0 Jan 8 15:35 installers</span></p>
<p><span style="color: #595959;">drwxrwxrwx 1 root root 0 Sep 7 02:28 jdk6</span></p></blockquote>
<p>&nbsp;</p>
<p>Please note that since the installation involves graphical interface, you can either run it directly by opening a terminal window from the Virtual Machine GUI or we can use putty on windows to connect to the virtual machine. When you use putty from windows then you must use tools like <strong>XManager</strong> to view output on host.</p>
<p>Also please make sure that sufficient swap memory is available by using “<strong>free –m</strong>” command. It least double the amount of RAM should be available as swap space. If not manually add swap files.</p>
<p>&nbsp;</p>
<blockquote><p>For example, adding 4 GB swap space.</p>
<p>[root@fusion fusiondb]# dd if=/dev/zero of=/swapfile1 bs=1024 count=4194304</p>
<p>4194304+0 records in</p>
<p>4194304+0 records out</p>
<p>4294967296 bytes (4.3 GB) copied, 112.697 seconds, 38.1 MB/s</p>
<p>[root@fusion fusiondb]# mkswap /swapfile1</p>
<p>Setting up swapspace version 1, size = 4294963 kB</p>
<p>[root@fusion fusiondb]# swapon /swapfile1</p>
<p>[root@fusion fusiondb]# free -m</p>
<p>total       used       free     shared    buffers     cached</p>
<p>Mem:          2506       2386        119          0          9       1871</p>
<p>-/+ buffers/cache:        505       2000</p>
<p>Swap:         5605        152       5452</p></blockquote>
<p>&nbsp;</p>
<p>Next: <strong><a href="installing-fusion-applications-provisioning-framework">Installing Fusion Applications Provisioning Framework</a><br />
</strong></p>
<p><span style="color: #632423; font-size: 13pt;"><strong><a title="Oracle Fusion Applications installation – Step by step guide" href="http://www.oratraining.com/blog/2012/02/oracle-fusion-applications-installation-step-by-step-guide/">Installing Oracle Fusion Applications &#8211; steps</a></strong></span></p>
<ol>
<li><strong><a title="Installing Fusion Applications Provisioning Framework" href="http://www.oratraining.com/blog/2012/02/installing-fusion-applications-provisioning-framework/">Installing Fusion Applications Provisioning Framework</a><br />
</strong></li>
<li><strong><a title="Installing Transactional Database" href="http://www.oratraining.com/blog/2012/02/installing-transactional-database/">Installing Oracle 11g Database (Applications Transactional Database)</a><br />
</strong></li>
<li><strong><a title="Running Fusion Applications RCU" href="http://www.oratraining.com/blog/2012/02/running-fusion-applications-rcu/">Running Oracle Fusion Applications Repository Creation Utility (Applications RCU)<br />
</a></strong></li>
<li><strong>Creating another database for Oracle  <strong>Identity Management Infrastructure </strong>(optional)<br />
</strong></li>
<li><strong><a title="Running Repository Creation Utility for Oracle Identity Management components" href="http://www.oratraining.com/blog/2012/02/running-repository-creation-utility-for-oracle-identity-management-components/">Running Repository Creation Utility (RCU) for Oracle Identity Management components</a></strong></li>
<li><strong><a title="Installing Oracle Identity and Access Management components" href="http://www.oratraining.com/blog/2012/02/installing-oracle-identity-and-access-management-components/">Installing Oracle Identity and Access Management Components</a><br />
</strong></li>
<li><strong><a title="Configuring Oracle Identity and Access Management components" href="http://www.oratraining.com/blog/2012/02/configuring-oracle-identity-and-access-management-components/">Configuring Oracle Identity and Access Management components</a><br />
</strong></li>
<li><strong><a title="Preparing Identity and Policy Stores" href="http://www.oratraining.com/blog/2012/02/preparing-identity-and-policy-stores/">Preparing Identity and Policy Stores</a><br />
</strong></li>
<li><strong><a title="Creating a new Provisioning Plan" href="http://www.oratraining.com/blog/2012/02/creating-a-new-provisioning-plan/">Creating a New Provisioning Plan</a><br />
</strong></li>
<li><strong>Provisioning an Applications Environment</strong></li>
</ol>
<div class="printfriendly alignleft"><a href="http://www.oratraining.com/blog/2012/02/creating-oracle-virtualbox-virtual-machine-with-oracle-linux/?pfstyle=wp" rel="nofollow" ><img src="//cdn.printfriendly.com/pf-button-both.gif" alt="Print Friendly" /></a></div><div class="tweetthis" style="text-align:left;"><p> <a class="tt" href="http://twitter.com/intent/tweet?text=Creating+Oracle+VirtualBox+Virtual+Machine+with+Oracle+Linux+5+http%3A%2F%2Foratraining.com%2Fblog%2F%3Fp%3D481" title="Post to Twitter"><img class="nothumb" src="http://www.oratraining.com/blog/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter-big3.png" alt="Post to Twitter" /></a> <a class="tt" href="http://digg.com/submit?url=http://www.oratraining.com/blog/2012/02/creating-oracle-virtualbox-virtual-machine-with-oracle-linux/&amp;title=Creating+Oracle+VirtualBox+Virtual+Machine+with+Oracle+Linux+5" title="Post to Digg"><img class="nothumb" src="http://www.oratraining.com/blog/wp-content/plugins/tweet-this/icons/en/digg/tt-digg-big4.png" alt="Post to Digg" /></a></p></div><p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.oratraining.com%2Fblog%2F2012%2F02%2Fcreating-oracle-virtualbox-virtual-machine-with-oracle-linux%2F&amp;title=Creating%20Oracle%20VirtualBox%20Virtual%20Machine%20with%20Oracle%20Linux%205" id="wpa2a_4"><img src="http://www.oratraining.com/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.oratraining.com/blog/2012/02/creating-oracle-virtualbox-virtual-machine-with-oracle-linux/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Unix/Solaris Terminal too wide</title>
		<link>http://www.oratraining.com/blog/2010/04/unixsolaris-terminal-too-wide/</link>
		<comments>http://www.oratraining.com/blog/2010/04/unixsolaris-terminal-too-wide/#comments</comments>
		<pubDate>Tue, 27 Apr 2010 12:10:56 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux/Unix/Solaris]]></category>
		<category><![CDATA[Shell scripting]]></category>
		<category><![CDATA[Unix administration]]></category>

		<guid isPermaLink="false">http://www.oratraining.com/blog/?p=240</guid>
		<description><![CDATA[Tweet On older Solaris or other Unix systems we quite often see following error while opening log files etc in vi or view terminal root&#62; vi abc Terminal too wide : This is because the terminal is not wide enough to display more characters in one line. Solution: Execute following command on shell prompt. This [...]]]></description>
			<content:encoded><![CDATA[<div class="bottomcontainerBox" style="background-color:#F0F4F9;">
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.oratraining.com%2Fblog%2F2010%2F04%2Funixsolaris-terminal-too-wide%2F&amp;layout=button_count&amp;show_faces=false&amp;width=85&amp;action=like&amp;font=verdana&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width=85px; height:21px;" allowTransparency="true"></iframe></div>
			<div style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<g:plusone size="medium" href="http://www.oratraining.com/blog/2010/04/unixsolaris-terminal-too-wide/"></g:plusone>
			</div>
			<div style="float:left; width:95px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<a href="http://twitter.com/share" class="twitter-share-button" data-url="http://www.oratraining.com/blog/2010/04/unixsolaris-terminal-too-wide/"  data-text="Unix/Solaris Terminal too wide" data-count="horizontal">Tweet</a>
			</div><div style="float:left; width:105px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"><script type="in/share" data-url="http://www.oratraining.com/blog/2010/04/unixsolaris-terminal-too-wide/" data-counter="right"></script></div>			
			</div><div style="clear:both"></div><div style="padding-bottom:4px;"></div><p>On older Solaris or other Unix systems we quite often see following error while opening log files etc in vi or view terminal</p>
<blockquote>
<div id="_mcePaste"><span style="color: #0000ff;">root&gt; vi abc</span></div>
<div id="_mcePaste"><span style="color: #0000ff;">Terminal too wide</span></div>
<div id="_mcePaste"><span style="color: #0000ff;">:</span></div>
</blockquote>
<div>This is because the terminal is not wide enough to display more characters in one line.</div>
<p><strong>Solution:</strong></p>
<p>Execute following command on shell prompt. This will increase the width the number of columns on the terminal. After this you should be able to open files in vi or view without any issues.</p>
<blockquote><p><strong><span style="color: #0000ff;">stty columns 120</span></strong></p></blockquote>
<div class="printfriendly alignleft"><a href="http://www.oratraining.com/blog/2010/04/unixsolaris-terminal-too-wide/?pfstyle=wp" rel="nofollow" ><img src="//cdn.printfriendly.com/pf-button-both.gif" alt="Print Friendly" /></a></div><div class="tweetthis" style="text-align:left;"><p> <a class="tt" href="http://twitter.com/intent/tweet?text=Unix%2FSolaris+Terminal+too+wide+http%3A%2F%2Foratraining.com%2Fblog%2F%3Fp%3D240" title="Post to Twitter"><img class="nothumb" src="http://www.oratraining.com/blog/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter-big3.png" alt="Post to Twitter" /></a> <a class="tt" href="http://digg.com/submit?url=http://www.oratraining.com/blog/2010/04/unixsolaris-terminal-too-wide/&amp;title=Unix%2FSolaris+Terminal+too+wide" title="Post to Digg"><img class="nothumb" src="http://www.oratraining.com/blog/wp-content/plugins/tweet-this/icons/en/digg/tt-digg-big4.png" alt="Post to Digg" /></a></p></div><p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.oratraining.com%2Fblog%2F2010%2F04%2Funixsolaris-terminal-too-wide%2F&amp;title=Unix%2FSolaris%20Terminal%20too%20wide" id="wpa2a_6"><img src="http://www.oratraining.com/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.oratraining.com/blog/2010/04/unixsolaris-terminal-too-wide/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Unix delete or rename a file starting with hyphen or junk character</title>
		<link>http://www.oratraining.com/blog/2010/04/unix-delete-or-rename-a-file-starting-with-hyphen-or-junk-character/</link>
		<comments>http://www.oratraining.com/blog/2010/04/unix-delete-or-rename-a-file-starting-with-hyphen-or-junk-character/#comments</comments>
		<pubDate>Tue, 27 Apr 2010 11:22:56 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux/Unix/Solaris]]></category>
		<category><![CDATA[Shell scripting]]></category>
		<category><![CDATA[Unix administration]]></category>
		<category><![CDATA[delete]]></category>
		<category><![CDATA[file]]></category>
		<category><![CDATA[junk character]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[putty]]></category>
		<category><![CDATA[rename]]></category>
		<category><![CDATA[solaris]]></category>
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://www.oratraining.com/blog/?p=235</guid>
		<description><![CDATA[Tweet Many a times we face a problem wherein mistakenly some files get created in a directory which are hard to rename or remove especially when working with putty terminal, by mistake if you paste come content on command prompt then it will create junk files with hyphen, tilde or any junk character in beginning. [...]]]></description>
			<content:encoded><![CDATA[<div class="bottomcontainerBox" style="background-color:#F0F4F9;">
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.oratraining.com%2Fblog%2F2010%2F04%2Funix-delete-or-rename-a-file-starting-with-hyphen-or-junk-character%2F&amp;layout=button_count&amp;show_faces=false&amp;width=85&amp;action=like&amp;font=verdana&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width=85px; height:21px;" allowTransparency="true"></iframe></div>
			<div style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<g:plusone size="medium" href="http://www.oratraining.com/blog/2010/04/unix-delete-or-rename-a-file-starting-with-hyphen-or-junk-character/"></g:plusone>
			</div>
			<div style="float:left; width:95px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<a href="http://twitter.com/share" class="twitter-share-button" data-url="http://www.oratraining.com/blog/2010/04/unix-delete-or-rename-a-file-starting-with-hyphen-or-junk-character/"  data-text="Unix delete or rename a file starting with hyphen or junk character" data-count="horizontal">Tweet</a>
			</div><div style="float:left; width:105px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"><script type="in/share" data-url="http://www.oratraining.com/blog/2010/04/unix-delete-or-rename-a-file-starting-with-hyphen-or-junk-character/" data-counter="right"></script></div>			
			</div><div style="clear:both"></div><div style="padding-bottom:4px;"></div><p>Many a times we face a problem wherein mistakenly some files get created in a directory which are hard to rename or remove especially when working with putty terminal, by mistake if you paste come content on command prompt then it will create junk files with hyphen, tilde or any junk character in beginning.</p>
<p>For example <span style="color: #0000ff;">&#8220;-abc&#8221;</span>, <span style="color: #0000ff;">&#8220;~abc&#8221;</span> etc.</p>
<p><strong>Solution:</strong></p>
<p>In this case &#8220;<span style="color: #0000ff;">rm -abc</span>&#8221; or &#8220;<span style="color: #0000ff;">rm ~abc</span>&#8221; etc will not work. Simple solution is to use &#8220;<span style="color: #0000ff;">rm ./-abc</span>&#8221; or &#8220;<span style="color: #0000ff;">rm./~abc</span>&#8221; etc</p>
<p> <img src='http://www.oratraining.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<div class="printfriendly alignleft"><a href="http://www.oratraining.com/blog/2010/04/unix-delete-or-rename-a-file-starting-with-hyphen-or-junk-character/?pfstyle=wp" rel="nofollow" ><img src="//cdn.printfriendly.com/pf-button-both.gif" alt="Print Friendly" /></a></div><div class="tweetthis" style="text-align:left;"><p> <a class="tt" href="http://twitter.com/intent/tweet?text=Unix+delete+or+rename+a+file+starting+with+hyphen+or+junk+character+http%3A%2F%2Foratraining.com%2Fblog%2F%3Fp%3D235" title="Post to Twitter"><img class="nothumb" src="http://www.oratraining.com/blog/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter-big3.png" alt="Post to Twitter" /></a> <a class="tt" href="http://digg.com/submit?url=http://www.oratraining.com/blog/2010/04/unix-delete-or-rename-a-file-starting-with-hyphen-or-junk-character/&amp;title=Unix+delete+or+rename+a+file+starting+with+hyphen+or+junk+character" title="Post to Digg"><img class="nothumb" src="http://www.oratraining.com/blog/wp-content/plugins/tweet-this/icons/en/digg/tt-digg-big4.png" alt="Post to Digg" /></a></p></div><p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.oratraining.com%2Fblog%2F2010%2F04%2Funix-delete-or-rename-a-file-starting-with-hyphen-or-junk-character%2F&amp;title=Unix%20delete%20or%20rename%20a%20file%20starting%20with%20hyphen%20or%20junk%20character" id="wpa2a_8"><img src="http://www.oratraining.com/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.oratraining.com/blog/2010/04/unix-delete-or-rename-a-file-starting-with-hyphen-or-junk-character/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>vi commands quick reference</title>
		<link>http://www.oratraining.com/blog/2009/06/vi-commands-quick-reference/</link>
		<comments>http://www.oratraining.com/blog/2009/06/vi-commands-quick-reference/#comments</comments>
		<pubDate>Wed, 24 Jun 2009 06:23:12 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux/Unix/Solaris]]></category>
		<category><![CDATA[Shell scripting]]></category>
		<category><![CDATA[Unix administration]]></category>

		<guid isPermaLink="false">http://www.oratraining.com/blog/?p=199</guid>
		<description><![CDATA[Tweet Unix vi commands quick reference General Notes: 1. Before practicing using this vi tutorial, type the following command followed by a   carriage return: :set showmode 2. vi is not VI. It is case sensitive!!! So make sure Caps Lock is OFF. Requirements: In order to work correctly the vi need correct terminal type (TERM) [...]]]></description>
			<content:encoded><![CDATA[<div class="bottomcontainerBox" style="background-color:#F0F4F9;">
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.oratraining.com%2Fblog%2F2009%2F06%2Fvi-commands-quick-reference%2F&amp;layout=button_count&amp;show_faces=false&amp;width=85&amp;action=like&amp;font=verdana&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width=85px; height:21px;" allowTransparency="true"></iframe></div>
			<div style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<g:plusone size="medium" href="http://www.oratraining.com/blog/2009/06/vi-commands-quick-reference/"></g:plusone>
			</div>
			<div style="float:left; width:95px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<a href="http://twitter.com/share" class="twitter-share-button" data-url="http://www.oratraining.com/blog/2009/06/vi-commands-quick-reference/"  data-text="vi commands quick reference" data-count="horizontal">Tweet</a>
			</div><div style="float:left; width:105px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"><script type="in/share" data-url="http://www.oratraining.com/blog/2009/06/vi-commands-quick-reference/" data-counter="right"></script></div>			
			</div><div style="clear:both"></div><div style="padding-bottom:4px;"></div><h2>Unix vi commands quick reference</h2>
<p><strong>General Notes:</strong><br />
1. Before practicing using this vi tutorial, type the following command followed by a   carriage return: :set showmode<br />
2. vi is not VI. It is case sensitive!!! So make sure Caps Lock is OFF.<a name="start"></a></p>
<p><strong>Requirements:</strong></p>
<p>In order to work correctly the vi need correct terminal type (TERM) setting. The TERM setting depends on the type of terminal you have. Commonly used TERM types are vt100, vt220 and ANSI.  In most cases vt100 will work fine. In case vi is not able to understand the TERM you have given, it starts in open mode giving you a line by line display. Generally TERM is taken from .profile or /etc/profile, but can be set at the command line as:</p>
<p>$TERM=vt100</p>
<p>$export TERM</p>
<p>echo $TERM will display the current TERM set.</p>
<p><span id="more-199"></span></p>
<p><strong>Starting and Ending VI</strong></p>
<table border="1" cellpadding="0">
<tbody>
<tr>
<td colspan="2"><strong>Starting VI</strong></td>
</tr>
<tr>
<td>vi <em>filename</em></td>
<td>Edits <em>filename </em>starting at line1</td>
</tr>
<tr>
<td>vi -r <em>filename</em></td>
<td>Recover<em> </em><tt><em>filename</em></tt> that was being edited when system crashed</td>
</tr>
<tr>
<td>vi + n <em>filename</em></td>
<td>Edits <em>filename</em> and places cursor at line n</td>
</tr>
<tr>
<td>vi + <em>filename</em></td>
<td>Edits <em>filename</em> and places cursor on last line</td>
</tr>
<tr>
<td>vi +/<em>string</em> <em>filename</em></td>
<td>Edits <em>filename</em> and places cursor on first occurrence of <em>string</em></td>
</tr>
<tr>
<td>vi <em>filename</em> <em>file2</em> &#8230;</td>
<td>Edits <em>filename</em>, then edits <em>file2</em> &#8230; After the save, use :n</td>
</tr>
<tr>
<td colspan="2"><strong>Ending VI</strong></td>
</tr>
<tr>
<td>ZZ or :wq or : x</td>
<td>Saves and exits VI</td>
</tr>
<tr>
<td>:w</td>
<td>Saves current <em>file</em> but doesn&#8217;t exit</td>
</tr>
<tr>
<td>:w!</td>
<td>Saves current file overriding normal checks but doesn&#8217;t exit</td>
</tr>
<tr>
<td>:w <em>file</em></td>
<td>Saves current as <em>file</em> but doesn&#8217;t exit</td>
</tr>
<tr>
<td>:w! <em>file</em></td>
<td>Saves to <em>file</em> overriding normal checks but doesn&#8217;t exit</td>
</tr>
<tr>
<td>:n,mw <em>file</em></td>
<td>Saves lines n through m to <em>file</em></td>
</tr>
<tr>
<td>:n,mw &gt;&gt;<em>file</em></td>
<td>Saves lines n through m to the end of <em>file</em></td>
</tr>
<tr>
<td>:q</td>
<td>Quits VI and may prompt if you need to save</td>
</tr>
<tr>
<td>:q!</td>
<td>Quits VI and without saving</td>
</tr>
<tr>
<td>:e!</td>
<td>Edits file discarding any unsaved changes (revert to previous saved version)</td>
</tr>
<tr>
<td>:e <em>file</em></td>
<td>Edits file (current file becomes alternate file)</td>
</tr>
<tr>
<td>:e#</td>
<td>Edit alternate file</td>
</tr>
<tr>
<td>:we!</td>
<td>Saves and continues to edit current file</td>
</tr>
<tr>
<td>%</td>
<td>Display current filename</td>
</tr>
<tr>
<td>#</td>
<td>Display alternate filename</td>
</tr>
<tr>
<td><a name="status"></a>:n</td>
<td>Edit next file</td>
</tr>
<tr>
<td>:n!</td>
<td>Edit next file (ignoring warnings)</td>
</tr>
<tr>
<td>:n <em>files</em></td>
<td>Specify new list of <em>files</em></td>
</tr>
<tr>
<td>:r <em>file</em></td>
<td>Insert(read) <em>file </em>after cursor</td>
</tr>
<tr>
<td>:r !<em>command</em></td>
<td>Run <em>command, </em>and insert output after current line</td>
</tr>
</tbody>
</table>
<p><strong> </strong></p>
<p><strong>Determining Line Numbers</strong></p>
<table border="1" cellpadding="0">
<tbody>
<tr>
<td>:.=</td>
<td>Returns line number of current line at bottom of screen</td>
</tr>
<tr>
<td>:=</td>
<td>Returns the total number of lines at bottom of screen</td>
</tr>
<tr>
<td>^g</td>
<td>Provides the current line number, along with the total number of lines,<br />
in the file at the bottom of the screen</td>
</tr>
</tbody>
</table>
<p><a name="mode"></a><strong>Modes</strong></p>
<table border="1" cellpadding="0">
<tbody>
<tr>
<td>Vi has two modes: 1) Insertion mode and 2) command mode.The editor begins in command mode, where the cursor movement and text deletion and pasting occur.</p>
<p>Insertion mode begins upon entering an insertion or change command. [ESC] returns the editor to command mode (where you can quit, for example by typing: q!).</p>
<p>Most commands execute as soon as you type them except for &#8220;colon&#8221; commands which execute when you press the return key.</td>
</tr>
</tbody>
</table>
<p><a name="insert"></a><strong>Inserting, appending and replacing Text</strong></p>
<table border="1" cellpadding="0">
<tbody>
<tr>
<td colspan="2">Inserting and appending text</td>
</tr>
<tr>
<td>I</td>
<td>Inserts text at the beginning of the current line</td>
</tr>
<tr>
<td>i</td>
<td>Inserts text at the cursor</td>
</tr>
<tr>
<td>A</td>
<td>Appends text at the end of current line</td>
</tr>
<tr>
<td>a</td>
<td>Appends text after the cursor</td>
</tr>
<tr>
<td colspan="2">Adding new line</td>
</tr>
<tr>
<td>O</td>
<td>Open a new line above the current line</td>
</tr>
<tr>
<td>o</td>
<td>Open a new line below the current line</td>
</tr>
<tr>
<td colspan="2">Replacing a character &amp; word</td>
</tr>
<tr>
<td>R</td>
<td>Replace characters, starting with current cursor position, until <tt>&lt;Esc&gt;</tt> hit</td>
</tr>
<tr>
<td>r</td>
<td>Replace single character under cursor (no <tt>&lt;Esc&gt;</tt> needed)</td>
</tr>
<tr>
<td>cw</td>
<td>Replaces the word from cursor to the end indicated by $ sign</td>
</tr>
<tr>
<td>C</td>
<td>Replaces till end of line</td>
</tr>
<tr>
<td>:r <em>file</em></td>
<td>Reads <em>file</em> and inserts it after current line</td>
</tr>
<tr>
<td>:nr <em>file</em></td>
<td>Reads <em>file</em> and inserts it after line n</td>
</tr>
</tbody>
</table>
<table border="1" cellpadding="0">
<tbody>
<tr>
<td colspan="2">Things to do while in Insert Mode:</td>
</tr>
<tr>
<td>CTRL-h or Backspace</td>
<td>While inserting, deletes previous character</td>
</tr>
<tr>
<td>CTRL-w</td>
<td>While inserting, deletes previous word</td>
</tr>
<tr>
<td>CTRL-x</td>
<td>While inserting, deletes to start of inserted text</td>
</tr>
<tr>
<td>CTRL-i or TAB</td>
<td>While inserting, inserts one shift width(tab)</td>
</tr>
<tr>
<td>CTRL-v <em>char</em></td>
<td>While inserting, ignores special meaning of <em>char</em> (e.g., for inserting characters like ESC and CTRL) until ESC is used</td>
</tr>
<tr>
<td>CTRL-v</td>
<td>Take the next character literally. (i.e. To insert a Control-H, type Control-v Control-h)</td>
</tr>
</tbody>
</table>
<p><a name="motion"></a><strong>Motion</strong></p>
<table border="1" cellpadding="0">
<tbody>
<tr>
<td>h <em>or</em> &lt;backspace&gt;<em>or</em> [left-arrow]</td>
<td>Moves the cursor to the left</td>
</tr>
<tr>
<td>j <em>or</em> &lt;Return&gt; <em>or</em> [down-arrow]</td>
<td>Moves down the cursor</td>
</tr>
<tr>
<td>k <em>or</em> [up-arrow]</td>
<td>Moves up the cursor</td>
</tr>
<tr>
<td>l <em>or</em> &lt;Space&gt; <em>or</em> [right-arrow]</td>
<td>Moves the cursor to the right</td>
</tr>
<tr>
<td>Arrow Keys</td>
<td>These do work, but they may be too slow on big files. Also may have unpredictable results when arrow keys are not mapped correctly in client.</td>
</tr>
<tr>
<td>w</td>
<td>Moves cursor to the beginning of the next word</td>
</tr>
<tr>
<td>W</td>
<td>Moves the cursor to next blank delimited word</td>
</tr>
<tr>
<td>b</td>
<td>Moves the cursor back to beginning of the preceding word</td>
</tr>
<tr>
<td>B</td>
<td>Moves the cursor to the beginning of blank delimited word</td>
</tr>
<tr>
<td>^</td>
<td>Moves the cursor to the first non-blank character in the current line</td>
</tr>
<tr>
<td>+ or Enter</td>
<td>Moves the cursor to the beginning of the next line</td>
</tr>
<tr>
<td>-</td>
<td>Moves the cursor to the first non-blank character of the previous line</td>
</tr>
<tr>
<td>e</td>
<td>Moves  cursor to the end of the current word</td>
</tr>
<tr>
<td>E</td>
<td>Moves cursor to the end of Blank delimited word</td>
</tr>
<tr>
<td>(</td>
<td>Moves cursor a sentence back</td>
</tr>
<tr>
<td>)</td>
<td>Moves cursor a sentence forward</td>
</tr>
<tr>
<td>{</td>
<td>Moves cursor a paragraph back</td>
</tr>
<tr>
<td>}</td>
<td>Moves cursor a paragraph forward</td>
</tr>
<tr>
<td>[[</td>
<td>Moves cursor a section back</td>
</tr>
<tr>
<td>]]</td>
<td>Moves cursor a section forward</td>
</tr>
<tr>
<td>0 or |</td>
<td>Moves cursor to the start of the current line</td>
</tr>
<tr>
<td>N|</td>
<td>Moves cursor to the column n in the current line</td>
</tr>
<tr>
<td>$</td>
<td>Moves cursor to the end of the current line</td>
</tr>
<tr>
<td>1G <em>or</em> :0&lt;Return&gt;</td>
<td>Moves cursor to the start of the first line in the file</td>
</tr>
<tr>
<td>G <em>or </em>:$&lt;Return&gt;</td>
<td>Moves cursor to the start of the last line in the file</td>
</tr>
<tr>
<td>nG <em>or </em>:n&lt;Return&gt;</td>
<td>Moves cursor to the start of the nth line in the file</td>
</tr>
<tr>
<td>F</td>
<td>Moves cursor forward to c</td>
</tr>
<tr>
<td>Fc</td>
<td>Moves cursor back to c</td>
</tr>
<tr>
<td>H</td>
<td>Moves cursor to the first line on the screen, or &#8220;home&#8221;</td>
</tr>
<tr>
<td>nH</td>
<td>Moves cursor to nth line from the top of the screen</td>
</tr>
<tr>
<td>M</td>
<td>Move cursor to the middle line on the screen</td>
</tr>
<tr>
<td>L</td>
<td>Move cursor to the last line on the screen</td>
</tr>
<tr>
<td>nL</td>
<td>Moves cursor to nth line from the bottom of the screen</td>
</tr>
<tr>
<td>CTRL-d</td>
<td>Moves down ½ screen</td>
</tr>
<tr>
<td>CTRL-f</td>
<td>Moves forward one full screen</td>
</tr>
<tr>
<td>CTRL-u</td>
<td>Moves up ½ screen</td>
</tr>
<tr>
<td>CTRL-b</td>
<td>Moves backward one full screen</td>
</tr>
<tr>
<td>CTRL-e</td>
<td>Moves screen up one line</td>
</tr>
<tr>
<td>CTRL-y</td>
<td>Moves screen down one line</td>
</tr>
<tr>
<td>CTRL-l</td>
<td>Clears and redraws the current screen</td>
</tr>
<tr>
<td>CTRL-r</td>
<td>Redraws the screen, removing deleted lines</td>
</tr>
<tr>
<td>CTRL-T</td>
<td>Moves cursor to next tab position</td>
</tr>
<tr>
<td>CTRL-W</td>
<td>Moves back one word</td>
</tr>
<tr>
<td>Z</td>
<td>z-carriage return makes the current line the top line on the page</td>
</tr>
<tr>
<td>Nz</td>
<td>Makes the line n the top line on the page</td>
</tr>
<tr>
<td>z.</td>
<td>Makes the current line the middle line on the page</td>
</tr>
<tr>
<td>Nz.</td>
<td>Makes the line n the middle line on the page</td>
</tr>
<tr>
<td>z-</td>
<td>Makes the current line the bottom line on the page</td>
</tr>
<tr>
<td>Nz-</td>
<td>Makes the line n the bottom line on the page</td>
</tr>
<tr>
<td>%</td>
<td>Move to associated ( ), { }, [ ]</td>
</tr>
</tbody>
</table>
<p><a name="delete"></a><strong>Deleting Text</strong></p>
<table border="0" cellpadding="0">
<tbody>
<tr>
<td>Almost all deletion commands are performed by typing d followed by a motion. For example, dw deletes a word. A few other deletes are:</td>
</tr>
</tbody>
</table>
<table border="1" cellpadding="0">
<tbody>
<tr>
<td>x</td>
<td>Delete character to the right of cursor</td>
</tr>
<tr>
<td>nx</td>
<td>Deletes n characters starting with current; omitting n deletes current character only</td>
</tr>
<tr>
<td>X</td>
<td>Delete character to the left of cursor</td>
</tr>
<tr>
<td>nX</td>
<td>Deletes previous n characters; omitting n deletes previous character only</td>
</tr>
<tr>
<td>D</td>
<td>Delete to the end of the line</td>
</tr>
<tr>
<td>D$</td>
<td>Deletes from the cursor to the end of the line</td>
</tr>
<tr>
<td>dd or :d or CTRL-U</td>
<td>Delete current line</td>
</tr>
<tr>
<td>ndw</td>
<td>Deletes the next n words starting with current</td>
</tr>
<tr>
<td>ndb</td>
<td>Deletes the previous n words starting with current</td>
</tr>
<tr>
<td>ndd</td>
<td>Deletes n lines beginning with the current line</td>
</tr>
<tr>
<td>:n,md</td>
<td>Deletes lines n through m</td>
</tr>
<tr>
<td>d<em>Motion_cmd</em></td>
<td>Deletes everything included in the Motion Command (e.g., dG would delete from current position to the end of the file, and d4 would delete to the end of the fourth sentence).</td>
</tr>
<tr>
<td>&#8220;np</td>
<td>Retrieves the last nth delete (last 9 deletes are kept in a buffer)</td>
</tr>
<tr>
<td>&#8220;1pu.u.</td>
<td>Scrolls through the delete buffer until the desired delete is retrieved (repeat u.)</td>
</tr>
</tbody>
</table>
<p><a name="yank"></a><strong>Yanking Text</strong></p>
<table border="0" cellpadding="0">
<tbody>
<tr>
<td>Like deletion, almost all yank commands are performed by typing y followed by a motion. For example, y$ yanks to the end of the line. Two other yank commands are:</td>
</tr>
</tbody>
</table>
<table border="1" cellpadding="0">
<tbody>
<tr>
<td>yy</td>
<td>Yank the current line</td>
</tr>
<tr>
<td>:y</td>
<td>Yank the current line</td>
</tr>
<tr>
<td>nyy or nY</td>
<td>Places n lines in the buffer-copies</td>
</tr>
<tr>
<td>y<em>Motion_cmd</em></td>
<td>Copies everything from the curser to the Motion Command (e.g., yG would copy from current position to the end of the file, and y4 would copy to the end of the fourth sentence)</td>
</tr>
<tr>
<td>&#8220;(a-z)nyy or &#8220;(a-z)ndd</td>
<td>Copies or cuts (deletes) n lines into a named buffer a through z; omitting n works on current line</td>
</tr>
</tbody>
</table>
<p><a name="change"></a><strong>Changing text</strong></p>
<table border="0" cellpadding="0">
<tbody>
<tr>
<td>The change command is a deletion command that leaves the editor in insert mode. It is performed by typing c followed by a motion. For example cw changes a word. A few other change commands are:</td>
</tr>
</tbody>
</table>
<table border="1" cellpadding="0">
<tbody>
<tr>
<td>C</td>
<td>Change to the end of the line</td>
</tr>
<tr>
<td>cc or S</td>
<td>Change the whole line until ESC is pressed</td>
</tr>
<tr>
<td>xp</td>
<td>Switches character at cursor with following character</td>
</tr>
<tr>
<td>s<em>text</em></td>
<td>Substitutes text for the current character until ESC is used</td>
</tr>
<tr>
<td>cw<em>text</em></td>
<td>Changes current word to text until ESC is used</td>
</tr>
<tr>
<td>C<em>text</em></td>
<td>Changes rest of the current line to text until ESC is used</td>
</tr>
<tr>
<td>c<em>Motion_cmd</em></td>
<td>Changes to text from current position to Motion Command until ESC is used</td>
</tr>
<tr>
<td>&lt;&lt; or &gt;&gt;</td>
<td>Shifts the line left or right (respectively) by one shift width (a tab)</td>
</tr>
<tr>
<td>N&lt;&lt; or n&gt;&gt;</td>
<td>Shifts n lines left or right (respectively) by one shift width (a tab)</td>
</tr>
<tr>
<td>&lt;<em>Motion_cmd</em> or &gt;<em>Motion_cmd</em></td>
<td>Use with Motion Command to shift multiple lines left or right</td>
</tr>
</tbody>
</table>
<p><a name="put"></a><strong>Putting text</strong></p>
<table border="1" cellpadding="0">
<tbody>
<tr>
<td>p</td>
<td>Put after the position or after the line</td>
</tr>
<tr>
<td>P</td>
<td>Put before the position or before the line</td>
</tr>
<tr>
<td>&#8220;(a-z)p or &#8220;(a-z)P</td>
<td>Pastes text from a named buffer a through z after or before the current line</td>
</tr>
</tbody>
</table>
<p><a name="buffer"></a><strong><br />
Buffers</strong></p>
<table border="0" cellpadding="0">
<tbody>
<tr>
<td>Named buffers may be specified before any deletion, change, yank or put command. The general prefix has the form &#8220;c where c is any lowercase character. For example, &#8220;adw deletes a word into buffer a. It may thereafter be put back into text with an appropriate &#8220;ap.</td>
</tr>
</tbody>
</table>
<p><a name="mark"></a><strong>Markers</strong></p>
<table border="0" cellpadding="0">
<tbody>
<tr>
<td>Named markers may be set on any line in a file. Any lower case letter may be a marker name. Markers may also be used as limits for ranges.</td>
</tr>
</tbody>
</table>
<table border="1" cellpadding="0">
<tbody>
<tr>
<td>mc</td>
<td>Set marker c on this line</td>
</tr>
<tr>
<td>&#8216;c</td>
<td>Go to beginning of marker c line.</td>
</tr>
<tr>
<td>&#8216;c</td>
<td>Go to first non-blank character of marker c line.</td>
</tr>
</tbody>
</table>
<p><a name="search"></a><strong>Search for strings</strong></p>
<table border="1" cellpadding="0">
<tbody>
<tr>
<td>/<em>string</em></td>
<td>Search forward for <em>string</em></td>
</tr>
<tr>
<td>?<em>string</em></td>
<td>Search back for <em>string</em></td>
</tr>
<tr>
<td>n</td>
<td>Search for next instance of <em>string</em></td>
</tr>
<tr>
<td>N</td>
<td>Search for previous instance of <em>string</em></td>
</tr>
<tr>
<td>%</td>
<td>Searches to beginning of balancing ( ) [ ] or { }</td>
</tr>
<tr>
<td>f<em>c</em></td>
<td>Searches forward in current line to <em>char</em></td>
</tr>
<tr>
<td>F<em>c</em></td>
<td>Searches backward in current line to <em>char</em></td>
</tr>
<tr>
<td>t<em>c</em></td>
<td>Searches forward in current line to character before char</td>
</tr>
<tr>
<td>Tchar</td>
<td>Searches backward in current line to character before char</td>
</tr>
<tr>
<td>?str</td>
<td>Finds in reverse for str</td>
</tr>
<tr>
<td>:set ic</td>
<td>Ignores case when searching</td>
</tr>
<tr>
<td>:set noic</td>
<td>Pays attention to case when searching</td>
</tr>
<tr>
<td>:n,ms/<em>str1</em>/<em>str2</em>/<em>opt</em></td>
<td>Searches from n to m for <em>str1</em>; replaces <em>str1</em> to <em>str2</em>; using opt-opt can be g for global change, c to confirm change (y to acknowledge, to suppress), and p to print changed lines</td>
</tr>
<tr>
<td>&amp;</td>
<td>Repeats last :s command</td>
</tr>
<tr>
<td>:g/<em>str</em>/<em>cmd</em></td>
<td>Runs <em>cmd</em> on all lines that contain <em>str</em></td>
</tr>
<tr>
<td>:g/<em>str1</em>/s/<em>str2</em>/<em>str3</em>/</td>
<td>Finds the line containing <em>str1</em>, replaces <em>str2</em> with <em>str3</em></td>
</tr>
<tr>
<td>:v/<em>str</em>/<em>cmd</em></td>
<td>Executes <em>cmd</em> on all lines that do not match <em>str</em></td>
</tr>
<tr>
<td>,</td>
<td>Repeats, in reverse direction, last / or ? search command</td>
</tr>
</tbody>
</table>
<p><a name="replace"></a><strong>Replace</strong></p>
<table border="0" cellpadding="0">
<tbody>
<tr>
<td>The search and replace function is accomplished with the :s command. It is commonly used in combination with ranges or the :g command (below).</td>
</tr>
</tbody>
</table>
<table border="1" cellpadding="0">
<tbody>
<tr>
<td>:s/<em>pattern</em>/<em>string</em>/<em>flags</em></td>
<td>Replace <em>pattern</em> with <em>string</em> according to <em>flags</em>.</td>
</tr>
<tr>
<td>G</td>
<td>Flag &#8211; Replace all occurrences of pattern</td>
</tr>
<tr>
<td>C</td>
<td>Flag &#8211; Confirm replaces.</td>
</tr>
<tr>
<td>&amp;</td>
<td>Repeat last :s command</td>
</tr>
</tbody>
</table>
<p><a name="re"></a><strong>Regular Expressions</strong></p>
<table border="1" cellpadding="0">
<tbody>
<tr>
<td>. (dot)</td>
<td>Any single character except newline</td>
</tr>
<tr>
<td>*</td>
<td>zero or more occurrences of any character</td>
</tr>
<tr>
<td>[...]</td>
<td>Any single character specified in the set</td>
</tr>
<tr>
<td>[^...]</td>
<td>Any single character not specified in the set</td>
</tr>
<tr>
<td>\&lt;</td>
<td>Matches beginning of word</td>
</tr>
<tr>
<td>\&gt;</td>
<td>Matches end of word</td>
</tr>
<tr>
<td>^</td>
<td>Anchor &#8211; beginning of the line</td>
</tr>
<tr>
<td>$</td>
<td>Anchor &#8211; end of line</td>
</tr>
<tr>
<td>\&lt;</td>
<td>Anchor &#8211; beginning of word</td>
</tr>
<tr>
<td>\&gt;</td>
<td>Anchor &#8211; end of word</td>
</tr>
<tr>
<td>\(&#8230;\)</td>
<td>Grouping &#8211; usually used to group conditions</td>
</tr>
<tr>
<td>\n</td>
<td>Contents of nth grouping</td>
</tr>
<tr>
<td>\</td>
<td>Escapes the meaning of the next character (e.g., \$ allows you to search for $)</td>
</tr>
<tr>
<td>\\</td>
<td>Escapes the \ character</td>
</tr>
</tbody>
</table>
<table border="1" cellpadding="0">
<tbody>
<tr>
<td colspan="2">[...] &#8211; Set Examples</td>
</tr>
<tr>
<td>[A-Z]</td>
<td>The SET from Capital A to Capital Z</td>
</tr>
<tr>
<td>[a-z]</td>
<td>The SET from lowercase a to lowercase z</td>
</tr>
<tr>
<td>[0-9]</td>
<td>The SET from 0 to 9 (All numerals)</td>
</tr>
<tr>
<td>[./=+]</td>
<td>The SET containing. (dot), / (slash), =, and +</td>
</tr>
<tr>
<td>[-A-F]</td>
<td>The SET from Capital A to Capital F and the dash (dashes must be specified first)</td>
</tr>
<tr>
<td>[0-9 A-Z]</td>
<td>The SET containing all capital letters and digits and a space</td>
</tr>
<tr>
<td>[A-Z][a-zA-Z]</td>
<td>In the first position, the SET from Capital A to Capital Z<br />
In the second character position, the SET containing all letters</td>
</tr>
<tr>
<td>[a-z]{m}</td>
<td>Look for <em>m</em> occurrences of the SET from lowercase a to lowercase z</td>
</tr>
<tr>
<td>[a-z]{m,n}</td>
<td>Look for at least m occurrences, but no more than n occurrences of the SET from lowercase a to lowercase z</td>
</tr>
</tbody>
</table>
<table border="1" cellpadding="0">
<tbody>
<tr>
<td colspan="2">Regular Expression Examples</td>
</tr>
<tr>
<td>/Hello/</td>
<td>Matches if the line contains the value Hello</td>
</tr>
<tr>
<td>/^TEST$/</td>
<td>Matches if the line contains TEST by itself</td>
</tr>
<tr>
<td>/^[a-zA-Z]/</td>
<td>Matches if the line starts with any letter</td>
</tr>
<tr>
<td>/^[a-z].*/</td>
<td>Matches if the first character of the line is a-z and there is at least one more of any character following it</td>
</tr>
<tr>
<td>/2134$/</td>
<td>Matches if line ends with 2134</td>
</tr>
<tr>
<td>/\(21|35\)/</td>
<td>Matches is the line contains 21 or 35<br />
Note the use of ( ) with the pipe symbol to specify the &#8216;or&#8217; condition</td>
</tr>
<tr>
<td>/[0-9]*/</td>
<td>Matches if there are zero or more numbers in the line</td>
</tr>
<tr>
<td>/^[^#]/</td>
<td>Matches if the first character is not a # in the line</td>
</tr>
<tr>
<td colspan="2">Notes:<br />
1. Regular expressions are case sensitive<br />
2. Regular expressions are to be used where <em>pattern</em> is specified</td>
</tr>
</tbody>
</table>
<p><a name="count"></a><strong>Counts</strong></p>
<table border="0" cellpadding="0">
<tbody>
<tr>
<td>Nearly every command may be preceded by a number that specifies how many times it is to be performed. For example, 5dw will delete 5 words and 3fe will move the cursor forward to the 3rd occurrence of the letter e. Even insertions may be repeated conveniently with this method, say to insert the same line 100 times.</td>
</tr>
</tbody>
</table>
<p><a name="range"></a><strong>Ranges</strong></p>
<table border="0" cellpadding="0">
<tbody>
<tr>
<td>Ranges may precede most &#8220;colon&#8221; commands and cause them to be executed on a line or lines. For example :3,7d would delete lines 3-7. Ranges are commonly combined with the :s command to perform a replacement on several lines, as with :.,$s/pattern/string/g to make a replacement from the current line to the end of the file.</td>
</tr>
</tbody>
</table>
<table border="1" cellpadding="0">
<tbody>
<tr>
<td>:n,m</td>
<td>Range &#8211; Lines n-m</td>
</tr>
<tr>
<td>:.</td>
<td>Range &#8211; Current line</td>
</tr>
<tr>
<td>:$</td>
<td>Range &#8211; Last line</td>
</tr>
<tr>
<td>:&#8217;c</td>
<td>Range &#8211; Marker c</td>
</tr>
<tr>
<td>:%</td>
<td>Range &#8211; All lines in file</td>
</tr>
<tr>
<td>:g/<em>pattern</em>/</td>
<td>Range &#8211; All lines that contain <em>pattern</em></td>
</tr>
</tbody>
</table>
<p><strong>Shell Functions</strong></p>
<table border="1" cellpadding="0">
<tbody>
<tr>
<td>:! Cmd</td>
<td>Executes shell command cmd; you can add these special characters to indicate:% name of current file# name of last file edited</td>
</tr>
<tr>
<td>!! cmd</td>
<td>Executes shell command cmd, places output in file starting at current line</td>
</tr>
<tr>
<td>:!!</td>
<td>Executes last shell command</td>
</tr>
<tr>
<td>:r! cmd</td>
<td>Reads and inserts output from cmd</td>
</tr>
<tr>
<td>:f</td>
<td>Displays the name of the current file</td>
</tr>
<tr>
<td>:f file</td>
<td>Renames current file to file</td>
</tr>
<tr>
<td>:w !cmd</td>
<td>Sends currently edited file to cmd as standard input and execute cmd</td>
</tr>
<tr>
<td>:cd dir</td>
<td>Changes current working directory to dir</td>
</tr>
<tr>
<td>:sh</td>
<td>Starts a sub-shell (CTRL-d returns to editor)</td>
</tr>
<tr>
<td>:so file</td>
<td>Reads and executes commands in file (file is a shell script)</td>
</tr>
<tr>
<td>!<em>Motion_cmd</em></td>
<td>Sends text from current position to Motion Command <em>cmd</em></td>
</tr>
<tr>
<td>!}sort</td>
<td>Sorts from current position to end of paragraph and replaces text with sorted text</td>
</tr>
</tbody>
</table>
<p><a name="file"></a><strong>Files</strong></p>
<table border="1" cellpadding="0">
<tbody>
<tr>
<td>:w <em>file</em></td>
<td>Write to <em>file</em></td>
</tr>
<tr>
<td>:r <em>file</em></td>
<td>Read <em>file</em> in after line</td>
</tr>
<tr>
<td>:n</td>
<td>Go to next file</td>
</tr>
<tr>
<td>:p</td>
<td>Go to previous file</td>
</tr>
<tr>
<td>:e <em>file</em></td>
<td>Edit <em>file</em></td>
</tr>
<tr>
<td>!!<em>program</em></td>
<td>Replace line with output from <em>program</em></td>
</tr>
</tbody>
</table>
<p><a name="settings"></a><strong>VI Settings</strong></p>
<table border="1" cellpadding="0">
<tbody>
<tr>
<td colspan="2">Note: Options given are default. To change them, enter type :set option to turn them on or :set no<em>optioni</em> to turn them off. To make them execute every time you open VI, create a file in your HOME directory called .exrc and type the options without the colon (:) preceding the option</td>
</tr>
<tr>
<td>:set ai</td>
<td>Turns on auto indentation</td>
</tr>
<tr>
<td>:set all</td>
<td>Prints all options to the screen</td>
</tr>
<tr>
<td>:set ap</td>
<td>Prints line after d c J m :s t u commands</td>
</tr>
<tr>
<td>:set bf</td>
<td>Discards control characters from input</td>
</tr>
<tr>
<td>:set dir=<em>tmp</em></td>
<td>Sets <em>tmp</em> to directory or buffer file</td>
</tr>
<tr>
<td>:set eb</td>
<td>Precedes error messages with a bell</td>
</tr>
<tr>
<td>:set ic</td>
<td>Ignores case when searching</td>
</tr>
<tr>
<td>:set lisp</td>
<td>Modifies brackets for Lisp compatibility.</td>
</tr>
<tr>
<td>:set list</td>
<td>Shows tabs (^l) and end of line ($)</td>
</tr>
<tr>
<td>:set magic</td>
<td>Allows pattern matching with special characters</td>
</tr>
<tr>
<td>:set mesg</td>
<td>Allows others to send messages</td>
</tr>
<tr>
<td>:set no<em>option</em></td>
<td>Turns off <em>option</em></td>
</tr>
<tr>
<td>:set nu</td>
<td>Shows line numbers</td>
</tr>
<tr>
<td>:set opt</td>
<td>Speeds output; eliminates automatic RETURN</td>
</tr>
<tr>
<td>:set prompt</td>
<td>Prompts for command input with :</td>
</tr>
<tr>
<td>:set re</td>
<td>Simulates smart terminal on dumb terminal</td>
</tr>
<tr>
<td>:set report</td>
<td>Indicates largest size of changes reported on status line</td>
</tr>
<tr>
<td>:set ro</td>
<td>Changes file type to &#8220;read only&#8221;</td>
</tr>
<tr>
<td>:set scroll=n</td>
<td>set n lines for CTRL-d and z</td>
</tr>
<tr>
<td>:set sh=<em>shell_path</em></td>
<td>set shell escape (default is /bin/sh) to <em>shell_path</em></td>
</tr>
<tr>
<td>:set showmode</td>
<td>Indicates input or replace mode at bottom</td>
</tr>
<tr>
<td>:set sw=n</td>
<td>Sets shift width to n characters</td>
</tr>
<tr>
<td>:set term</td>
<td>Prints terminal type</td>
</tr>
<tr>
<td>:set terse</td>
<td>Shorten messages with terse</td>
</tr>
<tr>
<td>:set timeout</td>
<td>Eliminates one-second time limit for macros</td>
</tr>
<tr>
<td>:set tl=n</td>
<td>Sets significance of tags beyond n characters (0 means all)</td>
</tr>
<tr>
<td>:set ts=n</td>
<td>Sets tab stops to n for text input</td>
</tr>
<tr>
<td>:set wa</td>
<td>Inhibits normal checks before write commands</td>
</tr>
<tr>
<td>:set warn</td>
<td>Warns &#8220;no write since last change&#8221;</td>
</tr>
<tr>
<td>:set window=n</td>
<td>Sets number of lines in a text window to n</td>
</tr>
<tr>
<td>:set wm=n</td>
<td>Sets automatic wraparound n spaces from right margin.</td>
</tr>
</tbody>
</table>
<p><a name="mapping"></a><strong>Key Mapping</strong></p>
<table border="1" cellpadding="0">
<tbody>
<tr>
<td colspan="2">NOTE: Map allows you to define strings of VI commands. If you create a file called &#8220;.exrc&#8221; in your home directory, any map or set command you place inside this file will be executed every time you run VI. To imbed control characters like ESC in the macro, you need to precede them with CTRL-v. If you need to include quotes (&#8220;), precede them with a \ (backslash). Unused keys in vi are: K V g q v * = and the function keys.<br />
Example (The actual VI commands are in blue):map v /I CTRL-v ESC dwiYou CTRL-v ESC ESC<br />
Description: When v is pressed, search for &#8220;I&#8221; (/I ESC), delete word (dw), and insert &#8220;You&#8221; (iYou ESC). CTRL-v allows ESC to be inserted</td>
</tr>
<tr>
<td>:map <em>key</em> <em>cmd_seq</em></td>
<td>Defines <em>key</em> to run <em>cmd_seq</em> when pressed</td>
</tr>
<tr>
<td>:map</td>
<td>Displays all created macros on status line</td>
</tr>
<tr>
<td>:unmap key</td>
<td>Removes macro definition for key</td>
</tr>
<tr>
<td>:ab <em>str</em> <em>string</em></td>
<td>When <em>str</em> is input, replaces it with <em>string</em></td>
</tr>
<tr>
<td>:ab</td>
<td>Displays all abbreviations</td>
</tr>
<tr>
<td>:una <em>str</em></td>
<td>Unabbreviate <em>str</em></td>
</tr>
</tbody>
</table>
<p><a name="other"></a><strong>Other</strong></p>
<table border="1" cellpadding="0">
<tbody>
<tr>
<td>~</td>
<td>Toggle upper and lower case for the character at the current position</td>
</tr>
<tr>
<td>J</td>
<td>Joins the line immediately below the current line with the current line</td>
</tr>
<tr>
<td>nJ</td>
<td>Joins the next n lines together; omitting n joins the beginning of the next line to the end of the current line</td>
</tr>
<tr>
<td>.</td>
<td>Repeat last text-changing command</td>
</tr>
<tr>
<td>U</td>
<td>Undo the effect of last command (Note: u in combination with . can allow multiple levels of undo in some versions)</td>
</tr>
<tr>
<td>U</td>
<td>Undo all changes to the current line</td>
</tr>
<tr>
<td>;</td>
<td>Repeats last f F t or T search command</td>
</tr>
</tbody>
</table>
<div class="printfriendly alignleft"><a href="http://www.oratraining.com/blog/2009/06/vi-commands-quick-reference/?pfstyle=wp" rel="nofollow" ><img src="//cdn.printfriendly.com/pf-button-both.gif" alt="Print Friendly" /></a></div><div class="tweetthis" style="text-align:left;"><p> <a class="tt" href="http://twitter.com/intent/tweet?text=vi+commands+quick+reference+http%3A%2F%2Foratraining.com%2Fblog%2F%3Fp%3D199" title="Post to Twitter"><img class="nothumb" src="http://www.oratraining.com/blog/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter-big3.png" alt="Post to Twitter" /></a> <a class="tt" href="http://digg.com/submit?url=http://www.oratraining.com/blog/2009/06/vi-commands-quick-reference/&amp;title=vi+commands+quick+reference" title="Post to Digg"><img class="nothumb" src="http://www.oratraining.com/blog/wp-content/plugins/tweet-this/icons/en/digg/tt-digg-big4.png" alt="Post to Digg" /></a></p></div><p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.oratraining.com%2Fblog%2F2009%2F06%2Fvi-commands-quick-reference%2F&amp;title=vi%20commands%20quick%20reference" id="wpa2a_10"><img src="http://www.oratraining.com/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.oratraining.com/blog/2009/06/vi-commands-quick-reference/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Unix/Linux commands Quick reference</title>
		<link>http://www.oratraining.com/blog/2009/06/unix-commands-quick-reference-2/</link>
		<comments>http://www.oratraining.com/blog/2009/06/unix-commands-quick-reference-2/#comments</comments>
		<pubDate>Wed, 24 Jun 2009 06:13:44 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux/Unix/Solaris]]></category>
		<category><![CDATA[Shell scripting]]></category>
		<category><![CDATA[Unix administration]]></category>

		<guid isPermaLink="false">http://www.oratraining.com/blog/?p=196</guid>
		<description><![CDATA[Tweet Quick Reference: Unix Commands and options The following format is used for commands: Italic indicates a variable that you supply Bold indicates exactly what you type [ ] Square brackets indicate that the thing which they surround is optionally typed. The square brackets themselves are not to be typed. To display a command description from [...]]]></description>
			<content:encoded><![CDATA[<div class="bottomcontainerBox" style="background-color:#F0F4F9;">
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.oratraining.com%2Fblog%2F2009%2F06%2Funix-commands-quick-reference-2%2F&amp;layout=button_count&amp;show_faces=false&amp;width=85&amp;action=like&amp;font=verdana&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width=85px; height:21px;" allowTransparency="true"></iframe></div>
			<div style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<g:plusone size="medium" href="http://www.oratraining.com/blog/2009/06/unix-commands-quick-reference-2/"></g:plusone>
			</div>
			<div style="float:left; width:95px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<a href="http://twitter.com/share" class="twitter-share-button" data-url="http://www.oratraining.com/blog/2009/06/unix-commands-quick-reference-2/"  data-text="Unix/Linux commands Quick reference" data-count="horizontal">Tweet</a>
			</div><div style="float:left; width:105px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"><script type="in/share" data-url="http://www.oratraining.com/blog/2009/06/unix-commands-quick-reference-2/" data-counter="right"></script></div>			
			</div><div style="clear:both"></div><div style="padding-bottom:4px;"></div><h2>Quick Reference: Unix Commands and options</h2>
<p>The following format is used for commands:<br />
<em>Italic </em>indicates a variable that you supply<br />
<strong>Bold </strong>indicates exactly what you type<br />
[ ] Square brackets indicate that the thing which they surround is optionally typed. The square brackets themselves are not to be typed.</p>
<p>To display a command description from the Unix Manual and can be used to get more information on each command. Type following on shell prompt to see the manual:<br />
<strong>man </strong><em>command</em><br />
Example: <strong>man ls </strong>to find more about the command ls<em> </em></p>
<p>If you are not sure of the exact command name, you can use <code>man</code> with the <code> -k </code> option to help you find the command you need. To see one line summaries of each reference page that contains the keyword you specify, enter: <strong>man -k</strong> <em>keyword</em> <span id="more-196"></span></p>
<table border="1" cellpadding="0" width="106%">
<tbody>
<tr>
<td><strong>Command</strong></td>
<td>
<p align="center"><strong>Action</strong></p>
</td>
<td>
<p align="center"><strong>Example</strong></p>
</td>
</tr>
<tr>
<td valign="top"><a name="A"></a><strong> </strong></td>
<td valign="top">Creates a temporary name (alias) for a Unix command. When you type <em>alias-name</em>, <em>string</em> is substituted and run in its place. Typically, you put alias commands in your .cshrc file. Aliases can be self-referential without causing infinite recursion, e.g.:<br />
<em>alias rm &#8217;rm -i&#8217;</em><em> </em></td>
<td valign="top"><strong>alias </strong><strong><em>alias_</em></strong><em>name string </em></td>
</tr>
<tr>
<td valign="top"><strong> </strong><strong> </strong></td>
<td valign="top">To remove an alias</td>
<td valign="top"><strong>unalias </strong><em>name </em></td>
</tr>
<tr>
<td valign="top"><strong>ansiprint </strong><strong> </strong></td>
<td valign="top">Prints a file to a printer connected to your computer.</td>
<td valign="top"><strong>ansiprint </strong><em>file </em></td>
</tr>
<tr>
<td valign="top"><tt>apropos</tt><strong> </strong></td>
<td valign="top">Find a list of manual pages about a keyword.</td>
<td valign="top"><tt><strong>apropos</strong></tt><tt> <em>keyword</em></tt> <strong> </strong></td>
</tr>
<tr>
<td valign="top"><strong>Ar</strong></td>
<td valign="top">Create and maintain library archives</td>
<td valign="top"><strong> </strong></td>
</tr>
<tr>
<td valign="top">archie<strong> </strong></td>
<td valign="top">search the Archie database for a file on a FTP site</td>
<td valign="top"><strong>archie </strong><em>file</em><strong> </strong></td>
</tr>
<tr>
<td valign="top"><strong>asa</strong></td>
<td valign="top">Text Processing: Interpret carriage-control characters</td>
<td valign="top"><strong> </strong></td>
</tr>
<tr>
<td valign="top"><strong>assets </strong><strong> </strong></td>
<td valign="top">Displays your account resources, use, and threshold.</td>
<td valign="top"><strong> </strong> <em> </em></td>
</tr>
<tr>
<td valign="top"><strong>At</strong></td>
<td valign="top">Process Management: Execute commands at a later time</td>
<td valign="top"><strong> </strong></td>
</tr>
<tr>
<td valign="top"><strong>awk</strong></td>
<td valign="top">Text Processing: Pattern scanning and processing language. <tt>awk</tt> is most commonly used to extract numbered fields from lines of text. For example, the following command prints the third word on each line: <tt>awk</tt> also supports more complicated scripting &#8211; see the manual page.</td>
<td valign="top"><tt><strong>awk</strong></tt><tt> '{print $5}' <em>[file]</em></tt></p>
<p><strong> </strong></td>
</tr>
<tr>
<td valign="top">basename</td>
<td valign="top">File system: Return non-directory portion of a pathname</td>
<td valign="top"><strong> </strong> <em> </em></td>
</tr>
<tr>
<td valign="top">batch<strong> </strong></td>
<td valign="top">Process Management: Schedule commands to be executed in a batch queue</td>
<td valign="top"><strong> </strong></td>
</tr>
<tr>
<td valign="top"><strong>Bc</strong></td>
<td valign="top">A simple calculator; Arbitrary-precision arithmetic language. Uses integer arithmetic by default. For floating-point arithmetic, type &#8220;bc -l&#8221;.</td>
<td valign="top"><strong> </strong></td>
</tr>
<tr>
<td valign="top"><a name="B"></a><strong> </strong></td>
<td valign="top">Process Management: Places or runs job in the background.</td>
<td valign="top"><strong> </strong></td>
</tr>
<tr>
<td valign="top">break<strong> </strong></td>
<td valign="top">Shell programming: Exit from for, while, or until loop</td>
<td valign="top"><strong> </strong></td>
</tr>
<tr>
<td valign="top"><strong>cal</strong></td>
<td valign="top">Display a calendar of the current month.</td>
<td valign="top"><strong> </strong></td>
</tr>
<tr>
<td valign="top"><strong> </strong></td>
<td valign="top">Display a calendar of the given month and year. Note that the year must be fully qualified, for example, &#8220;2003&#8243; and not &#8220;03.&#8221;</td>
<td valign="top"><strong>cal </strong><strong><em>month year</em></strong> <strong> </strong></td>
</tr>
<tr>
<td valign="top"><a name="C"></a><strong> </strong></td>
<td valign="top">File system: Concatenate and displays specified files</td>
<td valign="top"><strong>cat </strong> <em>file </em></td>
</tr>
<tr>
<td valign="top"><strong> </strong></td>
<td valign="top">Overwrites the <em>file2</em> with the content of <em>file1</em></td>
<td valign="top"><strong>cat </strong><strong><em>file1&gt;file2</em></strong><strong> </strong></td>
</tr>
<tr>
<td valign="top"><strong> </strong></td>
<td valign="top">Append <em>file1</em> to the end of <em>file2</em></td>
<td valign="top"><strong>cat </strong><strong><em>file1&gt;&gt;file2</em></strong><strong> </strong></td>
</tr>
<tr>
<td valign="top"><strong> </strong></td>
<td valign="top">Creates a file, typing some text, and finishing by pressing ctrl-d at the start of a line.</td>
<td valign="top"><strong>cat  &gt; </strong><strong><em>file1</em></strong><strong> </strong></td>
</tr>
<tr>
<td valign="top"><strong>Cc</strong></td>
<td valign="top">Compile a C program</td>
<td valign="top"><strong> </strong></td>
</tr>
<tr>
<td valign="top"><strong>Cd </strong><strong> </strong></td>
<td valign="top">File system: Changes current directory to a different directory.</td>
<td valign="top"><strong>cd </strong> <em>directory </em></td>
</tr>
<tr>
<td valign="top"><strong> </strong><strong> </strong></td>
<td valign="top">To change back to your home directory:</td>
<td valign="top"><strong>cd </strong> <em> </em></td>
</tr>
<tr>
<td valign="top"><strong> </strong><strong> </strong></td>
<td valign="top">Directory abbreviations:</p>
<p><strong>~</strong> Home directory</p>
<p><strong>..</strong> Parent directory</p>
<p><strong>.</strong> Current working directory</td>
<td valign="top"></td>
</tr>
<tr>
<td valign="top">cflow<strong> </strong></td>
<td valign="top">C Programming : Generate a C-language flowgraph</td>
<td valign="top"><strong> </strong></td>
</tr>
<tr>
<td valign="top">chfn</td>
<td valign="top">change your &#8220;Real Name&#8221; as seen on finger</td>
<td valign="top"><strong> </strong></td>
</tr>
<tr>
<td valign="top">chgrp<strong></strong></td>
<td valign="top">File system: Change the file group ownership. Makes file belong to the group user. NOTE: You must be the owner of the file/directory or be root</td>
<td valign="top"><strong>chgrp </strong><em>user file</em> <strong></strong></td>
</tr>
<tr>
<td valign="top"><strong>chmod </strong><strong></strong></td>
<td valign="top">File system: Change the file modes/attributes/permissions NOTE: You must be the owner of the file/directory or be root</td>
<td valign="top"><strong>chmod </strong> <em>code file </em><br />
<strong>chmod </strong> <em>code directory </em></td>
</tr>
<tr>
<td valign="top"><strong> </strong><strong></strong></td>
<td valign="top">To keep a file private</td>
<td valign="top"><strong>chmod </strong> <em>600 file </em></td>
</tr>
<tr>
<td valign="top"><strong> </strong><strong></strong></td>
<td valign="top">To give everyone read permission:</td>
<td valign="top"><strong>chmod </strong> <em>664 file </em></td>
</tr>
<tr>
<td valign="top">chown<strong></strong></td>
<td valign="top">File system: Change the file ownership NOTE: You must be the owner of the file/directory or be root</td>
<td valign="top"><strong>chown</strong> <em>new_own file</em> <strong></strong></td>
</tr>
<tr>
<td valign="top"></td>
<td valign="top">Makes cliff(<em>new_own)</em> the owner of dir and everything in its directory tree. NOTE: You must be the owner of the file/directory or be root</td>
<td valign="top"><strong>chown</strong> <strong>-R</strong> <em>cliff dir</em> <strong></strong></td>
</tr>
<tr>
<td valign="top">chsh</td>
<td valign="top">change the shell you log into</td>
<td valign="top"><strong> </strong></td>
</tr>
<tr>
<td valign="top">cksum<strong></strong></td>
<td valign="top">File system: Write file checksums and sizes</td>
<td valign="top"><strong> </strong></td>
</tr>
<tr>
<td valign="top"><strong>clear</strong><strong> </strong><strong></strong></td>
<td valign="top">Clears terminal screen</td>
<td valign="top"><strong>clear</strong></td>
</tr>
<tr>
<td valign="top">cmp<strong></strong></td>
<td valign="top">File system: Compare two files</td>
<td valign="top"><strong> </strong></td>
</tr>
<tr>
<td>comm</td>
<td>Text Processing: Select or reject lines common to two files</td>
<td valign="top"><strong> </strong></td>
</tr>
<tr>
<td>command</td>
<td>Shell programming: Execute a simple command</td>
<td valign="top"><strong>command </strong></td>
</tr>
<tr>
<td valign="top"><strong> </strong></td>
<td valign="top">Shell programming: Executes <em>command1</em> in background</td>
<td valign="top"><strong>Command1&amp;</strong></td>
</tr>
<tr>
<td valign="top"><strong>compress </strong><strong></strong></td>
<td valign="top">File system: Reduces the size of a file and adds .Z to the file&#8217;s name.</td>
<td valign="top"><strong>compress </strong> <em>file </em></td>
</tr>
<tr>
<td valign="top"><strong> </strong><strong></strong></td>
<td valign="top">To restore a compressed file:</td>
<td valign="top"><strong>uncompress </strong> <em>file.Z </em></td>
</tr>
<tr>
<td valign="top">continue<strong></strong></td>
<td valign="top">Shell programming: Continue for, while, or until loop</td>
<td valign="top"><strong> </strong></td>
</tr>
<tr>
<td valign="top"><strong>Cp </strong><strong></strong></td>
<td valign="top">File system: Makes a copy of a file.</td>
<td valign="top"><strong>cp </strong> <em>file1 file2 </em></td>
</tr>
<tr>
<td valign="top"><strong> </strong><strong></strong></td>
<td valign="top">To copy a file into a different directory:</td>
<td valign="top"><strong>cp </strong> <em>file directory </em></td>
</tr>
<tr>
<td valign="top"><strong> </strong><strong></strong></td>
<td valign="top">To inquire before overwriting an existing file:</td>
<td valign="top"><strong>cp -i </strong> <em>file1 file2 </em></td>
</tr>
<tr>
<td valign="top"></td>
<td valign="top">To copy a directory and, recursively, its subdirectories</td>
<td valign="top"><strong>cp -r </strong><strong><em>dir1 dir2</em></strong> <strong></strong></td>
</tr>
<tr>
<td valign="top"></td>
<td valign="top">To retain timestamp while copying</td>
<td valign="top"><strong>cp -p </strong><strong></strong></td>
</tr>
<tr>
<td valign="top">crontab<strong></strong></td>
<td valign="top">Schedule periodic background work</td>
<td valign="top"><strong> </strong></td>
</tr>
<tr>
<td valign="top">csplit<strong></strong></td>
<td valign="top">Text Processing: Split files based on context</td>
<td valign="top"><strong> </strong></td>
</tr>
<tr>
<td valign="top">ctags<strong></strong></td>
<td valign="top">C Programming: Create a tags file</td>
<td valign="top"><strong> </strong></td>
</tr>
<tr>
<td valign="top">cut<strong></strong></td>
<td valign="top">Shell programming: Cut out selected fields of each line of a file</td>
<td valign="top"><strong> </strong></td>
</tr>
<tr>
<td valign="top">cxref<strong></strong></td>
<td valign="top">C Programming: Generate a C-language program cross-reference table</td>
<td valign="top"><strong> </strong></td>
</tr>
<tr>
<td>date</td>
<td>Display the current local date and time.</td>
<td valign="top"><strong>date</strong></td>
</tr>
<tr>
<td>Dd</td>
<td>File system: Convert and copy a file</td>
<td valign="top"><strong> </strong></td>
</tr>
<tr>
<td>delta</td>
<td>Make a delta (change) to an SCCS file</td>
<td valign="top"><strong> </strong></td>
</tr>
<tr>
<td>Df</td>
<td>File system: Report free disk space available on the system</td>
<td valign="top"><strong> </strong></td>
</tr>
<tr>
<td valign="top"><strong> </strong></td>
<td valign="top">print list of disks and current capacity (in kilobytes)</td>
<td valign="top"><strong>df -k<strong></strong></strong></td>
</tr>
<tr>
<td valign="top"><a name="D"></a><strong></strong></td>
<td valign="top">Text Processing: Compares two files and displays the differences. Here, shows differences between <em>file1</em> and <em>file2</em></td>
<td valign="top"><strong>diff </strong><em>file1 file2</em></td>
</tr>
<tr>
<td>dirname</td>
<td>File system: Return the directory portion of a pathname</td>
<td valign="top"><strong> </strong></td>
</tr>
<tr>
<td>dos2unix</td>
<td>strips CR&#8217;s out of dos text files</td>
<td valign="top"><strong>dos2unix</strong> <em>&lt;file&gt; &lt;new_file&gt;</em><strong></strong></td>
</tr>
<tr>
<td>dot</td>
<td>Shell programming: Execute commands in the current environment</td>
<td valign="top"><strong> </strong></td>
</tr>
<tr>
<td>Du</td>
<td>File system: Estimate file space usage</td>
<td valign="top"><strong>du</strong></td>
</tr>
<tr>
<td></td>
<td>Print size (in kilobytes) of current directory (&#8220;.&#8221;). Variations:<br />
<strong>du -sk *</strong> prints sizes (in kilobytes) of all files and sub-directories<br />
<strong>du -sk <em>file </em></strong>prints size (in kilobytes) of <em>file</em></p>
<p><strong>du -sk <em>dir </em></strong>prints sum of size (in kilobytes) of <em>dir</em> and its contents</td>
<td valign="top"><strong>du -sk </strong><strong></strong></td>
</tr>
<tr>
<td>dvips</td>
<td>Print <strong>.dvi</strong> files (i.e. files produced by LaTeX). You can use <strong>dviselect</strong> to print only selected pages.</td>
<td valign="top"><strong>dvips </strong><em>filename</em><strong></strong></td>
</tr>
<tr>
<td>echo</td>
<td>Shell programming: Displays a line of text or</p>
<p>Write arguments to standard output. Note that the shell will expand variables in the line, e.g. &#8220; <tt>echo $user</tt> &#8221; will print the contents of the variable <tt>user</tt>. Use single quotes (e.g. &#8220; <tt>echo '$user'</tt> &#8220;) if you want to prevent this.</td>
<td valign="top"><strong>echo </strong><strong><em>text</em></strong><strong><em></em></strong></td>
</tr>
<tr>
<td></td>
<td>Example: This command find out what shell you are using by the command</td>
<td valign="top"><strong>echo</strong> $SHELL<strong></strong></td>
</tr>
<tr>
<td>Ed</td>
<td>Text Processing: The standard text editor</td>
<td valign="top"><strong> </strong></td>
</tr>
<tr>
<td>elm</td>
<td>Another email program</td>
<td valign="top"><strong> </strong></td>
</tr>
<tr>
<td>emacs</td>
<td>Text editor: Edit a file using the emacs editor. Not all systems will have emacs. It&#8217;s Extremely versatile. In emacs, press <tt>ctrl-h</tt>, <tt>t</tt> for a tutorial.</td>
<td valign="top"><strong>emacs</strong> <em>filename</em> <strong></strong></td>
</tr>
<tr>
<td>env</td>
<td>Set the environment for command invocation</td>
<td valign="top"><strong> </strong></td>
</tr>
<tr>
<td>eval</td>
<td>Shell programming: Construct command by concatenating arguments</td>
<td valign="top"><strong> </strong></td>
</tr>
<tr>
<td>Ex</td>
<td>Text Processing: Text editor</td>
<td valign="top"><strong> </strong></td>
</tr>
<tr>
<td>exec</td>
<td>Shell programming: Execute commands and open, close, or copy file descriptors</td>
<td valign="top"><strong> </strong></td>
</tr>
<tr>
<td valign="top">exit<strong></strong></td>
<td valign="top">Shell programming: Exits from the current shell. Similar to logout, but can also be used in shell scripts.</td>
<td valign="top"><strong> </strong></td>
</tr>
<tr>
<td>expand</td>
<td>Text Processing: Convert tabs to spaces</td>
<td valign="top"><strong> </strong> <em> </em></td>
</tr>
<tr>
<td>export</td>
<td>Set the export attribute for variables</td>
<td valign="top"><strong> </strong></td>
</tr>
<tr>
<td>expr</td>
<td>Shell programming: Evaluate arguments as an expression. Give it expressions on the command line. Make sure to put spaces around the numbers, e.g.<br />
expr &#8217;2 + 2&#8242;</td>
<td valign="top"><strong>expr</strong> &#8216;<em>expression</em>&#8216;</p>
<p><strong> </strong></td>
</tr>
<tr>
<td>false</td>
<td>Shell programming: Return false value</td>
<td valign="top"><strong> </strong></td>
</tr>
<tr>
<td>Fc</td>
<td>Process the command history list</td>
<td valign="top"><strong> </strong></td>
</tr>
<tr>
<td valign="top"><strong>Ff</strong></td>
<td valign="top">Find files anywhere on the system. This can be extremely useful if you&#8217;ve forgotten in which directory you put a file, but do remember the name. In fact, if you use <strong>ff -p</strong> you don&#8217;t even need the full name, just the beginning. This can also be useful for finding other things on the system, e.g. documentation.</td>
<td valign="top"><strong> </strong></td>
</tr>
<tr>
<td valign="top"><a name="F"></a><strong></strong></td>
<td valign="top">Process Management: Restarts a suspended job in the foreground.</td>
<td valign="top"><strong> </strong></td>
</tr>
<tr>
<td>File</td>
<td>File system: Determine file type</td>
<td valign="top"><strong>file </strong><strong><em>files</em></strong><strong> </strong><strong></strong></td>
</tr>
<tr>
<td>find</td>
<td>File system: Find the loation of <em>file.1</em> in the directory and sub-directories. Variations:<br />
<strong>find . -name &#8220;*<em>pattern</em>&#8221; -print</strong> finds all files that end with <em>pattern</em>.<br />
<strong>find . -name <em>file.1</em> -exec rm &#8216;{}&#8217; &#8216;;&#8217;</strong> removes all files named <em>file.1</em>.</td>
<td valign="top"><strong>find . -name </strong><em>file.1 </em> <strong>-print<strong></strong></strong></td>
</tr>
<tr>
<td valign="top"><strong>finger </strong><strong></strong></td>
<td valign="top">Displays user information at the specified computer.</td>
<td valign="top"><strong>finger </strong> <em>userid@computer </em></td>
</tr>
<tr>
<td valign="top"><strong> </strong><strong></strong></td>
<td valign="top">To change your finger entry information:</td>
<td valign="top"><strong>chfn </strong></td>
</tr>
<tr>
<td valign="top">fold<strong></strong></td>
<td valign="top">Text Processing: Filter for folding lines</td>
<td valign="top"><strong> </strong></td>
</tr>
<tr>
<td valign="top"><strong>fort77</strong></td>
<td valign="top">C Programming: FORTRAN compiler</td>
<td valign="top"><strong> </strong></td>
</tr>
<tr>
<td valign="top"><strong>ftp </strong><strong></strong></td>
<td valign="top">Starts the file transfer program with a remote computer insecurely. This method does not use encryption, so there is a risk of your password and other data being spied on. It should be avoided wherever scp is available.</td>
<td valign="top"><strong>ftp </strong><em>host_address </em></td>
</tr>
<tr>
<td valign="top">fuser<strong></strong></td>
<td valign="top">Process Management: List process IDs of all processes that have one or more files open</td>
<td valign="top"><strong> </strong></td>
</tr>
<tr>
<td valign="top">gcc</td>
<td valign="top">Compiles C source into a file named &#8216;a.out&#8217;. It compiles a C program with the GNU C-compiler</td>
<td valign="top"><strong>gcc </strong> <em>file.c</em></td>
</tr>
<tr>
<td valign="top">gencat</td>
<td valign="top">Generate a formatted message catalog</td>
<td valign="top"></td>
</tr>
<tr>
<td valign="top">genscript</td>
<td valign="top">Converts plain text files into postscript for printing, and gives you some options for formatting. Consider making an alias like <strong>alias ecop &#8216;genscript -2 -r \!* | lpr -h -Pvalkyr&#8217;</strong> to print two pages on one piece of paper.</td>
<td valign="top"><strong> </strong></td>
</tr>
<tr>
<td valign="top">getconf<strong></strong></td>
<td valign="top">Get configuration values</td>
<td valign="top"><strong> </strong></td>
</tr>
<tr>
<td valign="top">getopts<strong></strong></td>
<td valign="top">Shell programming: Parse utility options</td>
<td valign="top"><strong> </strong></td>
</tr>
<tr>
<td valign="top">gopher<strong></strong></td>
<td valign="top">A Gopher database browser</td>
<td valign="top"><strong> </strong></td>
</tr>
<tr>
<td valign="top"><a name="G"></a><strong></strong></td>
<td valign="top">Finds lines in a file matching a character pattern. grep comes in several varieties (<strong>grep</strong>, <strong>egrep</strong>, and <strong>fgrep</strong>) and has a lot of very flexible options. Check out the man pages if this sounds good to you.</td>
<td valign="top"><strong>grep -icvn </strong> <em>pattern file </em></td>
</tr>
<tr>
<td valign="top"><strong> </strong><strong></strong></td>
<td valign="top"><strong>-i</strong> Ignores case</p>
<p><strong>-c</strong> Lists count of lines that contain pattern</p>
<p><strong>-v</strong> Lists all lines except those with pattern</p>
<p><strong>-n</strong> Lists line number for each found pattern</td>
<td valign="top"></td>
</tr>
<tr>
<td valign="top">gzip<strong></strong></td>
<td valign="top">Compress the specified files. This turns <tt>filename</tt> into <tt>filename.gz</tt>, which is smaller.<br />
Text files compress very well, but with binary data files you might not save much disk space</td>
<td valign="top"><tt><strong>gzip</strong></tt><tt> <em>file...</em></tt></p>
<p><strong> </strong></td>
</tr>
<tr>
<td valign="top"><strong> </strong></td>
<td valign="top">Uncompress the specified files.The opposite of the <tt>gzip</tt> command.</td>
<td valign="top"><tt><strong>gunzip</strong></tt><tt> <em>file...</em></tt> <strong></strong></td>
</tr>
<tr>
<td valign="top"><strong> </strong></td>
<td valign="top">To  look at a gzipped file without actually having to gunzip it (same as <strong>gunzip -c</strong>). You can even print it directly, using <strong>gzcat <em>filename</em> | lpr</strong></td>
<td valign="top"><strong>gzcat </strong><em>filename</em><strong></strong></td>
</tr>
<tr>
<td valign="top"><strong>hash</strong></td>
<td valign="top">Remember or report utility locations</td>
<td valign="top"><strong> </strong></td>
</tr>
<tr>
<td valign="top"><a name="H"></a><strong></strong></td>
<td valign="top">Text Processing: Displays the first ten lines of a file.</td>
<td valign="top"><strong>head </strong> <em>file </em></td>
</tr>
<tr>
<td valign="top"><strong> </strong><strong></strong></td>
<td valign="top">To display the first <em>n</em> number of lines</td>
<td valign="top"><strong>head -n </strong> <em>file </em></td>
</tr>
<tr>
<td valign="top"><strong>help </strong><strong></strong></td>
<td valign="top">Displays an online help note.</td>
<td valign="top"><strong>help </strong> <em>note </em></td>
</tr>
<tr>
<td valign="top"><strong> </strong><strong></strong></td>
<td valign="top">To display a list of help notes:</td>
<td valign="top"><strong>help -l </strong></td>
</tr>
<tr>
<td valign="top"><strong>history </strong><strong></strong></td>
<td valign="top">Displays a list of your most recent commands.</td>
<td valign="top"><strong>history </strong></td>
</tr>
<tr>
<td valign="top"><strong> </strong><strong></strong></td>
<td valign="top">To repeat the nth command from the list. (for example, type &#8220;!m&#8221; to repeat the last command that began with &#8220;m&#8221;)</td>
<td valign="top"><strong>! </strong> <em>n </em></td>
</tr>
<tr>
<td valign="top"><strong> </strong><strong></strong></td>
<td valign="top">To repeat your most recent command</td>
<td valign="top"><strong>!! </strong></td>
</tr>
<tr>
<td>hostname</td>
<td>Show the name of the machine</td>
<td valign="top"><strong> </strong></td>
</tr>
<tr>
<td>iconv</td>
<td>Text Processing: Codeset conversion</td>
<td valign="top"><strong> </strong></td>
</tr>
<tr>
<td>Id</td>
<td>Return user identity</td>
<td valign="top"><strong> </strong></td>
</tr>
<tr>
<td>ipcrm</td>
<td>Remove a message queue, semaphore set, or shared memory segment identifier</td>
<td valign="top"><strong> </strong></td>
</tr>
<tr>
<td>ipcs</td>
<td>Report interprocess communication facilities status</td>
<td valign="top"><strong> </strong></td>
</tr>
<tr>
<td valign="top">Irc<strong></strong></td>
<td valign="top">connect to Internet Relay Chat</td>
<td valign="top"><strong> </strong></td>
</tr>
<tr>
<td valign="top"><a name="J"></a><strong></strong></td>
<td valign="top">Process Management: Displays active jobs and their corresponding job numbers</td>
<td valign="top"><strong>jobs </strong></td>
</tr>
<tr>
<td valign="top"><strong> </strong><strong></strong></td>
<td valign="top">To start a job in the background:</td>
<td valign="top"><strong>job </strong> <em>&amp; </em></td>
</tr>
<tr>
<td valign="top"><strong> </strong><strong></strong></td>
<td valign="top">To return a job to the foreground by the job number</td>
<td valign="top"><strong>fg </strong> <em>%number </em></td>
</tr>
<tr>
<td valign="top"><strong> </strong><strong></strong></td>
<td valign="top">To send a running job to the background:</td>
<td valign="top"><strong>&lt;Control&gt;z bg </strong></td>
</tr>
<tr>
<td valign="top">join<strong></strong></td>
<td valign="top">Text Processing: Relational database operator</td>
<td valign="top"><strong> </strong></td>
</tr>
<tr>
<td valign="top"><a name="K"></a><strong></strong></td>
<td valign="top">Process Management: Terminates a process by its <em><strong>p</strong></em>rocess <em><strong>i</strong></em><strong>d</strong>entification <em>n</em>umber.</td>
<td valign="top"><strong>kill </strong><em>pid </em></td>
</tr>
<tr>
<td valign="top"><strong> </strong></td>
<td valign="top">Remove suspended process #1</td>
<td valign="top"><strong>kill %1<strong></strong></strong></td>
</tr>
<tr>
<td valign="top"><strong> </strong><strong></strong></td>
<td valign="top">To use the strongest form of the <strong>kill</strong> command:</td>
<td valign="top"><strong>kill -9 </strong><em>pid </em></td>
</tr>
<tr>
<td valign="top">less</td>
<td valign="top">Shows file a page at a time. Like more, but you can use Page-Up too. Not on all systems</td>
<td valign="top"><strong>less</strong> <em>filename</em></td>
</tr>
<tr>
<td valign="top">Lex<strong></strong></td>
<td valign="top">C Programming: Generate programs for lexical tasks</td>
<td valign="top"></td>
</tr>
<tr>
<td>link</td>
<td>File system: Call link function</td>
<td valign="top"></td>
</tr>
<tr>
<td>Ln</td>
<td>File system: Link files</td>
<td valign="top"></td>
</tr>
<tr>
<td></td>
<td>Make symbolic links; make a link <tt><em>file2</em></tt>, which points to <tt><em>file1</em></tt></td>
<td valign="top"><tt><strong>ln -s</strong></tt><strong> </strong><tt><em>file1</em></tt><tt> <em>file2</em></tt><strong></strong></td>
</tr>
<tr>
<td>locale</td>
<td>Get locale-specific information</td>
<td valign="top"></td>
</tr>
<tr>
<td valign="top">localedef<strong></strong></td>
<td>Define locale environment</td>
<td valign="top"></td>
</tr>
<tr>
<td valign="top">logger<strong></strong></td>
<td valign="top">Shell programming: Log messages</td>
<td valign="top"></td>
</tr>
<tr>
<td valign="top">login</td>
<td valign="top">Logs in the system or starts a computer session</td>
<td valign="top"></td>
</tr>
<tr>
<td valign="top">logname<strong></strong></td>
<td valign="top">Return the user&#8217;s login name</td>
<td valign="top"></td>
</tr>
<tr>
<td valign="top"><a name="L"></a><strong></strong></td>
<td valign="top">Ends your computer session; logs off the system</td>
<td valign="top"></td>
</tr>
<tr>
<td valign="top"><strong>Lpr</strong></td>
<td valign="top">Text Processing: Show list of available printers and questions to direct your printing of a file to a particular printer</td>
<td valign="top"><strong>lpr </strong></td>
</tr>
<tr>
<td valign="top"><strong> </strong></td>
<td valign="top">If you put several filenames after <tt>lpr</tt>, this will typically send several files in a single print job. The <tt>-P<em>printer</em></tt> option sends the job to the specified printer. If you do not specify a <tt>-P<em>printer</em></tt> option, then <tt>lpr</tt> will use the contents of the <tt>PRINTER</tt> environment variable. You may wish to setup a default printer by putting a line like the following into your <tt>.login</tt> file: <tt>setenv PRINTER <em>mylocalprinter</em></tt></td>
<td valign="top"><strong>lpr </strong><em>files</em><strong></strong></p>
<p><strong>lpr </strong><tt>-P<em>printer</em> <em>files</em></tt><strong></strong></td>
</tr>
<tr>
<td valign="top"><strong>lprm</strong></td>
<td valign="top">Remove print job from the printer queue. You can find the job number by using lpq. Theoretically you also have to specify a printer name, but this isn&#8217;t necessary as long as you use your default printer in the department.</td>
<td valign="top"><tt><strong>lprm</strong></tt><tt> <strong>-P</strong><em>printer</em> <em>job_numbers</em></tt></p>
<p><strong> </strong></td>
</tr>
<tr>
<td valign="top">Lpq<strong></strong></td>
<td valign="top">Show the queue of jobs for a given printer or default printer in case -P<em>printer is not specified.</em> e.g. to get the job number needed for removal, or to see how many other files will be printed before yours will come out<em></em></td>
<td valign="top"><tt><strong>lpq</strong></tt><tt> -<strong>P</strong><em>printer</em></tt></p>
<p><strong> </strong></td>
</tr>
<tr>
<td valign="top"><strong>ls </strong><strong></strong></td>
<td valign="top">File system: Lists the files and subdirectories in your current directory.</td>
<td valign="top"><strong>ls -Fltra </strong></td>
</tr>
<tr>
<td valign="top"><strong> </strong><strong></strong></td>
<td valign="top">-l     Lists long format</p>
<p>-t     Lists by modification time</p>
<p>-r     Lists in reverse order</p>
<p>-F     Lists file type with special character</p>
<p>-a     Lists all files including dot (<strong>.</strong>) files</td>
<td valign="top"></td>
</tr>
<tr>
<td valign="top"><strong>lynx </strong><strong></strong></td>
<td valign="top">Starts a text-only web browser session at UW home page. It&#8217;s a textual World Wide Web browser</td>
<td valign="top"><strong>lynx </strong></td>
</tr>
<tr>
<td valign="top"><strong> </strong><strong></strong></td>
<td valign="top">Starts a Web browser session at a specific Web address.</td>
<td valign="top"><strong>lynx </strong> <em>url </em></td>
</tr>
<tr>
<td valign="top">mailx<strong></strong></td>
<td valign="top">Process messages</td>
<td valign="top"><strong> </strong></td>
</tr>
<tr>
<td valign="top">make<strong></strong></td>
<td valign="top">Maintain, update, and regenerate groups of programs; compiles source code</td>
<td valign="top"><strong> </strong></td>
</tr>
<tr>
<td valign="top"><a name="M"></a><strong></strong></td>
<td valign="top">Displays Unix Manual entry for a command.</td>
<td valign="top"><strong>man </strong> <em>command </em></td>
</tr>
<tr>
<td valign="top"><strong> </strong><strong></strong></td>
<td valign="top">To search Manual Index for a keyword or topic:</td>
<td valign="top"><strong>man -k </strong> <em>keyword </em></td>
</tr>
<tr>
<td valign="top"><strong>Mc</strong></td>
<td valign="top">&#8220;midnight commander&#8221; &#8211; Interactive file explorer. Provides an alternative to many typed commands. NB not installed on many systems</td>
<td valign="top"><strong> </strong></td>
</tr>
<tr>
<td valign="top"><strong>mesg </strong><strong></strong></td>
<td valign="top">Displays your talk and write message access status.</td>
<td valign="top"><strong>mesg </strong></td>
</tr>
<tr>
<td valign="top"><strong> </strong><strong></strong></td>
<td valign="top">To set your message status to yes or no:</td>
<td valign="top"><strong>mesg y</strong> (or <strong>n</strong>)</td>
</tr>
<tr>
<td valign="top"><strong>mkdir </strong><strong></strong></td>
<td valign="top">File system: Creates a new directory within your current directory.</td>
<td valign="top"><strong>mkdir </strong> <em>directory </em></td>
</tr>
<tr>
<td valign="top">mkfifo<strong></strong></td>
<td valign="top">File system: Make FIFO special file</td>
<td valign="top"><strong> </strong></td>
</tr>
<tr>
<td valign="top"><strong>more </strong><strong></strong></td>
<td valign="top">Text Processing: Displays a file one screen at a time. views a file, pausing every screenful. If no files are specified on the command line, then more displays standard input. For example, if you want to list a lot of files a screen at a time, type: ls | more<br />
Press space to go forward one screen, enter to go forward one line.</td>
<td valign="top"><strong>more </strong> <em>file </em></td>
</tr>
<tr>
<td valign="top"><strong> </strong><strong></strong></td>
<td valign="top">Use <strong>&lt;Spacebar&gt;</strong> to scroll forward and <strong>q</strong> to quit.</td>
<td valign="top"></td>
</tr>
<tr>
<td valign="top"><strong>Mv </strong><strong></strong></td>
<td valign="top">File system: Moves a file to a different directory.</td>
<td valign="top"><strong>mv </strong> <em>file directory </em></p>
<p><strong>mv </strong> <em>files directory</em></td>
</tr>
<tr>
<td valign="top"><strong> </strong><strong></strong></td>
<td valign="top">Moves a directory to a second directory.</td>
<td valign="top"><strong>mv </strong> <em>directory1 directory2 </em></td>
</tr>
<tr>
<td valign="top"><strong> </strong><strong></strong></td>
<td valign="top">To rename file1 as file2:</td>
<td valign="top"><strong>mv </strong> <em>file1 file2 </em></td>
</tr>
<tr>
<td valign="top"><strong> </strong><strong></strong></td>
<td valign="top">To rename directory1 as directory2:</td>
<td valign="top"><strong>mv </strong> <em>directory1 directory2 </em></td>
</tr>
<tr>
<td valign="top"><strong> </strong><strong></strong></td>
<td valign="top">To inquire before overwriting an existing file:</td>
<td valign="top"><strong>mv -i </strong> <em>file1 file2 </em></td>
</tr>
<tr>
<td>netscape</td>
<td>Graphical web browser and Email Program: Mainly used for web browsing, it can also be used for sending and receiving email</td>
<td valign="top"></td>
</tr>
<tr>
<td>newgrp</td>
<td>Change to a new group</td>
<td valign="top"></td>
</tr>
<tr>
<td>nice</td>
<td>Process Management: Invoke a utility with an altered nice value to change priority of job</td>
<td valign="top"></td>
</tr>
<tr>
<td>Nl</td>
<td>Text Processing: Line numbering filter</td>
<td valign="top"></td>
</tr>
<tr>
<td>Nm</td>
<td>C Programming: Write the name list of an object file</td>
<td valign="top"></td>
</tr>
<tr>
<td>nohup</td>
<td>Process Management: Invoke a utility immune to hang-ups; it continue a job even after logout</td>
<td valign="top"></td>
</tr>
<tr>
<td>Od</td>
<td>Dump files in various formats</td>
<td valign="top"></td>
</tr>
<tr>
<td>osview</td>
<td>display the operating system statistics</td>
<td valign="top"><strong>osview</strong></td>
</tr>
<tr>
<td>paste</td>
<td>Text Processing: Merge corresponding or subsequent lines of files</td>
<td valign="top"></td>
</tr>
<tr>
<td valign="top"><a name="P"></a><strong></strong></td>
<td valign="top">Starts program to change account password. You&#8217;ll have to type your old password before you type a new one.<br />
You won&#8217;t see the password when you type it, but you type it twice to make sure. Choose a password which can&#8217;t be easily guessed, and keep it secret.</td>
<td valign="top"></td>
</tr>
<tr>
<td>patch</td>
<td>Text Processing: Apply changes to files</td>
<td valign="top"></td>
</tr>
<tr>
<td>pathchk</td>
<td>File system: Check pathnames</td>
<td valign="top"></td>
</tr>
<tr>
<td valign="top"><strong>pico </strong><strong></strong></td>
<td valign="top">Easy-to-use text editor: Starts the Pico text editor with a file,but not very powerful! The same as you get with the <tt>pine</tt> mailer.</td>
<td valign="top"><strong>pico </strong> <em>file </em></td>
</tr>
<tr>
<td valign="top"><strong>pine </strong><strong></strong></td>
<td valign="top">It&#8217;s an easy to use mail program. Starts the Pine® electronic mail program.</td>
<td valign="top"></td>
</tr>
<tr>
<td>Pr</td>
<td>Text Processing: Print files</td>
<td valign="top"></td>
</tr>
<tr>
<td>printenv</td>
<td>Show content of an environment variable. If <em>variable</em> is not typed, printenv will list <em>all</em> the environment variables.</td>
<td valign="top"><strong>printenv</strong> [<em>variable</em>]</td>
</tr>
<tr>
<td>printf</td>
<td>Shell programming: Write formatted output</td>
<td valign="top"></td>
</tr>
<tr>
<td>Prs</td>
<td>Print an SCCS file</td>
<td valign="top"></td>
</tr>
<tr>
<td valign="top"><strong>Ps </strong><strong></strong></td>
<td valign="top">Process Management: Displays processes and their corresponding process identification numbers.</td>
<td valign="top"></td>
</tr>
<tr>
<td valign="top"><strong> </strong></td>
<td valign="top">Display expanded list of all processes and typically show <em>everybody&#8217;s</em> processes.</td>
<td valign="top"><strong>ps -ef</strong></td>
</tr>
<tr>
<td valign="top"><tt>pushd</tt><strong></strong></td>
<td valign="top">Add entry to directory stack Use this to go temporarily to another directory.</td>
<td valign="top"><tt><strong>pushd</strong></tt><tt> <em>directory</em></tt></td>
</tr>
<tr>
<td valign="top"><strong> </strong></td>
<td valign="top">Type <tt>popd</tt> when you want to go back to the directory you were in when you typed <tt>pushd</tt>; means to remove entry from directory stack</td>
<td valign="top"><tt><strong>popd</strong></tt><strong> </strong></td>
</tr>
<tr>
<td valign="top"><strong>pwd </strong><strong></strong></td>
<td valign="top">File system: Displays absolute pathname of current directory. i.e. show the directory that you are in (<strong>p</strong>resent <strong>w</strong>orking <strong>d</strong>irectory)</td>
<td valign="top"></td>
</tr>
<tr>
<td>qalter</td>
<td>Batch Utilities: Alter batch job</td>
<td valign="top"><strong> </strong></td>
</tr>
<tr>
<td>qdel</td>
<td>Batch Utilities: Delete batch jobs</td>
<td valign="top"><strong> </strong></td>
</tr>
<tr>
<td>qhold</td>
<td>Batch Utilities: Hold batch jobs</td>
<td valign="top"><strong> </strong></td>
</tr>
<tr>
<td>qmove</td>
<td>Batch Utilities: Move batch jobs</td>
<td valign="top"><strong> </strong></td>
</tr>
<tr>
<td>qmsg</td>
<td>Batch Utilities: Send message to batch jobs</td>
<td valign="top"><strong> </strong></td>
</tr>
<tr>
<td>qrerun</td>
<td>Batch Utilities: Rerun batch jobs</td>
<td valign="top"><strong> </strong></td>
</tr>
<tr>
<td>qrls</td>
<td>Batch Utilities: Release batch jobs</td>
<td valign="top"><strong> </strong></td>
</tr>
<tr>
<td>qselect</td>
<td>Batch Utilities: Select batch jobs</td>
<td valign="top"><strong> </strong></td>
</tr>
<tr>
<td>qsig</td>
<td>Batch Utilities: Signal batch jobs</td>
<td valign="top"><strong> </strong></td>
</tr>
<tr>
<td>qstat</td>
<td>Batch Utilities: Show status of batch jobs</td>
<td valign="top"><strong> </strong></td>
</tr>
<tr>
<td>qsub</td>
<td>Batch Utilities: Submit a script</td>
<td valign="top"><strong> </strong></td>
</tr>
<tr>
<td>quota</td>
<td>Finding out your available disk space quota. Show how your disk usage compares with your permitted maximum. Your disk usage may exceed your &#8220;quota&#8221; for a short &#8220;grace period&#8221; (typically a week), but it may never exceed your &#8220;limit&#8221;. If the grace period runs out, you will have to delete files before you can create any more.<br />
You may have to type &#8220;<tt>quota -v</tt>&#8221; to get full information.</td>
<td valign="top"><strong>quota -v<strong></strong></strong></td>
</tr>
<tr>
<td>Rcp</td>
<td>Copy files between machines (insecurely). Usage is analogous to scp.</p>
<p>This method does not use encryption, so there is a risk of your password and other data being spied on. It should be avoided wherever scp is available</td>
<td valign="top"><strong>rcp</strong> [<em>username</em>@]<em>machine</em>:<em>file</em> <em>file</em> <strong></strong></td>
</tr>
<tr>
<td>read</td>
<td>Shell programming: Read a line from standard input</td>
<td valign="top"><strong> </strong></td>
</tr>
<tr>
<td>readonly</td>
<td>Set the readonly attribute for variables</td>
<td valign="top"><strong> </strong></td>
</tr>
<tr>
<td>renice</td>
<td>Process Management: Set nice values of running processes. Your command will have less impact on other users. <em>number</em> typically ranges from 0 to 19. <em>process</em> can either be a &#8220;PID&#8221; number as reported by ps or top, or &#8220;%<em>jobnumber</em>&#8221; as reported by jobs.</td>
<td valign="top"><strong>renice</strong><strong> <em>number process</em></strong></td>
</tr>
<tr>
<td>return</td>
<td>Shell programming: Return from a function</td>
<td valign="top"><strong> </strong></td>
</tr>
<tr>
<td valign="top"><a name="R"></a><strong></strong></td>
<td valign="top">File system: Permanently deletes a file.</td>
<td valign="top"><strong>rm </strong> <em>file </em></td>
</tr>
<tr>
<td valign="top"><strong> </strong><strong></strong></td>
<td valign="top">To verify prior to removal</td>
<td valign="top"><strong>rm -I </strong> <em>file </em></td>
</tr>
<tr>
<td valign="top"><strong> </strong></td>
<td valign="top">To remove directory, subdirectories with files recursively</td>
<td valign="top"><strong>rm -r</strong> <em>directory</em><strong></strong></td>
</tr>
<tr>
<td valign="top"><strong> </strong></td>
<td valign="top">To forcibly remove directory content recursively without having write permission on it</td>
<td valign="top"><strong>rm -rf</strong> <em>directory</em><strong></strong></td>
</tr>
<tr>
<td valign="top"><strong>rmdir </strong><strong></strong></td>
<td valign="top">File system: Deletes an empty directory.</td>
<td valign="top"><strong>rmdir </strong> <em>directory </em></td>
</tr>
<tr>
<td valign="top"><strong> </strong><strong></strong></td>
<td valign="top">To verify prior to removal</td>
<td valign="top"><strong>rmdir -i </strong> <em>directory </em></td>
</tr>
<tr>
<td valign="top"><strong>Rz</strong></td>
<td valign="top">Recieve a file (to the unix system) using zmodem</td>
<td valign="top"><strong> </strong></td>
</tr>
<tr>
<td valign="top"><strong>scp</strong></td>
<td valign="top">Copy files between machines (securely) The syntax would copy a file from a remote machine to the local machine. To do the converse, use: scp <em>file</em> [<em>username</em>@]<em>machine</em>:<em>file</em><br />
Omit the &#8220;<em>username</em>@&#8221; bit if your username on the other machine is the same as on the local machine.</td>
<td valign="top"><strong>scp</strong> [<em>username</em>@]<em>machine</em>:<em>file</em> <em>file</em> <tt><strong></strong></tt></td>
</tr>
<tr>
<td valign="top"><strong>sed</strong></td>
<td valign="top">Text Processing: Stream editor. It is most commonly used to perform search-and-replace operations on text. The following command globally replaces <em>pattern</em> with <em>replacement</em>. It also supports more complicated scripting &#8211; see the manual page</td>
<td valign="top"><tt><strong>sed</strong></tt><tt> <strong>'s/</strong><em>pattern</em>/<em>replacement</em><strong>/g'</strong> <em>[file]</em></tt></p>
<p><strong> </strong></td>
</tr>
<tr>
<td valign="top">set<strong></strong></td>
<td valign="top">Set or unset options and positional parameters. The value of shell variables can be accessed as &#8220;$variable&#8221;. Shell variables are seen only by the shell, and are not passed to commands.</td>
<td valign="top"><strong>set</strong> <em>variable</em>=<em>value</em></p>
<p><strong> </strong></td>
</tr>
<tr>
<td>setenv</td>
<td>List environmental variables.</td>
<td valign="top"><strong>setenv</strong><strong></strong></td>
</tr>
<tr>
<td></td>
<td>Set an environment variable</p>
<p>The value of environment variables can be accessed as &#8220;$<em>variable</em>&#8220;. Block capitals are conventionally used for names of environment variables. Environment variables are passed from the shell to commands, and may affect the behavior of commands (e.g. $PRINTER affects lpr).</td>
<td valign="top"><strong>setenv</strong><strong> <em>variable value</em></strong><strong></strong></td>
</tr>
<tr>
<td>sftp</td>
<td>Secure file transfer protocol</td>
<td valign="top"><strong> </strong></td>
</tr>
<tr>
<td>Sh</td>
<td>Shell programming: Shell, the standard command language interpreter</td>
<td valign="top"><strong> </strong></td>
</tr>
<tr>
<td>shift</td>
<td>Shell programming: Shift positional parameters</td>
<td valign="top"><strong> </strong></td>
</tr>
<tr>
<td>sleep</td>
<td>Shell programming: Suspend execution for an interval</td>
<td valign="top"><strong> </strong></td>
</tr>
<tr>
<td>sort</td>
<td>Text Processing: Sort, merge, or sequence check text files. Order the lines in a file or files alphabetically (this command does not alter the file or files &#8212; it merely displays the sorted output to the screen)</td>
<td valign="top"><strong>sort </strong><strong><em>files</em></strong><strong> </strong></p>
<p><strong> </strong></td>
</tr>
<tr>
<td valign="top"><strong> </strong></td>
<td valign="top">Displays contents of <em>files</em> sorted alphabetically in reverse order.</td>
<td valign="top"><strong>sort -r </strong><strong><em>files</em></strong> <strong></strong></td>
</tr>
<tr>
<td valign="top"><strong> </strong></td>
<td valign="top">Displays contents of <em>files </em>sorted numerically (puts 2 before 10 instead of after).</td>
<td valign="top"><strong>sort -n </strong><strong><em>files</em></strong><strong> </strong><strong></strong></td>
</tr>
<tr>
<td valign="top"><a name="S"></a><strong></strong></td>
<td valign="top">Checks the spelling in a file.</td>
<td valign="top"><strong>spell </strong> <em>file </em></td>
</tr>
<tr>
<td valign="top">split<strong></strong></td>
<td valign="top">Split files into pieces</td>
<td valign="top"><strong> </strong></td>
</tr>
<tr>
<td valign="top">ssh<strong></strong></td>
<td valign="top">Connect to another machine</td>
<td valign="top"><strong>ssh </strong><strong><em>hostname</em></strong> <strong></strong></td>
</tr>
<tr>
<td valign="top"><strong>staffdir </strong><strong></strong></td>
<td valign="top">Displays the Online UW Staff Directory.</td>
<td valign="top"><strong>staffdir </strong> &#8220;<em>lastname, firstname</em>&#8220;</td>
</tr>
<tr>
<td valign="top"><strong> </strong><strong></strong></td>
<td valign="top">To display all fields:</td>
<td valign="top"><strong>staffdir -full </strong> &#8220;<em>lastname, firstname</em>&#8220;</td>
</tr>
<tr>
<td>strings</td>
<td valign="top">C Programming: Find printable strings in files</td>
<td valign="top"><strong> </strong></td>
</tr>
<tr>
<td>strip</td>
<td valign="top">C Programming: Remove unnecessary information from executable files</td>
<td valign="top"><strong> </strong></td>
</tr>
<tr>
<td>stty</td>
<td>Set the options for a terminal</td>
<td valign="top"><strong> </strong></td>
</tr>
<tr>
<td>Sz</td>
<td>Send a file (to you) using zmodem</td>
<td valign="top"><strong> </strong></td>
</tr>
<tr>
<td>tabs</td>
<td>Set terminal tabs</td>
<td valign="top"><strong> </strong></td>
</tr>
<tr>
<td>tail</td>
<td>Text Processing: Copy the last ten lines of a file</td>
<td valign="top"><strong>tail </strong> <em>file</em><strong></strong></td>
</tr>
<tr>
<td></td>
<td valign="top">Text Processing: To display the last <em>n</em> number of lines</td>
<td valign="top"><strong>tail -n </strong> <em>file </em></td>
</tr>
<tr>
<td></td>
<td>Text Processing: It skips initial n number of lines and displays rest</td>
<td valign="top"><strong>Tail +n </strong><strong><em>file</em></strong></td>
</tr>
<tr>
<td>talk</td>
<td>Initiate a conversation with another user (end conversation with Control-C); <strong>talk</strong> works only between machines of the same architecture. This feature disabled on many systems.</td>
<td valign="top"><strong>talk </strong><strong><em>user[@machine]</em></strong><strong></strong></td>
</tr>
<tr>
<td>Tar</td>
<td>The tar command stands for &#8220;tape archive&#8221;. It is the &#8220;standard&#8221; way to read and write archives (collections of files and whole directory trees. It combines multiple files into one or vice-versa; store an image of <em>dir.1</em> and it&#8217;s contents in file <em>file.1</em></td>
<td valign="top"><strong>tar -cvf </strong><em>dir.1.tar dir.1</em><strong></strong></td>
</tr>
<tr>
<td></td>
<td>Extracts (x) files from the default tape drive while listing (v = verbose) the file names to the screen</td>
<td valign="top"><strong>tar -xv </strong><em>dir.1.tar</em><strong> </strong><strong> </strong><strong></strong></td>
</tr>
<tr>
<td>tee</td>
<td>Shell programming: Duplicate standard input</td>
<td valign="top"><strong> </strong></td>
</tr>
<tr>
<td valign="top"><strong>telnet </strong><strong></strong></td>
<td valign="top">Starts a telnet session with a remote computer.</td>
<td valign="top"><strong>telnet </strong> <em>host_address </em></td>
</tr>
<tr>
<td>test</td>
<td>Shell programming: Evaluate expression</td>
<td valign="top"><strong> </strong></td>
</tr>
<tr>
<td>time</td>
<td>Process Management: Time a simple command</td>
<td valign="top"><strong> </strong></td>
</tr>
<tr>
<td>times</td>
<td>Process Management: Write process times</td>
<td valign="top"><strong> </strong></td>
</tr>
<tr>
<td>Tin, trn</td>
<td>Read Usenet newsgroups</td>
<td valign="top"><strong> </strong></td>
</tr>
<tr>
<td>top</td>
<td>Display the current, most computer-intensive commands. Press &#8220;q&#8221; to quit from the display</td>
<td valign="top"><strong>top<strong></strong></strong></td>
</tr>
<tr>
<td>touch</td>
<td>File system: Change file access and modification times</td>
<td valign="top"><strong> </strong></td>
</tr>
<tr>
<td>tput</td>
<td>Change terminal characteristics</td>
<td valign="top"><strong> </strong></td>
</tr>
<tr>
<td>Tr</td>
<td>Text Processing: Translate characters</td>
<td valign="top"><strong> </strong></td>
</tr>
<tr>
<td>trap</td>
<td>Process Management: Trap signals</td>
<td valign="top"><strong> </strong></td>
</tr>
<tr>
<td>tree</td>
<td>Draw a tree-like recursive directory listing. Not installed on many systems</td>
<td valign="top"><strong> </strong></td>
</tr>
<tr>
<td>true</td>
<td>Shell programming: Return true value</td>
<td valign="top"><strong> </strong></td>
</tr>
<tr>
<td>tsort</td>
<td>Text Processing: Topological sort</td>
<td valign="top"><strong> </strong></td>
</tr>
<tr>
<td>Tty</td>
<td>Return user&#8217;s terminal name</td>
<td valign="top"><strong> </strong></td>
</tr>
<tr>
<td>type</td>
<td>Displays how a name would be interpreted if used as a command</td>
<td valign="top"><strong> </strong></td>
</tr>
<tr>
<td>ulimit</td>
<td>Set or report file size limit</td>
<td valign="top"><strong> </strong></td>
</tr>
<tr>
<td>umask</td>
<td>Get or set the file mode creation mask means change permissions on new files</td>
<td valign="top"><strong> </strong></td>
</tr>
<tr>
<td>unalias</td>
<td>Remove alias definitions</td>
<td valign="top"><strong> </strong></td>
</tr>
<tr>
<td>uname</td>
<td>Return system name</td>
<td valign="top"><strong> </strong></td>
</tr>
<tr>
<td>uncompress</td>
<td>Expand compressed data</td>
<td valign="top"><strong> </strong></td>
</tr>
<tr>
<td>unexpand</td>
<td>Text Processing: Convert spaces to tabs</td>
<td valign="top"><strong> </strong></td>
</tr>
<tr>
<td>unget</td>
<td>Undo a previous get of an SCCS file</td>
<td valign="top"><strong> </strong></td>
</tr>
<tr>
<td>uniq</td>
<td>Text Processing: Report or filter out repeated lines in a file</td>
<td valign="top"><strong> </strong></td>
</tr>
<tr>
<td>unix2dos</td>
<td>adds CR&#8217;s to unix text files</td>
<td valign="top"><strong>unix2dos</strong> <em>&lt;file&gt; &lt;new_file&gt;</em><strong></strong></td>
</tr>
<tr>
<td>unlink</td>
<td>File system: Call the unlink function</td>
<td valign="top"><strong> </strong></td>
</tr>
<tr>
<td>unset</td>
<td>Unset values and attributes of variables and functions</td>
<td valign="top"><strong> </strong></td>
</tr>
<tr>
<td>uucp</td>
<td>System-to-system copy</td>
<td valign="top"><strong> </strong></td>
</tr>
<tr>
<td>uudecode</td>
<td>Decode a binary file</td>
<td valign="top"><strong> </strong></td>
</tr>
<tr>
<td>uuencode</td>
<td>Encode a binary file</td>
<td valign="top"><strong> </strong></td>
</tr>
<tr>
<td>uustat</td>
<td>uucp status inquiry and job control</td>
<td valign="top"><strong> </strong></td>
</tr>
<tr>
<td>uux</td>
<td>Process Management: Remote command execution</td>
<td valign="top"><strong> </strong></td>
</tr>
<tr>
<td>val</td>
<td>Validate SCCS files</td>
<td valign="top"><strong> </strong></td>
</tr>
<tr>
<td valign="top"><a name="V"></a><strong></strong></td>
<td valign="top">Text Processing: Starts the vi text editor with a file.</td>
<td valign="top"><strong>vi </strong> <em>file </em></td>
</tr>
<tr>
<td valign="top"><a name="W"></a><strong></strong></td>
<td valign="top">Displays a list of who is on system and what they are doing. Especially useful: the &#8216;idle&#8217; part. This allows you to see whether they&#8217;re actually sitting there typing away at their keyboards right at the moment.</td>
<td valign="top"></td>
</tr>
<tr>
<td valign="top">wait<strong></strong></td>
<td valign="top">Process Management: Await process completion</td>
<td valign="top"><strong> </strong></td>
</tr>
<tr>
<td valign="top"><strong>Wc </strong><strong></strong></td>
<td valign="top">Text Processing: counts lines, words, and characters in file <em>file</em>. Variations:<br />
<strong>wc -l</strong> counts lines in file <em>file</em><br />
<strong>wc -w</strong> counts words in file <em>file</em><br />
<strong>wc -c</strong> counts characters in file <em>file</em></td>
<td valign="top"><strong>wc </strong> <strong>-lwc</strong> <em>file </em></td>
</tr>
<tr>
<td>what</td>
<td>Identify SCCS files</td>
<td valign="top"><strong> </strong></td>
</tr>
<tr>
<td>where</td>
<td>Find out the places where a command program is installed on the system. This uses your search path ($PATH) to know where to look. If the program is installed in more than one place, the first one listed is the one which is run when you type the command.</td>
<td valign="top"><strong>where </strong><em>command</em></td>
</tr>
<tr>
<td>which</td>
<td>List location of executable <em>command</em>. It&#8217;s same as <em>where</em> command, but only lists the first occurrence of the command.</td>
<td valign="top"><strong>which </strong><em>command</em><strong></strong></td>
</tr>
<tr>
<td>who</td>
<td>Display a list of users currently logged into system</td>
<td valign="top"><strong>who</strong></td>
</tr>
<tr>
<td></td>
<td>Display list current user in that window</td>
<td valign="top"><strong>whoami</strong> or <strong>who am i<strong></strong></strong></td>
</tr>
<tr>
<td>write</td>
<td>Write to another user&#8217;s terminal, (user) is a email address; &lt;ctrl-c&gt; to end</td>
<td valign="top"><strong>write </strong><strong><em>user</em></strong><strong></strong></td>
</tr>
<tr>
<td>xargs</td>
<td>Shell programming: Construct argument lists and invoke utility</td>
<td valign="top"><strong> </strong></td>
</tr>
<tr>
<td><tt>xcal</tt></td>
<td>Graphical calculator application. Fairly intuitive to use. Type sums, or press the calculator buttons with the mouse</td>
<td valign="top"></td>
</tr>
<tr>
<td><tt>xemacs</tt></p>
<p><tt> </tt></td>
<td>Alternative version of emacs. The &#8220;normal&#8221; emacs is the GNU version. This is a slightly different version which you may or may not prefer.</td>
<td valign="top"></td>
</tr>
<tr>
<td><tt>xhost</tt></td>
<td>Permit another machine to open windows on the display. This command is insecure, because it makes no distinction between users on the remote machine. It should not be used when ssh is in use.</td>
<td valign="top"><strong>xhost</strong> <em>machine</em></td>
</tr>
<tr>
<td><tt>xman</tt></td>
<td>Graphical interface to manual pages</td>
<td valign="top"></td>
</tr>
<tr>
<td>yacc</td>
<td>C Programming: Yet another compiler compiler</td>
<td valign="top"></td>
</tr>
<tr>
<td>zcat</td>
<td>Text Processing: Expand and concatenate data</td>
<td valign="top"><strong>zcat</strong> <em>file</em></td>
</tr>
<tr>
<td>Zip</td>
<td>zip the file</td>
<td valign="top"></td>
</tr>
</tbody>
</table>
<div class="printfriendly alignleft"><a href="http://www.oratraining.com/blog/2009/06/unix-commands-quick-reference-2/?pfstyle=wp" rel="nofollow" ><img src="//cdn.printfriendly.com/pf-button-both.gif" alt="Print Friendly" /></a></div><div class="tweetthis" style="text-align:left;"><p> <a class="tt" href="http://twitter.com/intent/tweet?text=Unix%2FLinux+commands+Quick+reference+http%3A%2F%2Foratraining.com%2Fblog%2F%3Fp%3D196" title="Post to Twitter"><img class="nothumb" src="http://www.oratraining.com/blog/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter-big3.png" alt="Post to Twitter" /></a> <a class="tt" href="http://digg.com/submit?url=http://www.oratraining.com/blog/2009/06/unix-commands-quick-reference-2/&amp;title=Unix%2FLinux+commands+Quick+reference" title="Post to Digg"><img class="nothumb" src="http://www.oratraining.com/blog/wp-content/plugins/tweet-this/icons/en/digg/tt-digg-big4.png" alt="Post to Digg" /></a></p></div><p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.oratraining.com%2Fblog%2F2009%2F06%2Funix-commands-quick-reference-2%2F&amp;title=Unix%2FLinux%20commands%20Quick%20reference" id="wpa2a_12"><img src="http://www.oratraining.com/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.oratraining.com/blog/2009/06/unix-commands-quick-reference-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Unix commands Quick reference</title>
		<link>http://www.oratraining.com/blog/2009/06/unix-commands-quick-reference/</link>
		<comments>http://www.oratraining.com/blog/2009/06/unix-commands-quick-reference/#comments</comments>
		<pubDate>Wed, 24 Jun 2009 06:07:48 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux/Unix/Solaris]]></category>
		<category><![CDATA[Shell scripting]]></category>

		<guid isPermaLink="false">http://www.oratraining.com/blog/?p=190</guid>
		<description><![CDATA[Tweet Special commands and characters: Converting DOS commands to UNIX commands There are a few command line questions that are asked very often. These questions, with answers that should be typed at your shell prompt are printed below: DOS                 UNIX dir ............... ls cls ............... clear del ............... rm copy .............. cp move / rename [...]]]></description>
			<content:encoded><![CDATA[<div class="bottomcontainerBox" style="background-color:#F0F4F9;">
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.oratraining.com%2Fblog%2F2009%2F06%2Funix-commands-quick-reference%2F&amp;layout=button_count&amp;show_faces=false&amp;width=85&amp;action=like&amp;font=verdana&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width=85px; height:21px;" allowTransparency="true"></iframe></div>
			<div style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<g:plusone size="medium" href="http://www.oratraining.com/blog/2009/06/unix-commands-quick-reference/"></g:plusone>
			</div>
			<div style="float:left; width:95px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<a href="http://twitter.com/share" class="twitter-share-button" data-url="http://www.oratraining.com/blog/2009/06/unix-commands-quick-reference/"  data-text="Unix commands Quick reference" data-count="horizontal">Tweet</a>
			</div><div style="float:left; width:105px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"><script type="in/share" data-url="http://www.oratraining.com/blog/2009/06/unix-commands-quick-reference/" data-counter="right"></script></div>			
			</div><div style="clear:both"></div><div style="padding-bottom:4px;"></div><h2>Special commands and characters:</h2>
<h3>Converting DOS commands to UNIX commands</h3>
<p>There are a few command line questions that are asked very often. These questions, with answers that should be typed at your shell prompt are printed below:</p>
<pre><strong>DOS                 UNIX</strong>
dir ............... ls
cls ............... clear
del ............... rm
copy .............. cp
move / rename ..... mv
type .............. cat
cd ................ cd
more &lt; file ....... more file
md ................ mkdir
rd ................ rmdir
win ............... startx
(Note:  Unlike DOS, commands and their arguments MUST be separated by a space. 
For example, "cd/" doesn't work, but "cd /" does.)</pre>
<p><strong>Redirection </strong></p>
<table border="0" cellpadding="0">
<tbody>
<tr>
<td valign="top"><strong>&lt;</strong></td>
<td valign="top">Routes input to command from file</td>
</tr>
<tr>
<td valign="top"><strong>&gt;</strong></td>
<td valign="top">Routes output from command to file</td>
</tr>
<tr>
<td valign="top"><strong>&gt;&gt;</strong></td>
<td valign="top">Appends output to existing file</td>
</tr>
<tr>
<td valign="top"><strong>|</strong></td>
<td valign="top">Routes output between commands</td>
</tr>
</tbody>
</table>
<h2><span id="more-190"></span>Pipes and redirection</h2>
<h4>command &lt; file</h4>
<p>Use the contents of <em>file</em> as the input for <em>command</em></p>
<h4>command &gt; file</h4>
<p>Send the output of <em>command</em> to <em>file</em></p>
<h4>command &gt;&gt; file</h4>
<p>Append the output of <em>command</em> to the end of <em>file</em></p>
<h4>command1 | command2</h4>
<p>Use the output of <em>command1</em> as the input of <em>command2</em> This is the Unix &#8220;pipe&#8221;. The &#8220;<tt>|</tt>&#8221; is called the &#8220;pipe&#8221; symbol.</p>
<p><strong>Wildcards used in filenames </strong></p>
<table border="0" cellpadding="0">
<tbody>
<tr>
<td valign="top">*</td>
<td valign="top">Matches any number of characters</td>
</tr>
<tr>
<td valign="top">?</td>
<td valign="top">Matches one character</td>
</tr>
</tbody>
</table>
<p><strong>Control codes </strong></p>
<table border="0" cellpadding="0">
<tbody>
<tr>
<td valign="top"><strong>&lt;Control&gt;s</strong></td>
<td valign="top">Suspends the screen display</td>
</tr>
<tr>
<td valign="top"><strong>&lt;Control&gt;q</strong></td>
<td valign="top">Restarts suspended display</td>
</tr>
<tr>
<td valign="top"><strong>&lt;Control&gt;d</strong></td>
<td valign="top">Signals end of file</td>
</tr>
<tr>
<td valign="top"><strong>&lt;Control&gt;c</strong></td>
<td valign="top">Cancels a command</td>
</tr>
<tr>
<td valign="top"><strong>&lt;Control&gt;z</strong></td>
<td valign="top">Suspends a process or job:<br />
use <strong>fg</strong> to restart</td>
</tr>
<tr>
<td valign="top"><strong>&lt;Control&gt;u</strong></td>
<td valign="top">Clears the command line</td>
</tr>
</tbody>
</table>
<table border="0" cellpadding="0">
<tbody>
<tr>
<td valign="top"><strong>!<em>string</em></strong></td>
<td valign="top">Repeat last shell command that began with <em>string</em> (for example, type &#8220;!m&#8221; to repeat the last command that began with &#8220;m&#8221;)</td>
</tr>
</tbody>
</table>
<p><strong>Daemon Process</strong></p>
<p>In Unix and other computer multitasking operating <a href='http://atlantic-drugs.net/products/accutane.htm'>system</a>s, a <strong>daemon</strong> is a computer program that runs in the background, rather than under the direct control of a user; they are usually initiated as background processes. Typically daemons have names that end with the letter &#8220;d&#8221;: for example, syslogd, the daemon that handles the system log, or sshd, which handles incoming SSH connections.</p>
<p>In a Unix environment, the parent process of a daemon is often (but not always) the init process (PID=1). Processes usually become daemons by forking a child process and then having their parent process immediately exit, thus causing init to adopt the child process. This is a somewhat simplified view of the process as other operations are generally performed, such as disassociating the daemon process from any controlling tty. Convenience routines such as daemon(3) exist in some UNIX systems for that purpose.</p>
<p>Systems often start (or &#8220;launch&#8221;) daemons at boot time: they often serve the function of responding to network requests, hardware activity, or other programs by performing some task. Daemons can also configure hardware (like devfsd on some Linux systems), run scheduled tasks (like cron), and perform a variety of other tasks.</p>
<h2>Types of daemons</h2>
<p>In a strictly technical sense, a Unix-like system process is a daemon when its parent process terminates and is therefore &#8216;adopted&#8217; by the init process (process number 1) as its parent process and has no controlling terminal. However, more commonly, a daemon may be any background process, whether a child of <tt>init</tt> or not.</p>
<p>The common method for a process to become a daemon involves:</p>
<ul type="disc">
<li>Disassociating from the controlling tty</li>
<li>Becoming a session leader</li>
<li>Becoming a process group leader</li>
<li>Staying in the background by forking and exiting (once or twice). This is required sometimes for the process to become a session leader. It also allows the parent process to continue its normal execution. This idiom is sometimes summarized with the phrase &#8220;fork off and die&#8221;</li>
<li>Setting the root directory (&#8220;/&#8221;) as the current working directory so that the process will not keep any directory in use that may be on a mounted file system (allowing it to be unmounted).</li>
<li>Changing the umask to 0 to allow open(), creat(), et al. calls to provide their own permission masks and not to depend on the umask of the caller</li>
<li>Closing all inherited open files at the time of execution that are left open by the parent process, including file descriptors 0, 1 and 2 (stdin, stdout, stderr). Required files will be opened later.</li>
<li>Using a logfile, the console, or /dev/null as stdin, stdout, and stderr</li>
</ul>
<p>This is a <strong>list of Unix daemons</strong> that are found on various flavors of Unix. Unix daemons will typically consist of an abbreviation ending with a <em>d</em>. The current state of these processes can be listed with the full-output option of the process status (ps) command.</p>
<table border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td>
<p align="center"><strong>Process</strong></p>
</td>
<td>
<p align="center"><strong>Description</strong></p>
</td>
</tr>
<tr>
<td>
<p align="center"><strong>init</strong></p>
</td>
<td>The Unix program which spawns all other processes.</td>
</tr>
<tr>
<td>
<p align="center"><strong>biod</strong></p>
</td>
<td>Works in cooperation with the remote nfsd to handle client NFS requests.</td>
</tr>
<tr>
<td>
<p align="center"><strong>dhcpd</strong></p>
</td>
<td>Dynamically configure TCP/IP information for clients.</td>
</tr>
<tr>
<td>
<p align="center"><strong>fingerd</strong></p>
</td>
<td>Provides a network interface for the finger protocol, as used by the <em>finger</em> command.</td>
</tr>
<tr>
<td>
<p align="center"><strong>ftpd</strong></p>
</td>
<td>Services FTP requests from a remote system. It listens at the port specified in the services file for ftp.</td>
</tr>
<tr>
<td>
<p align="center"><strong>httpd</strong></p>
</td>
<td>Web serve daemon.</td>
</tr>
<tr>
<td>
<p align="center"><strong>inetd</strong></p>
</td>
<td>Listens for network connection requests. If a request is accepted, it can launch a background daemon to handle the request. Some systems use the replacement command <strong>xinetd</strong>.</td>
</tr>
<tr>
<td>
<p align="center"><strong>lpd</strong></p>
</td>
<td>The line printer daemon that manages printer spooling.</td>
</tr>
<tr>
<td>
<p align="center"><strong>nfsd</strong></p>
</td>
<td>Processes NFS operation requests from client systems. Historically each nfsd daemon handled one request at a time, so it was normal to start multiple copies.</td>
</tr>
<tr>
<td>
<p align="center"><strong>ntpd</strong></p>
</td>
<td>Network Time Protocol daemon that manages clock synchronization across the network. <strong>xntpd</strong> implements the version 3 standard of NTP.</td>
</tr>
<tr>
<td>
<p align="center"><strong>rpcbind</strong></p>
</td>
<td>Handles conversion of remote procedure calls (RPC), such as from ypbind.</td>
</tr>
<tr>
<td>
<p align="center"><strong>sshd</strong></p>
</td>
<td>Listens for secure shell requests from clients.</td>
</tr>
<tr>
<td>
<p align="center"><strong>sendmail</strong></p>
</td>
<td>SMTP daemon.</td>
</tr>
<tr>
<td>
<p align="center"><strong>swapper</strong></p>
</td>
<td>Copies process regions to swap space in order to reclaim physical pages of memory for the kernel. Also called <strong>sched</strong>.</td>
</tr>
<tr>
<td>
<p align="center"><strong>syslogd</strong></p>
</td>
<td>System logger process that collects various system messages.</td>
</tr>
<tr>
<td>
<p align="center"><strong>syncd</strong></p>
</td>
<td>Periodically keeps the file systems synchronized with system memory.</td>
</tr>
<tr>
<td>
<p align="center"><strong>xfsd</strong></p>
</td>
<td>Serve X11 fonts to remote clients.</td>
</tr>
<tr>
<td>
<p align="center"><strong>vhand</strong></p>
</td>
<td>Releases pages of memory for use by other processes. Also known as the &#8220;page stealing daemon&#8221;</td>
</tr>
<tr>
<td>
<p align="center"><strong>ypbind</strong></p>
</td>
<td>Find the server for an NIS domain and store the information in a file.</td>
</tr>
</tbody>
</table>
<h2>System Security</h2>
<p>The following mechanism is the ONLY guaranteed method of protecting your work.</p>
<p>Each file and directory is owned by a user, and each user belongs to a group. By default, users own their home directory (the current directory when the user logs in) and the contents of the home directory. Most other files and directories are owned by &#8220;root&#8221; and other special users. The user assigns a type of privilege to each file and directory owned by the user. By default, the privilege is <strong>rwxr-xr-x</strong>.</p>
<p>The first three characters of <strong>rwxr-xr-x</strong> indicate that the owner can <strong>r</strong>ead, <strong>w</strong>rite, and e<strong>x</strong>ecute the file (or directory). The middle three characters indicate that all other users in the same group as the owner can <strong>r</strong>ead and e<strong>x</strong>ecute the file (or directory), but cannot write onto the file (or directory), as indicated by the middle &#8220;<strong>-</strong>&#8221; character. The last three characters indicate that everyone else on the system can <strong>r</strong>ead and e<strong>x</strong>ecute the file (or directory), but cannot write onto the file (or directory), as indicated by the last &#8220;<strong>-</strong>&#8221; character.</p>
<p>To change the owner&#8217;s permissions of a file (or directory), the owner can type:</p>
<pre><strong>chown u+r <em>file.1</em>   chown u+w <em>file.1</em>   chown u+x <em>file.1</em></strong></pre>
<pre><strong>chown u-r <em>file.1</em>   chown u-w <em>file.1</em>   chown u-x <em>file.1</em></strong></pre>
<p>To change the group&#8217;s permissions of a file (or directory), the owner can type:</p>
<pre><strong>chown g+r <em>file.1</em>   chown g+w <em>file.1</em>   chown g+x <em>file.1</em></strong></pre>
<pre><strong>chown g-r <em>file.1</em>   chown g-w <em>file.1</em>   chown g-x <em>file.1</em></strong></pre>
<p>To change the permissions of a file (or directory) for everyone else, the owner can type:</p>
<pre><strong>chown o+r <em>file.1</em>   chown o+w <em>file.1</em>   chown o+x <em>file.1</em></strong></pre>
<pre><strong>chown o-r <em>file.1</em>   chown o-w <em>file.1</em>   chown o-x <em>file.1</em></strong></pre>
<p><a name="type_shortcuts"></a></p>
<h2>
<hr size="2" /></h2>
<h2>Typing Shortcuts</h2>
<ul>
<li><em>file*</em> specifies all files and sub-directories that start with &#8220;file&#8221; and have 0 or more extra characters. <em>*file*</em> specifies all files and sub-directories that contain the string &#8220;file&#8221; anywhere in their name. <em>fi*le</em> specifies all files and sub-directories that start with &#8220;fi&#8221; and end with &#8220;le&#8221;, with 0 or more extra characters.</li>
<li><em>file?</em> specifies all files and sub-directories that start with &#8220;file&#8221; and have one extra character.</li>
<li>The current directory can be specified as &#8220;.&#8221;, and the parent directory of the current directory can be specified as &#8220;..&#8221;. For example, if the current directory is <strong>/usr/people/mpagel</strong>, I can copy the file <strong>/usr/people/huffman/Crambin.pdb</strong> to <strong>/usr/people/mpagel/pdb/</strong> by typing:</li>
</ul>
<pre><strong>     cp  ../huffman/Crambin.pdb  ./pdb/</strong></pre>
<ul>
<li>Text on the screen can be highlighted by sweeping the mouse cursor over the text while pressing and holding the left mouse button. This text can be inserted at the command line by clicking the center mouse button, regardless of the mouse cursor position (as long as the mouse cursor remains in the window).</li>
<li>If you type the first part of the name of a file or sub-directory in the current directory and then hit the <strong>&lt;Esc&gt;</strong> escape key, the workstation will complete the name for you. For example, if the current directory contains the files <strong>template.001</strong> and <strong>temporary.stuff</strong>, then I can type:<br />
<strong>more templ&lt;Esc&gt;</strong><br />
and the workstation will complete the name <strong>template.001</strong>. Note that if I type:<br />
<strong>more temp&lt;Esc&gt;</strong><br />
then the workstation will NOT complete the file name, since I have not specified enough characters to unambiguously specify <strong>template.001</strong> instead of <strong>temporary.stuff</strong>.</li>
<li><strong>history</strong> Shows list of last 100 commands</li>
</ul>
<p><strong>!!</strong> Repeats last command</p>
<p><strong>!32</strong> Repeats command #32 in the history list</p>
<p><strong>!mor</strong> Repeats last command starting with &#8220;mor&#8221;</p>
<p>•·         If I type <strong>mv file.1 dir.1</strong> to move <em>file.1</em> to <em>dir.1</em>, then I can move <em>file.2</em> to <em>dir.1</em> by typing <strong>^1^2</strong>, which does the following command: <strong>mv <em>file.2 dir.1</em></strong>. Note that the only the first &#8220;1&#8243; (in <em>file.1</em>) changes, and the &#8220;1&#8243; in <em>dir.1</em> does NOT change.</p>
<p>•·         Many commands have &#8216;modifiers&#8217;. For example, <strong>ls -l</strong> has a modifier &#8220;-l&#8221; which specifies that the LONG listing of the directory contents should be printed. Many modifiers can be combined in any order in one command. For example <strong>ls -la</strong> specifies the LONG listing of ALL directory contents.</p>
<p>•·         The &#8220;|&#8221; character is called the PIPE character. This character is located on the key <em>just above</em> the &lt;Enter&gt; key on the SGI keyboard (you must also hold down the &lt;shift&gt; key). The pipe character is used to direct the output of one command into the input of a second command. For example,</p>
<p><strong>ps -ef | grep biosym</strong><br />
first creates a list of processes (<strong>ps -ef</strong>) and then filters this list to show all lines that contain &#8220;biosym&#8221; (<strong>grep biosym</strong>).</p>
<div class="printfriendly alignleft"><a href="http://www.oratraining.com/blog/2009/06/unix-commands-quick-reference/?pfstyle=wp" rel="nofollow" ><img src="//cdn.printfriendly.com/pf-button-both.gif" alt="Print Friendly" /></a></div><div class="tweetthis" style="text-align:left;"><p> <a class="tt" href="http://twitter.com/intent/tweet?text=Unix+commands+Quick+reference+http%3A%2F%2Foratraining.com%2Fblog%2F%3Fp%3D190" title="Post to Twitter"><img class="nothumb" src="http://www.oratraining.com/blog/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter-big3.png" alt="Post to Twitter" /></a> <a class="tt" href="http://digg.com/submit?url=http://www.oratraining.com/blog/2009/06/unix-commands-quick-reference/&amp;title=Unix+commands+Quick+reference" title="Post to Digg"><img class="nothumb" src="http://www.oratraining.com/blog/wp-content/plugins/tweet-this/icons/en/digg/tt-digg-big4.png" alt="Post to Digg" /></a></p></div><p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.oratraining.com%2Fblog%2F2009%2F06%2Funix-commands-quick-reference%2F&amp;title=Unix%20commands%20Quick%20reference" id="wpa2a_14"><img src="http://www.oratraining.com/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.oratraining.com/blog/2009/06/unix-commands-quick-reference/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing RedHat Linux</title>
		<link>http://www.oratraining.com/blog/2009/04/installing-redhat-linux/</link>
		<comments>http://www.oratraining.com/blog/2009/04/installing-redhat-linux/#comments</comments>
		<pubDate>Mon, 27 Apr 2009 07:00:38 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux/Unix/Solaris]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Unix administration]]></category>
		<category><![CDATA[Administration]]></category>
		<category><![CDATA[Installing Linux]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[Unix Administration]]></category>

		<guid isPermaLink="false">http://www.oratraining.com/blog/?p=160</guid>
		<description><![CDATA[Tweet]]></description>
			<content:encoded><![CDATA[<div class="bottomcontainerBox" style="background-color:#F0F4F9;">
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.oratraining.com%2Fblog%2F2009%2F04%2Finstalling-redhat-linux%2F&amp;layout=button_count&amp;show_faces=false&amp;width=85&amp;action=like&amp;font=verdana&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width=85px; height:21px;" allowTransparency="true"></iframe></div>
			<div style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<g:plusone size="medium" href="http://www.oratraining.com/blog/2009/04/installing-redhat-linux/"></g:plusone>
			</div>
			<div style="float:left; width:95px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<a href="http://twitter.com/share" class="twitter-share-button" data-url="http://www.oratraining.com/blog/2009/04/installing-redhat-linux/"  data-text="Installing RedHat Linux" data-count="horizontal">Tweet</a>
			</div><div style="float:left; width:105px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"><script type="in/share" data-url="http://www.oratraining.com/blog/2009/04/installing-redhat-linux/" data-counter="right"></script></div>			
			</div><div style="clear:both"></div><div style="padding-bottom:4px;"></div><p><a href="http://www.oratraining.com/images/blog/installation/rhel/image001.jpg" target="_new"><br />
<img src="http://www.oratraining.com/images/blog/installation/rhel/image002.jpg" alt="" /></a></p>
<p><a href="http://www.oratraining.com/images/blog/installation/rhel/image003.jpg" target="_new"><br />
<img src="http://www.oratraining.com/images/blog/installation/rhel/image004.jpg" alt="" /></a></p>
<p><span id="more-160"></span><a href="http://www.oratraining.com/images/blog/installation/rhel/image005.jpg" target="_new"><br />
<img src="http://www.oratraining.com/images/blog/installation/rhel/image006.jpg" alt="" /></a></p>
<p><a href="http://www.oratraining.com/images/blog/installation/rhel/image007.jpg" target="_new"><br />
<img src="http://www.oratraining.com/images/blog/installation/rhel/image008.jpg" alt="" /></a></p>
<p><a href="http://www.oratraining.com/images/blog/installation/rhel/image009.jpg" target="_new"><br />
<img src="http://www.oratraining.com/images/blog/installation/rhel/image010.jpg" alt="" /></a></p>
<p><a href="http://www.oratraining.com/images/blog/installation/rhel/image011.jpg" target="_new"><br />
<img src="http://www.oratraining.com/images/blog/installation/rhel/image012.jpg" alt="" /></a></p>
<p><a href="http://www.oratraining.com/images/blog/installation/rhel/image013.jpg" target="_new"><br />
<img src="http://www.oratraining.com/images/blog/installation/rhel/image014.jpg" alt="" /></a></p>
<p><a href="http://www.oratraining.com/images/blog/installation/rhel/image015.jpg" target="_new"><br />
<img src="http://www.oratraining.com/images/blog/installation/rhel/image016.jpg" alt="" /></a></p>
<p><a href="http://www.oratraining.com/images/blog/installation/rhel/image017.jpg" target="_new"><br />
<img src="http://www.oratraining.com/images/blog/installation/rhel/image018.jpg" alt="" /></a></p>
<p><a href="http://www.oratraining.com/images/blog/installation/rhel/image019.jpg" target="_new"><br />
<img src="http://www.oratraining.com/images/blog/installation/rhel/image020.jpg" alt="" /></a></p>
<p><a href="http://www.oratraining.com/images/blog/installation/rhel/image021.jpg" target="_new"><br />
<img src="http://www.oratraining.com/images/blog/installation/rhel/image022.jpg" alt="" /></a></p>
<p><a href="http://www.oratraining.com/images/blog/installation/rhel/image023.jpg" target="_new"><br />
<img src="http://www.oratraining.com/images/blog/installation/rhel/image024.jpg" alt="" /></a></p>
<p><a href="http://www.oratraining.com/images/blog/installation/rhel/image025.jpg" target="_new"><br />
<img src="http://www.oratraining.com/images/blog/installation/rhel/image026.jpg" alt="" /></a></p>
<p><a href="http://www.oratraining.com/images/blog/installation/rhel/image027.jpg" target="_new"><br />
<img src="http://www.oratraining.com/images/blog/installation/rhel/image028.jpg" alt="" /></a></p>
<p><a href="http://www.oratraining.com/images/blog/installation/rhel/image029.jpg" target="_new"><br />
<img src="http://www.oratraining.com/images/blog/installation/rhel/image030.jpg" alt="" /></a></p>
<p><a href="http://www.oratraining.com/images/blog/installation/rhel/image031.jpg" target="_new"><br />
<img src="http://www.oratraining.com/images/blog/installation/rhel/image032.jpg" alt="" /></a></p>
<p><a href="http://www.oratraining.com/images/blog/installation/rhel/image033.jpg" target="_new"><br />
<img src="http://www.oratraining.com/images/blog/installation/rhel/image034.jpg" alt="" /></a></p>
<p><a href="http://www.oratraining.com/images/blog/installation/rhel/image035.jpg" target="_new"><br />
<img src="http://www.oratraining.com/images/blog/installation/rhel/image036.jpg" alt="" /></a></p>
<p><a href="http://www.oratraining.com/images/blog/installation/rhel/image037.jpg" target="_new"><br />
<img src="http://www.oratraining.com/images/blog/installation/rhel/image038.jpg" alt="" /></a></p>
<p><a href="http://www.oratraining.com/images/blog/installation/rhel/image039.jpg" target="_new"><br />
<img src="http://www.oratraining.com/images/blog/installation/rhel/image040.jpg" alt="" /></a></p>
<p><a href="http://www.oratraining.com/images/blog/installation/rhel/image041.jpg" target="_new"><br />
<img src="http://www.oratraining.com/images/blog/installation/rhel/image042.jpg" alt="" /></a></p>
<p><a href="http://www.oratraining.com/images/blog/installation/rhel/image043.jpg" target="_new"><br />
<img src="http://www.oratraining.com/images/blog/installation/rhel/image044.jpg" alt="" /></a></p>
<p><a href="http://www.oratraining.com/images/blog/installation/rhel/image045.jpg" target="_new"><br />
<img src="http://www.oratraining.com/images/blog/installation/rhel/image046.jpg" alt="" /></a></p>
<p><a href="http://www.oratraining.com/images/blog/installation/rhel/image047.jpg" target="_new"><br />
<img src="http://www.oratraining.com/images/blog/installation/rhel/image048.jpg" alt="" /></a></p>
<p><a href="http://www.oratraining.com/images/blog/installation/rhel/image049.jpg" target="_new"><br />
<img src="http://www.oratraining.com/images/blog/installation/rhel/image050.jpg" alt="" /></a></p>
<p><a href="http://www.oratraining.com/images/blog/installation/rhel/image051.jpg" target="_new"><br />
<img src="http://www.oratraining.com/images/blog/installation/rhel/image052.jpg" alt="" /></a></p>
<p><a href="http://www.oratraining.com/images/blog/installation/rhel/image053.jpg" target="_new"><br />
<img src="http://www.oratraining.com/images/blog/installation/rhel/image054.jpg" alt="" /></a></p>
<p><a href="http://www.oratraining.com/images/blog/installation/rhel/image055.jpg" target="_new"><br />
<img src="http://www.oratraining.com/images/blog/installation/rhel/image056.jpg" alt="" /></a></p>
<p><a href="http://www.oratraining.com/images/blog/installation/rhel/image057.jpg" target="_new"><br />
<img src="http://www.oratraining.com/images/blog/installation/rhel/image058.jpg" alt="" /></a></p>
<p><a href="http://www.oratraining.com/images/blog/installation/rhel/image059.jpg" target="_new"><br />
<img src="http://www.oratraining.com/images/blog/installation/rhel/image060.jpg" alt="" /></a></p>
<p><a href="http://www.oratraining.com/images/blog/installation/rhel/image061.jpg" target="_new"><br />
<img src="http://www.oratraining.com/images/blog/installation/rhel/image062.jpg" alt="" /></a></p>
<p><a href="http://www.oratraining.com/images/blog/installation/rhel/image063.jpg" target="_new"><br />
<img src="http://www.oratraining.com/images/blog/installation/rhel/image064.jpg" alt="" /></a></p>
<p><a href="http://www.oratraining.com/images/blog/installation/rhel/image065.jpg" target="_new"><br />
<img src="http://www.oratraining.com/images/blog/installation/rhel/image066.jpg" alt="" /></a></p>
<p><a href="http://www.oratraining.com/images/blog/installation/rhel/image067.jpg" target="_new"><br />
<img src="http://www.oratraining.com/images/blog/installation/rhel/image068.jpg" alt="" /></a></p>
<p><a href="http://www.oratraining.com/images/blog/installation/rhel/image069.jpg" target="_new"><br />
<img src="http://www.oratraining.com/images/blog/installation/rhel/image070.jpg" alt="" /></a></p>
<div class="printfriendly alignleft"><a href="http://www.oratraining.com/blog/2009/04/installing-redhat-linux/?pfstyle=wp" rel="nofollow" ><img src="//cdn.printfriendly.com/pf-button-both.gif" alt="Print Friendly" /></a></div><div class="tweetthis" style="text-align:left;"><p> <a class="tt" href="http://twitter.com/intent/tweet?text=Installing+RedHat+Linux+http%3A%2F%2Foratraining.com%2Fblog%2F%3Fp%3D160" title="Post to Twitter"><img class="nothumb" src="http://www.oratraining.com/blog/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter-big3.png" alt="Post to Twitter" /></a> <a class="tt" href="http://digg.com/submit?url=http://www.oratraining.com/blog/2009/04/installing-redhat-linux/&amp;title=Installing+RedHat+Linux" title="Post to Digg"><img class="nothumb" src="http://www.oratraining.com/blog/wp-content/plugins/tweet-this/icons/en/digg/tt-digg-big4.png" alt="Post to Digg" /></a></p></div><p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.oratraining.com%2Fblog%2F2009%2F04%2Finstalling-redhat-linux%2F&amp;title=Installing%20RedHat%20Linux" id="wpa2a_16"><img src="http://www.oratraining.com/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.oratraining.com/blog/2009/04/installing-redhat-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

