<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-1865163405195897930</id><updated>2024-08-29T22:32:29.449-07:00</updated><category term="linux"/><category term="RHCE"/><category term="RHEL"/><category term="Red Hat"/><category term="ubuntu"/><category term="MYSQL"/><category term="certification"/><category term="database"/><category term="MSSQL"/><category term="YUM"/><category term="configuration file"/><category term="password"/><category term="port numbers"/><category term="quota"/><category term="system adminstration"/><category term="webmin"/><title type='text'>RED HAT ENTERPRISE LINUX</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://rhel5certs.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1865163405195897930/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://rhel5certs.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/1865163405195897930/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>28</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1865163405195897930.post-7945592178876340432</id><published>2012-01-07T22:06:00.000-08:00</published><updated>2012-01-07T22:08:38.051-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="Red Hat"/><category scheme="http://www.blogger.com/atom/ns#" term="RHCE"/><category scheme="http://www.blogger.com/atom/ns#" term="RHEL"/><title type='text'>Checking Free Space</title><content type='html'>&lt;div style=&quot;mso-element:para-border-div;border:solid windowtext 1.0pt; mso-border-alt:solid windowtext .5pt;padding:1.0pt 4.0pt 1.0pt 4.0pt&quot;&gt;  &lt;p class=&quot;MsoNormal&quot; align=&quot;center&quot; style=&quot;text-align:center;border:none; mso-border-alt:solid windowtext .5pt;padding:0in;mso-padding-alt:1.0pt 4.0pt 1.0pt 4.0pt&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family: &amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;;color:navy&quot;&gt;Checking Free Space:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;/div&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;In order to check the free and usage space per file system and directory and each sub directory we have two command&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;ol style=&quot;margin-top:0in&quot; start=&quot;1&quot; type=&quot;1&quot;&gt;  &lt;ol style=&quot;margin-top:0in&quot; start=&quot;1&quot; type=&quot;a&quot;&gt;   &lt;li class=&quot;MsoNormal&quot; style=&quot;text-align:justify;mso-list:l0 level2 lfo1;       tab-stops:list 1.0in&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;df&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;   &lt;li class=&quot;MsoNormal&quot; style=&quot;text-align:justify;mso-list:l0 level2 lfo1;       tab-stops:list 1.0in&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;du&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;  &lt;/ol&gt; &lt;/ol&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;the ‘df’ command reports on a per file system basis. It report total disk space , disk space used , disk space free&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;#df –h&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;-h &lt;span style=&quot;mso-tab-count:1&quot;&gt;        &lt;/span&gt;: used multipliers such as G or M for gigabytes and Megabytes&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;The ‘du’ command reports the number of kilobytes contained by the items within a directory &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;#du –s&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;#du –h&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;-s &lt;span style=&quot;mso-tab-count:1&quot;&gt;        &lt;/span&gt;:&lt;span style=&quot;mso-tab-count:1&quot;&gt;           &lt;/span&gt;used to request only the summary directory information&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;#du –s /etc&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://rhel5certs.blogspot.com/feeds/7945592178876340432/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rhel5certs.blogspot.com/2012/01/checking-free-space.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1865163405195897930/posts/default/7945592178876340432'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1865163405195897930/posts/default/7945592178876340432'/><link rel='alternate' type='text/html' href='http://rhel5certs.blogspot.com/2012/01/checking-free-space.html' title='Checking Free Space'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1865163405195897930.post-4189815607631411473</id><published>2012-01-07T22:01:00.000-08:00</published><updated>2012-01-07T22:02:21.794-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="Red Hat"/><category scheme="http://www.blogger.com/atom/ns#" term="RHCE"/><category scheme="http://www.blogger.com/atom/ns#" term="RHEL"/><title type='text'>Symbolic links</title><content type='html'>&lt;div style=&quot;mso-element:para-border-div;border:solid windowtext 1.0pt; mso-border-alt:solid windowtext .5pt;padding:1.0pt 4.0pt 1.0pt 4.0pt&quot;&gt;  &lt;p class=&quot;MsoNormal&quot; align=&quot;center&quot; style=&quot;text-align:center;border:none; mso-border-alt:solid windowtext .5pt;padding:0in;mso-padding-alt:1.0pt 4.0pt 1.0pt 4.0pt&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family: &amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;;color:navy&quot;&gt;Symbolic links:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;/div&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;A symbolic link point to another file. We can display the link name and the referenced file by ‘ls –l’&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;#ls –l pf&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;lrwxrwxrwx 1 root root&lt;span style=&quot;mso-tab-count:1&quot;&gt;        &lt;/span&gt;pf-&amp;gt;/etc/passwd&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;file type:&lt;span style=&quot;mso-tab-count:1&quot;&gt;          &lt;/span&gt;l for symbolic link&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;the content of the symbolic link is the name of the file that is referenced&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;Syntax:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;&lt;span style=&quot;mso-tab-count:1&quot;&gt;            &lt;/span&gt;Ln –s filename [linkname]&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;Example:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;&lt;span style=&quot;mso-tab-count:1&quot;&gt;            &lt;/span&gt;Ln –s /etc/passwd password&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;There are seven fundamental file type&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;-&lt;span style=&quot;mso-tab-count:1&quot;&gt;           &lt;/span&gt;:&lt;span style=&quot;mso-tab-count:1&quot;&gt;           &lt;/span&gt;regular file&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;d&lt;span style=&quot;mso-tab-count:1&quot;&gt;          &lt;/span&gt;:&lt;span style=&quot;mso-tab-count:1&quot;&gt;           &lt;/span&gt;symbolic link&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;b&lt;span style=&quot;mso-tab-count:1&quot;&gt;          &lt;/span&gt;:&lt;span style=&quot;mso-tab-count:1&quot;&gt;           &lt;/span&gt;block special file&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;c&lt;span style=&quot;mso-tab-count:1&quot;&gt;          &lt;/span&gt;:&lt;span style=&quot;mso-tab-count:1&quot;&gt;           &lt;/span&gt;character special file&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;p&lt;span style=&quot;mso-tab-count:1&quot;&gt;          &lt;/span&gt;:&lt;span style=&quot;mso-tab-count:1&quot;&gt;           &lt;/span&gt;named file&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;s&lt;span style=&quot;mso-tab-count:1&quot;&gt;           &lt;/span&gt;:&lt;span style=&quot;mso-tab-count:1&quot;&gt;           &lt;/span&gt;socket&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;character special file are used to communicate with hardware one character at a time. Block special file is used to communicate with hardware a block of data at a time : 512 bytes, 1024 bytes, 2048 bytes&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;ls –l /dev |less&lt;span style=&quot;mso-spacerun:yes&quot;&gt;  &lt;/span&gt;{ to check c and b files}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;named pipe type of file that passes data between processes. It stores no data itself socket file are used for inter process communication.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://rhel5certs.blogspot.com/feeds/4189815607631411473/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rhel5certs.blogspot.com/2012/01/symbolic-links.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1865163405195897930/posts/default/4189815607631411473'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1865163405195897930/posts/default/4189815607631411473'/><link rel='alternate' type='text/html' href='http://rhel5certs.blogspot.com/2012/01/symbolic-links.html' title='Symbolic links'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1865163405195897930.post-1539593813084384813</id><published>2012-01-07T22:00:00.001-08:00</published><updated>2012-01-07T22:00:38.035-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="Red Hat"/><category scheme="http://www.blogger.com/atom/ns#" term="RHCE"/><category scheme="http://www.blogger.com/atom/ns#" term="RHEL"/><title type='text'>Redirecting Input /Output</title><content type='html'>&lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;div style=&quot;mso-element:para-border-div;border:solid windowtext 1.0pt; mso-border-alt:solid windowtext .5pt;padding:1.0pt 4.0pt 1.0pt 4.0pt&quot;&gt;  &lt;p class=&quot;MsoNormal&quot; align=&quot;center&quot; style=&quot;text-align:center;tab-stops:165.75pt; border:none;mso-border-alt:solid windowtext .5pt;padding:0in;mso-padding-alt: 1.0pt 4.0pt 1.0pt 4.0pt&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;;color:navy&quot;&gt;Redirecting Input /Output&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;/div&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;The standard Output of command , which normally display on the terminal can be redirected into a file. Similarly standard error, which normally display on the terminal can be redirected into a file.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;Common redirection operator&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;&amp;gt;&lt;span style=&quot;mso-tab-count:1&quot;&gt;          &lt;/span&gt;:&lt;span style=&quot;mso-tab-count:1&quot;&gt;           &lt;/span&gt;command&amp;gt;file&lt;span style=&quot;mso-tab-count:2&quot;&gt;                        &lt;/span&gt;:&lt;span style=&quot;mso-tab-count: 1&quot;&gt;           &lt;/span&gt;output command to file&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;&amp;gt;&amp;gt;&lt;span style=&quot;mso-tab-count:1&quot;&gt;        &lt;/span&gt;:&lt;span style=&quot;mso-tab-count:1&quot;&gt;           &lt;/span&gt;command&amp;gt;&amp;gt;file&lt;span style=&quot;mso-tab-count:1&quot;&gt;          &lt;/span&gt;:&lt;span style=&quot;mso-tab-count:1&quot;&gt;           &lt;/span&gt;Append output of command to file&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;&amp;lt;&lt;span style=&quot;mso-tab-count:1&quot;&gt;          &lt;/span&gt;:&lt;span style=&quot;mso-tab-count:1&quot;&gt;           &lt;/span&gt;command&amp;gt;file&lt;span style=&quot;mso-tab-count:2&quot;&gt;                        &lt;/span&gt;:&lt;span style=&quot;mso-tab-count: 1&quot;&gt;           &lt;/span&gt;receive input from file&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;2&amp;gt;&lt;span style=&quot;mso-tab-count:1&quot;&gt;        &lt;/span&gt;:&lt;span style=&quot;mso-tab-count:1&quot;&gt;           &lt;/span&gt;command2&amp;gt;file&lt;span style=&quot;mso-tab-count:1&quot;&gt;          &lt;/span&gt;:&lt;span style=&quot;mso-tab-count:1&quot;&gt;           &lt;/span&gt;error from command to file&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;2&amp;gt;&amp;gt;&lt;span style=&quot;mso-tab-count:1&quot;&gt;      &lt;/span&gt;:&lt;span style=&quot;mso-tab-count:1&quot;&gt;           &lt;/span&gt;command2&amp;gt;&amp;gt;file&lt;span style=&quot;mso-tab-count:1&quot;&gt;        &lt;/span&gt;:&lt;span style=&quot;mso-tab-count:1&quot;&gt;           &lt;/span&gt;append &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;Example:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;#find /etc –name passwd&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;this command will search for all file name passwd in /etc and its subdirectories&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;now we can redirtect the standard outpout&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;#find /etc –name passwd &amp;gt; output&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;output is a file where command output will be stored. Standard error is still displayed on the screen&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;#cat output&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;If the target file of the file redirection with &amp;gt; already exists, the existing file will be overwritten. To append data to an existing file use &amp;gt;&amp;gt; to redirect instead of &amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;#find /etc –name passwd &amp;gt;&amp;gt; output&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;Redirecting standard Error&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;We can redirect standard error with 2&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;#find /etc –name passwd 2&amp;gt;errorfile&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;standard output is displayed on the screen , redirect further standard error, appending to the same file with 2&amp;gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;#find /etc/ -name passwd 2&amp;gt;&amp;gt;errorfile&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;#cat errorfile&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://rhel5certs.blogspot.com/feeds/1539593813084384813/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rhel5certs.blogspot.com/2012/01/redirecting-input-output.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1865163405195897930/posts/default/1539593813084384813'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1865163405195897930/posts/default/1539593813084384813'/><link rel='alternate' type='text/html' href='http://rhel5certs.blogspot.com/2012/01/redirecting-input-output.html' title='Redirecting Input /Output'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1865163405195897930.post-4859067910897081814</id><published>2012-01-07T21:44:00.000-08:00</published><updated>2012-01-07T21:45:24.123-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="Red Hat"/><category scheme="http://www.blogger.com/atom/ns#" term="RHCE"/><category scheme="http://www.blogger.com/atom/ns#" term="RHEL"/><title type='text'>User and Group Administrator</title><content type='html'>&lt;div style=&quot;mso-element:para-border-div;border:solid windowtext 1.0pt; mso-border-alt:solid windowtext .5pt;padding:1.0pt 4.0pt 1.0pt 4.0pt; margin-left:.25in;margin-right:0in&quot;&gt;  &lt;p class=&quot;MsoNormal&quot; align=&quot;center&quot; style=&quot;text-align:center;border:none; mso-border-alt:solid windowtext .5pt;padding:0in;mso-padding-alt:1.0pt 4.0pt 1.0pt 4.0pt&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family: &amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;;color:navy&quot;&gt;User and Group Administrator&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;/div&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left:.25in;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left:.25in;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;There are three type of user account in Red hat Linux&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;ol style=&quot;margin-top:0in&quot; start=&quot;1&quot; type=&quot;a&quot;&gt;  &lt;ol style=&quot;margin-top:0in&quot; start=&quot;1&quot; type=&quot;1&quot;&gt;   &lt;li class=&quot;MsoNormal&quot; style=&quot;text-align:justify;mso-list:l0 level2 lfo1;       tab-stops:list 1.0in&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;Super       user or Administrative account&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;   &lt;li class=&quot;MsoNormal&quot; style=&quot;text-align:justify;mso-list:l0 level2 lfo1;       tab-stops:list 1.0in&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;Regular       user account&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;   &lt;li class=&quot;MsoNormal&quot; style=&quot;text-align:justify;mso-list:l0 level2 lfo1;       tab-stops:list 1.0in&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;service       account&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;  &lt;/ol&gt; &lt;/ol&gt;  &lt;ol style=&quot;margin-top:0in&quot; start=&quot;1&quot; type=&quot;1&quot;&gt;  &lt;li class=&quot;MsoNormal&quot; style=&quot;text-align:justify;mso-list:l4 level1 lfo2;      tab-stops:list .5in&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;Super      User created automatically at the time of installation&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;  &lt;li class=&quot;MsoNormal&quot; style=&quot;text-align:justify;mso-list:l4 level1 lfo2;      tab-stops:list .5in&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;Regular      user Account;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt; &lt;/ol&gt;  &lt;ol style=&quot;margin-top:0in&quot; start=&quot;1&quot; type=&quot;a&quot;&gt;  &lt;li class=&quot;MsoNormal&quot; style=&quot;text-align:justify;mso-list:l1 level1 lfo3;      tab-stops:list .5in&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;Using      command line method ‘useradd’ or ‘adduser’ command&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;  &lt;li class=&quot;MsoNormal&quot; style=&quot;text-align:justify;mso-list:l1 level1 lfo3;      tab-stops:list .5in&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;Graphical      method by using Red hat user manager utility&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt; &lt;/ol&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left:.25in;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;a. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left:.25in;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;# adduser user_name (Recommended : minimum 6 character used&lt;span style=&quot;mso-spacerun:yes&quot;&gt;  &lt;/span&gt;in password)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left:.25in;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;# passwd user_name&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left:.25in;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left:.25in;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Book Antiqua&#39;, serif; font-size: 15px; &quot;&gt;Example:&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;#adduser rakesh&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;#passwd rakesh&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;&lt;span style=&quot;mso-spacerun:yes&quot;&gt; &lt;/span&gt;Now open the file /etc/passwd to check the entry of user&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;#vi /etc/passwd&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;it contain 7 entry of each user&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;ol style=&quot;margin-top:0in&quot; start=&quot;1&quot; type=&quot;1&quot;&gt;  &lt;li class=&quot;MsoNormal&quot; style=&quot;text-align:justify;mso-list:l3 level1 lfo4;      tab-stops:list .5in&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;Username&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;  &lt;li class=&quot;MsoNormal&quot; style=&quot;text-align:justify;mso-list:l3 level1 lfo4;      tab-stops:list .5in&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;Password&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;  &lt;li class=&quot;MsoNormal&quot; style=&quot;text-align:justify;mso-list:l3 level1 lfo4;      tab-stops:list .5in&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;userid&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;  &lt;li class=&quot;MsoNormal&quot; style=&quot;text-align:justify;mso-list:l3 level1 lfo4;      tab-stops:list .5in&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;groupid&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;  &lt;li class=&quot;MsoNormal&quot; style=&quot;text-align:justify;mso-list:l3 level1 lfo4;      tab-stops:list .5in&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;blank      (User information field ) comment&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;  &lt;li class=&quot;MsoNormal&quot; style=&quot;text-align:justify;mso-list:l3 level1 lfo4;      tab-stops:list .5in&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;home      directory&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;  &lt;li class=&quot;MsoNormal&quot; style=&quot;text-align:justify;mso-list:l3 level1 lfo4;      tab-stops:list .5in&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;login      shell&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt; &lt;/ol&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;password entry for each user will be stored in /etc/shadow&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;# vi /etc/shadow&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;now in order to check the Userid, Group we use /etc/login.def&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;# vi /etc/login.def&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;when any user account is created then user will get userid, groupid automatically from /etc/login.def&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;5&lt;sup&gt;th&lt;/sup&gt; field is used for user information or comment&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;6&lt;sup&gt;th&lt;/sup&gt; field is used for home directory. When any user is created its default home directory is created inside /home&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;/home/rakesh&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;7&lt;sup&gt;th&lt;/sup&gt; field is login shell. Default shell for user is /bin/bash&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;different shells are used&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;&lt;span style=&quot;mso-tab-count:1&quot;&gt;            &lt;/span&gt;ksh, sh, csh, tcsh,zsh&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;shell is an user interface between user and O.S. linux command shell is a prompt that allow us to interact with our system by executing various command.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;In order to check the shell available use /etc/shells&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;# vi /etc/shells&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;in order to get the information about the group we need /etc/group&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;#vi /etc/group&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;it contain four field&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;ol style=&quot;margin-top:0in&quot; start=&quot;1&quot; type=&quot;1&quot;&gt;  &lt;li class=&quot;MsoNormal&quot; style=&quot;text-align:justify;mso-list:l2 level1 lfo5;      tab-stops:list .5in&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;Group      name&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;  &lt;li class=&quot;MsoNormal&quot; style=&quot;text-align:justify;mso-list:l2 level1 lfo5;      tab-stops:list .5in&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;password&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;  &lt;li class=&quot;MsoNormal&quot; style=&quot;text-align:justify;mso-list:l2 level1 lfo5;      tab-stops:list .5in&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;GroupId&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;  &lt;li class=&quot;MsoNormal&quot; style=&quot;text-align:justify;mso-list:l2 level1 lfo5;      tab-stops:list .5in&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;Member      of group&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt; &lt;/ol&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;# finger&lt;span style=&quot;mso-tab-count:1&quot;&gt;           &lt;/span&gt;:&lt;span style=&quot;mso-tab-count:1&quot;&gt;           &lt;/span&gt;this command is used to get the information about the user&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;Syntax:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;&lt;span style=&quot;mso-tab-count:1&quot;&gt;            &lt;/span&gt;#finger username&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;&lt;span style=&quot;mso-tab-count:1&quot;&gt;            &lt;/span&gt;#finger rakesh&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;#id&lt;span style=&quot;mso-tab-count:1&quot;&gt;       &lt;/span&gt;:&lt;span style=&quot;mso-tab-count:1&quot;&gt;           &lt;/span&gt;this command is used to get userid, groupid of the user&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;syntax:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;&lt;span style=&quot;mso-tab-count:1&quot;&gt;            &lt;/span&gt;#id username&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;&lt;span style=&quot;mso-tab-count:1&quot;&gt;            &lt;/span&gt;#id rakesh&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;; color:#FF6600&quot;&gt;Creating Group:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;Syntax:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify;text-indent:.5in&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;#groupadd groupname&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;&lt;span style=&quot;mso-tab-count:1&quot;&gt;            &lt;/span&gt;#groupadd –g gid groupname&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;Example:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;&lt;span style=&quot;mso-tab-count:1&quot;&gt;            &lt;/span&gt;#groupadd raj&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;Exercise:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;Create a user that should have uid=1000 shell=sh description and home directory as /data&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;Sol:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;&lt;span style=&quot;mso-tab-count:1&quot;&gt;            &lt;/span&gt;#useradd –u 1000 –c rakeshpundir –s /bin/sh –d /data rakesh&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;&lt;span style=&quot;mso-tab-count:1&quot;&gt;            &lt;/span&gt;#passwd rakesh&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;Grpahically&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;System Setting :-&amp;gt; User &amp;amp; Group&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;OR&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;#system-config-user&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;Every user have two group one is elementary group or primary group and secondary group&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;&lt;span style=&quot;mso-tab-count:1&quot;&gt;            &lt;/span&gt;-g&lt;span style=&quot;mso-tab-count:1&quot;&gt;         &lt;/span&gt;:&lt;span style=&quot;mso-tab-count:1&quot;&gt;           &lt;/span&gt;Primary Group&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;&lt;span style=&quot;mso-tab-count:1&quot;&gt;            &lt;/span&gt;-G&lt;span style=&quot;mso-tab-count:1&quot;&gt;        &lt;/span&gt;:&lt;span style=&quot;mso-tab-count:1&quot;&gt;           &lt;/span&gt;Secondary Group&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;Creating Group&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;#groupadd g1&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;#groupadd g2&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;Steps:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left:.75in;text-align:justify;text-indent: -.25in;mso-list:l5 level1 lfo6;tab-stops:list .75in&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;;mso-fareast-font-family: &amp;quot;Book Antiqua&amp;quot;;mso-bidi-font-family:&amp;quot;Book Antiqua&amp;quot;&quot;&gt;&lt;span style=&quot;mso-list:Ignore&quot;&gt;1.&lt;span style=&quot;font:7.0pt &amp;quot;Times New Roman&amp;quot;&quot;&gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;adding group to the user&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left:.5in;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;#usermod –g g1 –G g2 rakesh&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left:.75in;text-align:justify;text-indent: -.25in;mso-list:l5 level1 lfo6;tab-stops:list .75in&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;;mso-fareast-font-family: &amp;quot;Book Antiqua&amp;quot;;mso-bidi-font-family:&amp;quot;Book Antiqua&amp;quot;&quot;&gt;&lt;span style=&quot;mso-list:Ignore&quot;&gt;2.&lt;span style=&quot;font:7.0pt &amp;quot;Times New Roman&amp;quot;&quot;&gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;To change id of the user&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left:.5in;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;#usermod –u 1001 rakesh&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left:.75in;text-align:justify;text-indent: -.25in;mso-list:l5 level1 lfo6;tab-stops:list .75in&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;;mso-fareast-font-family: &amp;quot;Book Antiqua&amp;quot;;mso-bidi-font-family:&amp;quot;Book Antiqua&amp;quot;&quot;&gt;&lt;span style=&quot;mso-list:Ignore&quot;&gt;3.&lt;span style=&quot;font:7.0pt &amp;quot;Times New Roman&amp;quot;&quot;&gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;change comment&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left:.5in;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;#usermod –c rakeshsingh&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left:.75in;text-align:justify;text-indent: -.25in;mso-list:l5 level1 lfo6;tab-stops:list .75in&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;;mso-fareast-font-family: &amp;quot;Book Antiqua&amp;quot;;mso-bidi-font-family:&amp;quot;Book Antiqua&amp;quot;&quot;&gt;&lt;span style=&quot;mso-list:Ignore&quot;&gt;4.&lt;span style=&quot;font:7.0pt &amp;quot;Times New Roman&amp;quot;&quot;&gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;change home directory&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left:.5in;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;#usermod –d /rakesh-home rakesh –m&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left:.75in;text-align:justify;text-indent: -.25in;mso-list:l5 level1 lfo6;tab-stops:list .75in&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;;mso-fareast-font-family: &amp;quot;Book Antiqua&amp;quot;;mso-bidi-font-family:&amp;quot;Book Antiqua&amp;quot;&quot;&gt;&lt;span style=&quot;mso-list:Ignore&quot;&gt;5.&lt;span style=&quot;font:7.0pt &amp;quot;Times New Roman&amp;quot;&quot;&gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;change shell&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left:.5in;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;#usermod –s /bin/bash rakesh&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left:.75in;text-align:justify;text-indent: -.25in;mso-list:l5 level1 lfo6;tab-stops:list .75in&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;;mso-fareast-font-family: &amp;quot;Book Antiqua&amp;quot;;mso-bidi-font-family:&amp;quot;Book Antiqua&amp;quot;&quot;&gt;&lt;span style=&quot;mso-list:Ignore&quot;&gt;6.&lt;span style=&quot;font:7.0pt &amp;quot;Times New Roman&amp;quot;&quot;&gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;change user login name&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left:.5in;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;#usermod –l newname oldname&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left:.5in;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;#usermod –l rajesh rakesh&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left:.75in;text-align:justify;text-indent: -.25in;mso-list:l5 level1 lfo6;tab-stops:list .75in&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;;mso-fareast-font-family: &amp;quot;Book Antiqua&amp;quot;;mso-bidi-font-family:&amp;quot;Book Antiqua&amp;quot;&quot;&gt;&lt;span style=&quot;mso-list:Ignore&quot;&gt;7.&lt;span style=&quot;font:7.0pt &amp;quot;Times New Roman&amp;quot;&quot;&gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;Change Group name&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left:.5in;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;#groupmod –n newname oldname&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left:.5in;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;#groupmod –n group1 g1&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left:.75in;text-align:justify;text-indent: -.25in;mso-list:l5 level1 lfo6;tab-stops:list .75in&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;;mso-fareast-font-family: &amp;quot;Book Antiqua&amp;quot;;mso-bidi-font-family:&amp;quot;Book Antiqua&amp;quot;&quot;&gt;&lt;span style=&quot;mso-list:Ignore&quot;&gt;8.&lt;span style=&quot;font:7.0pt &amp;quot;Times New Roman&amp;quot;&quot;&gt;      &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;change Group id&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left:.5in;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;#groupmod –g 2005 group1&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://rhel5certs.blogspot.com/feeds/4859067910897081814/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rhel5certs.blogspot.com/2012/01/user-and-group-administrator.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1865163405195897930/posts/default/4859067910897081814'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1865163405195897930/posts/default/4859067910897081814'/><link rel='alternate' type='text/html' href='http://rhel5certs.blogspot.com/2012/01/user-and-group-administrator.html' title='User and Group Administrator'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1865163405195897930.post-7809482206681152330</id><published>2012-01-03T06:57:00.000-08:00</published><updated>2012-01-03T07:00:28.794-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="Red Hat"/><category scheme="http://www.blogger.com/atom/ns#" term="RHCE"/><category scheme="http://www.blogger.com/atom/ns#" term="RHEL"/><title type='text'>Vi, vim Editor</title><content type='html'>&lt;div style=&quot;mso-element:para-border-div;border:solid windowtext 1.0pt; mso-border-alt:solid windowtext .5pt;padding:1.0pt 4.0pt 1.0pt 4.0pt&quot;&gt;  &lt;p class=&quot;MsoNormal&quot; align=&quot;center&quot; style=&quot;text-align:center;border:none; mso-border-alt:solid windowtext .5pt;padding:0in;mso-padding-alt:1.0pt 4.0pt 1.0pt 4.0pt&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family: &amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;;color:navy&quot;&gt;Vi, vim Editor&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;/div&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;Vi is the standard file editor for Unix and Vim is the standard file editor for Linux&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;For Red hat Linux vi and Vim both are same&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;There are three mode of vi editor&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;ol style=&quot;margin-top:0in&quot; start=&quot;1&quot; type=&quot;1&quot;&gt;  &lt;li class=&quot;MsoNormal&quot; style=&quot;text-align:justify;mso-list:l3 level1 lfo1;      tab-stops:list .5in&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;command      mode&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;  &lt;li class=&quot;MsoNormal&quot; style=&quot;text-align:justify;mso-list:l3 level1 lfo1;      tab-stops:list .5in&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;insert      mode&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;  &lt;li class=&quot;MsoNormal&quot; style=&quot;text-align:justify;mso-list:l3 level1 lfo1;      tab-stops:list .5in&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;save      and Exit Mode&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt; &lt;/ol&gt;  &lt;ol style=&quot;margin-top:0in&quot; start=&quot;1&quot; type=&quot;1&quot;&gt;  &lt;li class=&quot;MsoNormal&quot; style=&quot;text-align:justify;mso-list:l1 level1 lfo2;      tab-stops:list .5in&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;Command      mode is again divided into 3 mode&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt; &lt;/ol&gt;  &lt;ol style=&quot;margin-top:0in&quot; start=&quot;1&quot; type=&quot;a&quot;&gt;  &lt;li class=&quot;MsoNormal&quot; style=&quot;text-align:justify;mso-list:l0 level1 lfo3;      tab-stops:list .5in&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;Cursor      movement&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;  &lt;li class=&quot;MsoNormal&quot; style=&quot;text-align:justify;mso-list:l0 level1 lfo3;      tab-stops:list .5in&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;Copy,      paste, delete, undo&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;  &lt;li class=&quot;MsoNormal&quot; style=&quot;text-align:justify;mso-list:l0 level1 lfo3;      tab-stops:list .5in&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;Text      search&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt; &lt;/ol&gt;  &lt;ol style=&quot;margin-top:0in&quot; start=&quot;1&quot; type=&quot;a&quot;&gt;  &lt;li class=&quot;MsoNormal&quot; style=&quot;color:#FF6600;text-align:justify;mso-list:l2 level1 lfo4;      tab-stops:list .5in&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;Cursor      Movement&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/li&gt; &lt;/ol&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;J&lt;span style=&quot;mso-tab-count:1&quot;&gt;           &lt;/span&gt;:&lt;span style=&quot;mso-tab-count:1&quot;&gt;           &lt;/span&gt;Down&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;K&lt;span style=&quot;mso-tab-count:1&quot;&gt;         &lt;/span&gt;:&lt;span style=&quot;mso-tab-count:1&quot;&gt;           &lt;/span&gt;UP&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;L&lt;span style=&quot;mso-tab-count:1&quot;&gt;          &lt;/span&gt;:&lt;span style=&quot;mso-tab-count:1&quot;&gt;           &lt;/span&gt;RIGHT&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;H&lt;span style=&quot;mso-tab-count:1&quot;&gt;         &lt;/span&gt;:&lt;span style=&quot;mso-tab-count:1&quot;&gt;           &lt;/span&gt;LEFT&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;ol style=&quot;margin-top:0in&quot; start=&quot;2&quot; type=&quot;a&quot;&gt;  &lt;li class=&quot;MsoNormal&quot; style=&quot;color:#FF6600;text-align:justify;mso-list:l2 level1 lfo4;      tab-stops:list .5in&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;Copy, paste      delete, undo&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/li&gt; &lt;/ol&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;dd&lt;span style=&quot;mso-tab-count:1&quot;&gt;        &lt;/span&gt;:&lt;span style=&quot;mso-tab-count:1&quot;&gt;           &lt;/span&gt;delete particular line&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;yy&lt;span style=&quot;mso-tab-count:1&quot;&gt;        &lt;/span&gt;:&lt;span style=&quot;mso-tab-count:1&quot;&gt;           &lt;/span&gt;copy particular line&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;u&lt;span style=&quot;mso-tab-count:1&quot;&gt;          &lt;/span&gt;:&lt;span style=&quot;mso-tab-count:1&quot;&gt;           &lt;/span&gt;Undo&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;p&lt;span style=&quot;mso-tab-count:1&quot;&gt;          &lt;/span&gt;:&lt;span style=&quot;mso-tab-count:1&quot;&gt;           &lt;/span&gt;paste&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;ndd&lt;span style=&quot;mso-tab-count:1&quot;&gt;     &lt;/span&gt;:&lt;span style=&quot;mso-tab-count:1&quot;&gt;           &lt;/span&gt;n is the number of line to be deleted&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;nyy&lt;span style=&quot;mso-tab-count:1&quot;&gt;      &lt;/span&gt;:&lt;span style=&quot;mso-tab-count:1&quot;&gt;           &lt;/span&gt;n is the number of line to be copied&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;ol style=&quot;margin-top:0in&quot; start=&quot;3&quot; type=&quot;a&quot;&gt;  &lt;li class=&quot;MsoNormal&quot; style=&quot;color:#FF6600;text-align:justify;mso-list:l2 level1 lfo4;      tab-stops:list .5in&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;Text Search&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/li&gt; &lt;/ol&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;/text&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;example&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;/then&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;ol style=&quot;margin-top:0in&quot; start=&quot;2&quot; type=&quot;1&quot;&gt;  &lt;li class=&quot;MsoNormal&quot; style=&quot;color:#FF6600;text-align:justify;mso-list:l1 level1 lfo2;      tab-stops:list .5in&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;Insert Mode&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/li&gt; &lt;/ol&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;Option I, insert, a ,o, O&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left:.5in;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;i&lt;span style=&quot;mso-tab-count:1&quot;&gt;           &lt;/span&gt;:&lt;span style=&quot;mso-tab-count:1&quot;&gt;           &lt;/span&gt;insert mode start at the point where cursor is. Same is used with &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left:1.0in;text-align:justify;text-indent: .5in&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;insert option&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;&lt;span style=&quot;mso-tab-count:1&quot;&gt;            &lt;/span&gt;a&lt;span style=&quot;mso-tab-count:1&quot;&gt;          &lt;/span&gt;:&lt;span style=&quot;mso-tab-count:1&quot;&gt;           &lt;/span&gt;insert mode start after one character&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;&lt;span style=&quot;mso-tab-count:1&quot;&gt;            &lt;/span&gt;o&lt;span style=&quot;mso-tab-count:1&quot;&gt;          &lt;/span&gt;:&lt;span style=&quot;mso-tab-count:1&quot;&gt;           &lt;/span&gt;insert mode start after one line&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;&lt;span style=&quot;mso-tab-count:1&quot;&gt;            &lt;/span&gt;O&lt;span style=&quot;mso-tab-count:1&quot;&gt;         &lt;/span&gt;:&lt;span style=&quot;mso-tab-count:1&quot;&gt;           &lt;/span&gt;insert mode start before one line&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;ol style=&quot;margin-top:0in&quot; start=&quot;3&quot; type=&quot;1&quot;&gt;  &lt;li class=&quot;MsoNormal&quot; style=&quot;color:#FF6600;text-align:justify;mso-list:l1 level1 lfo2;      tab-stops:list .5in&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;Save and Exit&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/li&gt; &lt;/ol&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left:.25in;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;:q&lt;span style=&quot;mso-tab-count:2&quot;&gt;               &lt;/span&gt;:&lt;span style=&quot;mso-tab-count:1&quot;&gt;           &lt;/span&gt;Quiet&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left:.25in;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;:q!&lt;span style=&quot;mso-tab-count:2&quot;&gt;              &lt;/span&gt;:&lt;span style=&quot;mso-tab-count:1&quot;&gt;           &lt;/span&gt;forcely quiet&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left:.25in;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;:wq!&lt;span style=&quot;mso-tab-count:1&quot;&gt;           &lt;/span&gt;:&lt;span style=&quot;mso-tab-count:1&quot;&gt;           &lt;/span&gt;save and forcely quiet&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left:.25in;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;:wq&lt;span style=&quot;mso-tab-count:1&quot;&gt;            &lt;/span&gt;:&lt;span style=&quot;mso-tab-count:1&quot;&gt;           &lt;/span&gt;save and exit&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://rhel5certs.blogspot.com/feeds/7809482206681152330/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rhel5certs.blogspot.com/2012/01/vi-vim-editor.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1865163405195897930/posts/default/7809482206681152330'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1865163405195897930/posts/default/7809482206681152330'/><link rel='alternate' type='text/html' href='http://rhel5certs.blogspot.com/2012/01/vi-vim-editor.html' title='Vi, vim Editor'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1865163405195897930.post-1338457909093476529</id><published>2012-01-03T06:54:00.001-08:00</published><updated>2012-01-03T06:56:33.789-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="Red Hat"/><category scheme="http://www.blogger.com/atom/ns#" term="RHCE"/><category scheme="http://www.blogger.com/atom/ns#" term="RHEL"/><title type='text'>Representation Of Media Devices</title><content type='html'>&lt;div style=&quot;mso-element:para-border-div;border:solid windowtext 1.0pt; mso-border-alt:solid windowtext .5pt;padding:1.0pt 4.0pt 1.0pt 4.0pt&quot;&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify;border:none;mso-border-alt:solid windowtext .5pt; padding:0in;mso-padding-alt:1.0pt 4.0pt 1.0pt 4.0pt&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;; color:#333399&quot;&gt;Representation Of Media Devices:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;/div&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;All the device file are stored in /dev/ &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;Hard disk &lt;span style=&quot;mso-tab-count:1&quot;&gt;      &lt;/span&gt;; /dev/hdx&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;Where x is&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;a&lt;span style=&quot;mso-tab-count:1&quot;&gt;          &lt;/span&gt;:&lt;span style=&quot;mso-tab-count:1&quot;&gt;           &lt;/span&gt;/dev/hda&lt;span style=&quot;mso-tab-count: 1&quot;&gt;       &lt;/span&gt;:&lt;span style=&quot;mso-tab-count:1&quot;&gt;           &lt;/span&gt;Primary master&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;b&lt;span style=&quot;mso-tab-count:1&quot;&gt;          &lt;/span&gt;:&lt;span style=&quot;mso-tab-count:1&quot;&gt;           &lt;/span&gt;/dev/hdb&lt;span style=&quot;mso-tab-count: 1&quot;&gt;       &lt;/span&gt;:&lt;span style=&quot;mso-tab-count:1&quot;&gt;           &lt;/span&gt;Primary slave&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;c&lt;span style=&quot;mso-tab-count:1&quot;&gt;          &lt;/span&gt;:&lt;span style=&quot;mso-tab-count:1&quot;&gt;           &lt;/span&gt;/dev/hdc&lt;span style=&quot;mso-tab-count: 1&quot;&gt;       &lt;/span&gt;:&lt;span style=&quot;mso-tab-count:1&quot;&gt;           &lt;/span&gt;Secondary master&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;d&lt;span style=&quot;mso-tab-count:1&quot;&gt;          &lt;/span&gt;:&lt;span style=&quot;mso-tab-count:1&quot;&gt;           &lt;/span&gt;/dev/hdd&lt;span style=&quot;mso-tab-count: 1&quot;&gt;       &lt;/span&gt;:&lt;span style=&quot;mso-tab-count:1&quot;&gt;           &lt;/span&gt;Secondary slave&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;In case of SCSI, Sata or USB we will use : /dev/sda&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;CD-rom:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;&lt;span style=&quot;mso-tab-count:1&quot;&gt;            &lt;/span&gt;/dev/cdrom&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;&lt;span style=&quot;mso-tab-count:1&quot;&gt;            &lt;/span&gt;/dev/cdrom1&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;&lt;span style=&quot;mso-tab-count:1&quot;&gt;            &lt;/span&gt;/dev/cdrecorder&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;Floppy:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;&lt;span style=&quot;mso-tab-count:1&quot;&gt;            &lt;/span&gt;/dev/fd0&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;&lt;span style=&quot;mso-tab-count:1&quot;&gt;            &lt;/span&gt;/dev/fd1&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;to access partition of windows in linux&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;#mount –t vfat /dev/hdax /mnt&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;in order to check the label of any partition&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;#e2label /dev/hdax&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;where x is number&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;; color:#FF6600&quot;&gt;Mounting CD Rom &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;# mount –t auto /dev/hdc /media/cdrom&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;-t : file type&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;auto : file type&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;in order to check where cdrom is attached we can open the file fstab&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;#vi /etc/fstab&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;now in case of RHEl 3.0 we have to use command in order to unmount.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;# umount /media/cdrom&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;and then eject the cdrom&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;in case of RHEL 4.0 we simply type &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;# eject&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;; color:#FF6600&quot;&gt;Mounting Floppy&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;#mount –t auto /dev/fd0 /media/floppy&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;in case of floppy we have to umount first then only we remove floppy otherwise all content of floppy may be lost or floppy may be physically damaged.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;# umount&lt;span style=&quot;mso-spacerun:yes&quot;&gt;  &lt;/span&gt;/media/floppy&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;Mounting USB media :- directed by the kernel as SCSI device&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;/dev/sdax&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;Vi Editor:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;Using vi , we can create or modify any file&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://rhel5certs.blogspot.com/feeds/1338457909093476529/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rhel5certs.blogspot.com/2012/01/representation-of-media-devices.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1865163405195897930/posts/default/1338457909093476529'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1865163405195897930/posts/default/1338457909093476529'/><link rel='alternate' type='text/html' href='http://rhel5certs.blogspot.com/2012/01/representation-of-media-devices.html' title='Representation Of Media Devices'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1865163405195897930.post-4346949378060098518</id><published>2012-01-03T06:52:00.000-08:00</published><updated>2012-01-03T06:53:55.956-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="Red Hat"/><category scheme="http://www.blogger.com/atom/ns#" term="RHCE"/><category scheme="http://www.blogger.com/atom/ns#" term="RHEL"/><title type='text'>Linux file system</title><content type='html'>&lt;div style=&quot;mso-element:para-border-div;border:solid windowtext 1.0pt; mso-border-alt:solid windowtext .5pt;padding:1.0pt 4.0pt 1.0pt 4.0pt&quot;&gt;  &lt;p class=&quot;MsoNormal&quot; align=&quot;center&quot; style=&quot;text-align:center;border:none; mso-border-alt:solid windowtext .5pt;padding:0in;mso-padding-alt:1.0pt 4.0pt 1.0pt 4.0pt&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &#39;Book Antiqua&#39;, serif; color: rgb(51, 51, 153); &quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-large;&quot;&gt;Linux file system:&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; &gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 11pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; align=&quot;center&quot; style=&quot;text-align:center;border:none; mso-border-alt:solid windowtext .5pt;padding:0in;mso-padding-alt:1.0pt 4.0pt 1.0pt 4.0pt&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family: &amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;;color:#333399&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;/div&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;Figure&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;Root&lt;span style=&quot;mso-tab-count:1&quot;&gt;    &lt;/span&gt;:&lt;span style=&quot;mso-tab-count:1&quot;&gt;           &lt;/span&gt;it is an home directory of super user (root) administrator&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;Etc&lt;span style=&quot;mso-tab-count:1&quot;&gt;       &lt;/span&gt;:&lt;span style=&quot;mso-tab-count:1&quot;&gt;           &lt;/span&gt;it is the location of all configuration file and directory used for server &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left:.5in;text-align:justify;text-indent:.5in&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;configuration or system configuration&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;dev&lt;span style=&quot;mso-tab-count:1&quot;&gt;      &lt;/span&gt;:&lt;span style=&quot;mso-tab-count:1&quot;&gt;           &lt;/span&gt;it is a location of the device file&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;home&lt;span style=&quot;mso-tab-count:1&quot;&gt;   &lt;/span&gt;:&lt;span style=&quot;mso-tab-count:1&quot;&gt;           &lt;/span&gt;it is a location of home directory or regular users&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;proc&lt;span style=&quot;mso-tab-count:1&quot;&gt;     &lt;/span&gt;:&lt;span style=&quot;mso-tab-count:1&quot;&gt;           &lt;/span&gt;it is a virtual file system or directory not actually store on the disk and &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left:.5in;text-align:justify;text-indent:.5in&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;contain system information&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;&lt;span style=&quot;mso-tab-count:2&quot;&gt;                        &lt;/span&gt;# cat /proc/meminfo&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;&lt;span style=&quot;mso-tab-count:2&quot;&gt;                        &lt;/span&gt;# cat /proc/cpuinfo&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;boot&lt;span style=&quot;mso-tab-count:1&quot;&gt;     &lt;/span&gt;:&lt;span style=&quot;mso-tab-count:1&quot;&gt;           &lt;/span&gt;contain kernel and boot related files&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;sys&lt;span style=&quot;mso-tab-count:1&quot;&gt;       &lt;/span&gt;:&lt;span style=&quot;mso-tab-count:1&quot;&gt;           &lt;/span&gt;it is also a virtual directory and contain system information&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;media&lt;span style=&quot;mso-tab-count:1&quot;&gt;  &lt;/span&gt;:&lt;span style=&quot;mso-tab-count:1&quot;&gt;           &lt;/span&gt;it is a mount point of removable disk like cdrom floppy usb drive etc.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;tmp&lt;span style=&quot;mso-tab-count:1&quot;&gt;     &lt;/span&gt;:&lt;span style=&quot;mso-tab-count:1&quot;&gt;           &lt;/span&gt;it contain all temporary file&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;usr&lt;span style=&quot;mso-tab-count:1&quot;&gt;       &lt;/span&gt;:&lt;span style=&quot;mso-tab-count:1&quot;&gt;           &lt;/span&gt;it is used for software installation&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;lib&lt;span style=&quot;mso-tab-count:1&quot;&gt;        &lt;/span&gt;:&lt;span style=&quot;mso-tab-count:1&quot;&gt;           &lt;/span&gt;it contain all library files&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;bin&lt;span style=&quot;mso-tab-count:1&quot;&gt;       &lt;/span&gt;:&lt;span style=&quot;mso-tab-count:1&quot;&gt;           &lt;/span&gt;it is the location of all executable files or command or user command &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left:1.0in;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;/usr/bin also contain user command&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;sbin&lt;span style=&quot;mso-tab-count:1&quot;&gt;     &lt;/span&gt;:&lt;span style=&quot;mso-tab-count:1&quot;&gt;           &lt;/span&gt;it contain all system command or super user command /usr/sbin&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;mnt&lt;span style=&quot;mso-tab-count:1&quot;&gt;     &lt;/span&gt;:&lt;span style=&quot;mso-tab-count:1&quot;&gt;           &lt;/span&gt;it is a mount point for physical hard-disk or partition&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;opt&lt;span style=&quot;mso-tab-count:1&quot;&gt;       &lt;/span&gt;:&lt;span style=&quot;mso-tab-count:1&quot;&gt;           &lt;/span&gt;optional directory and used for temporary working&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;var&lt;span style=&quot;mso-tab-count:1&quot;&gt;      &lt;/span&gt;:&lt;span style=&quot;mso-tab-count:1&quot;&gt;           &lt;/span&gt;it is a variable file system or directory and contain all log and error &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left:.5in;text-align:justify;text-indent:.5in&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;message&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;file system type:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;Dos&lt;span style=&quot;mso-tab-count:1&quot;&gt;      &lt;/span&gt;:&lt;span style=&quot;mso-tab-count:1&quot;&gt;           &lt;/span&gt;Fat 16&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;95/Xp/2000&lt;span style=&quot;mso-tab-count:1&quot;&gt;   &lt;/span&gt;:&lt;span style=&quot;mso-tab-count:1&quot;&gt;           &lt;/span&gt;FAT32&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;Xp/NT/2000&lt;span style=&quot;mso-tab-count:1&quot;&gt; &lt;/span&gt;:&lt;span style=&quot;mso-tab-count:1&quot;&gt;           &lt;/span&gt;NTFS&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;Linux&lt;span style=&quot;mso-tab-count:2&quot;&gt;              &lt;/span&gt;:&lt;span style=&quot;mso-tab-count:1&quot;&gt;           &lt;/span&gt;EXT2,EXT3&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;UNIX&lt;span style=&quot;mso-tab-count:2&quot;&gt;              &lt;/span&gt;:&lt;span style=&quot;mso-tab-count:1&quot;&gt;           &lt;/span&gt;VXFS&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;!--EndFragment--&gt;    k� K i u  �� x�� &quot;&#39;&amp;gt;#      chmod ugo+rwx file/directory&lt;o:p&gt;&lt;/o:p&gt;  &lt;li class=&quot;MsoNormal&quot; style=&quot;text-align:justify;mso-list:l3 level1 lfo4;      tab-stops:list .5in&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;#      chmod ugo-rwx file/directory&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;   &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;ul style=&quot;margin-top:0in&quot; type=&quot;disc&quot;&gt;  &lt;li class=&quot;MsoNormal&quot; style=&quot;text-align:justify;mso-list:l2 level1 lfo5;      tab-stops:list .5in&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;+      is used to add permission&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;  &lt;li class=&quot;MsoNormal&quot; style=&quot;text-align:justify;mso-list:l2 level1 lfo5;      tab-stops:list .5in&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;-      is used remove permission&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt; &lt;/ul&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left:.25in;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;chmod ugo=rw directory/file&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left:.25in;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;this command will assign read/write permission to u,g,o&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left:.25in;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;suppose we have one file as&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left:.25in;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;test.txt&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left:.25in;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;permission : -r- - r- -r- -&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left:.25in;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;chmod u=w,g=wx,o=w test.txt&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left:.25in;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;this command will assign write to user, write/execute to group and write to other while remove the previous permission.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left:.25in;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;The main difference between +,= are + operator simply add the new permission with previous one and = assign the new permission while removing old (new permission overwrite an old)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left:.25in;text-align:justify&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family: &amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;div style=&quot;mso-element:para-border-div;border:solid windowtext 1.0pt; mso-border-alt:solid windowtext .5pt;padding:1.0pt 4.0pt 1.0pt 4.0pt; margin-left:.25in;margin-right:0in&quot;&gt;  &lt;ol style=&quot;margin-top:0in&quot; start=&quot;2&quot; type=&quot;1&quot;&gt;  &lt;li class=&quot;MsoNormal&quot; style=&quot;color:#333399;margin-left:.25in;text-align:justify;      mso-list:l0 level1 lfo2;tab-stops:list .5in;border:none;mso-border-alt:      solid windowtext .5pt;padding:0in;mso-padding-alt:1.0pt 4.0pt 1.0pt 4.0pt&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;span style=&quot;font-size:11.0pt;      font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;Numeric Method:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/li&gt; &lt;/ol&gt;  &lt;/div&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;In this method, calculation are based on following numbers&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;r=4&lt;span style=&quot;mso-tab-count:1&quot;&gt;      &lt;/span&gt;w=2&lt;span style=&quot;mso-tab-count:1&quot;&gt;     &lt;/span&gt;x=1&lt;span style=&quot;mso-tab-count:1&quot;&gt;      &lt;/span&gt;0= no permission&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;Example:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;#chmod 777 file/directory&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;in this case user get 7 means that user has permission of read/write/execute, group get 7 means read/write/execute and ame for other&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;# chmod 531 file/directory&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;in this case user get 5 means that user has permission of read/execute, group get 3 means write/execute and other get 1 means that other has permission to execute.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;#chmod 742 file/directory&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;7 : User : rwx&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;4 :Group : r&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;2 : Other : w&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://rhel5certs.blogspot.com/feeds/4346949378060098518/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rhel5certs.blogspot.com/2012/01/linux-file-system.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1865163405195897930/posts/default/4346949378060098518'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1865163405195897930/posts/default/4346949378060098518'/><link rel='alternate' type='text/html' href='http://rhel5certs.blogspot.com/2012/01/linux-file-system.html' title='Linux file system'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1865163405195897930.post-4954308605897751539</id><published>2012-01-03T06:50:00.000-08:00</published><updated>2012-01-03T06:51:58.403-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="Red Hat"/><category scheme="http://www.blogger.com/atom/ns#" term="RHCE"/><category scheme="http://www.blogger.com/atom/ns#" term="RHEL"/><title type='text'>File and Directory Permission</title><content type='html'>&lt;div style=&quot;mso-element:para-border-div;border:solid windowtext 1.0pt; mso-border-alt:solid windowtext .5pt;padding:1.0pt 4.0pt 1.0pt 4.0pt&quot;&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify;border:none;mso-border-alt:solid windowtext .5pt; padding:0in;mso-padding-alt:1.0pt 4.0pt 1.0pt 4.0pt&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;; color:#993300&quot;&gt;File and Directory:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;/div&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;‘ll’ is used to display the information about the files and directory including date, time, users,group, size, name and permission.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;Four symbols are used when displaying permission.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;R&lt;span style=&quot;mso-tab-count:1&quot;&gt;          &lt;/span&gt;:&lt;span style=&quot;mso-tab-count:1&quot;&gt;           &lt;/span&gt;Read&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;W&lt;span style=&quot;mso-tab-count:1&quot;&gt;        &lt;/span&gt;:&lt;span style=&quot;mso-tab-count:1&quot;&gt;           &lt;/span&gt;Write&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;X&lt;span style=&quot;mso-tab-count:1&quot;&gt;          &lt;/span&gt;:&lt;span style=&quot;mso-tab-count:1&quot;&gt;           &lt;/span&gt;Execute&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;-&lt;span style=&quot;mso-tab-count:1&quot;&gt;           &lt;/span&gt;:&lt;span style=&quot;mso-tab-count:1&quot;&gt;           &lt;/span&gt;no permission&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;-rwxrwxrwx : &lt;span style=&quot;mso-tab-count: 1&quot;&gt;            &lt;/span&gt;files&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;drwxrwxrwx :&lt;span style=&quot;mso-tab-count: 1&quot;&gt;            &lt;/span&gt;directory&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;files and directory permission are symbolized by ten character.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;If we want to change permission, then there are two methods:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;ol style=&quot;margin-top:0in&quot; start=&quot;1&quot; type=&quot;1&quot;&gt;  &lt;li class=&quot;MsoNormal&quot; style=&quot;text-align:justify;mso-list:l1 level1 lfo1;      tab-stops:list .5in&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;symbolic&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;  &lt;li class=&quot;MsoNormal&quot; style=&quot;text-align:justify;mso-list:l1 level1 lfo1;      tab-stops:list .5in&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;Numeric&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt; &lt;/ol&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;div style=&quot;mso-element:para-border-div;border:solid windowtext 1.0pt; mso-border-alt:solid windowtext .5pt;padding:1.0pt 4.0pt 1.0pt 4.0pt; margin-left:.25in;margin-right:0in&quot;&gt;  &lt;ol style=&quot;margin-top:0in&quot; start=&quot;1&quot; type=&quot;1&quot;&gt;  &lt;li class=&quot;MsoNormal&quot; style=&quot;color:#333399;margin-left:.25in;text-align:justify;      mso-list:l0 level1 lfo2;tab-stops:list .5in;border:none;mso-border-alt:      solid windowtext .5pt;padding:0in;mso-padding-alt:1.0pt 4.0pt 1.0pt 4.0pt&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;span style=&quot;font-size:11.0pt;      font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;Symbolic Method:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/li&gt; &lt;/ol&gt;  &lt;/div&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;Syntax:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;Chmod mode directory/filename&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;Mode Option:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;ol style=&quot;margin-top:0in&quot; start=&quot;1&quot; type=&quot;1&quot;&gt;  &lt;li class=&quot;MsoNormal&quot; style=&quot;text-align:justify;mso-list:l4 level1 lfo3;      tab-stops:list .5in&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;u,g,o&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;  &lt;li class=&quot;MsoNormal&quot; style=&quot;text-align:justify;mso-list:l4 level1 lfo3;      tab-stops:list .5in&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;w,r,x&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;  &lt;li class=&quot;MsoNormal&quot; style=&quot;text-align:justify;mso-list:l4 level1 lfo3;      tab-stops:list .5in&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;+,-&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;  &lt;li class=&quot;MsoNormal&quot; style=&quot;text-align:justify;mso-list:l4 level1 lfo3;      tab-stops:list .5in&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;=&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt; &lt;/ol&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;ol style=&quot;margin-top:0in&quot; start=&quot;1&quot; type=&quot;1&quot;&gt;  &lt;li class=&quot;MsoNormal&quot; style=&quot;text-align:justify;mso-list:l3 level1 lfo4;      tab-stops:list .5in&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;#      chmod u+rwx file or directory : in case of user only&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;  &lt;li class=&quot;MsoNormal&quot; style=&quot;text-align:justify;mso-list:l3 level1 lfo4;      tab-stops:list .5in&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;#      chmod ug+rwx file or directoty : in case of user and group&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;  &lt;li class=&quot;MsoNormal&quot; style=&quot;text-align:justify;mso-list:l3 level1 lfo4;      tab-stops:list .5in&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;#      chmod u+w,g+r,o+x directory/file&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;  &lt;li class=&quot;MsoNormal&quot; style=&quot;text-align:justify;mso-list:l3 level1 lfo4;      tab-stops:list .5in&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;#      chmod u+rw,g+rw directory/file&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;  &lt;li class=&quot;MsoNormal&quot; style=&quot;text-align:justify;mso-list:l3 level1 lfo4;      tab-stops:list .5in&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;#      chmod u-r, g-w,o-rw directory/file&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;  &lt;li class=&quot;MsoNormal&quot; style=&quot;text-align:justify;mso-list:l3 level1 lfo4;      tab-stops:list .5in&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;#      chmod ugo+rwx file/directory&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;  &lt;li class=&quot;MsoNormal&quot; style=&quot;text-align:justify;mso-list:l3 level1 lfo4;      tab-stops:list .5in&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;#      chmod ugo-rwx file/directory&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt; &lt;/ol&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;ul style=&quot;margin-top:0in&quot; type=&quot;disc&quot;&gt;  &lt;li class=&quot;MsoNormal&quot; style=&quot;text-align:justify;mso-list:l2 level1 lfo5;      tab-stops:list .5in&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;+      is used to add permission&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;  &lt;li class=&quot;MsoNormal&quot; style=&quot;text-align:justify;mso-list:l2 level1 lfo5;      tab-stops:list .5in&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;-      is used remove permission&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt; &lt;/ul&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left:.25in;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;chmod ugo=rw directory/file&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left:.25in;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;this command will assign read/write permission to u,g,o&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left:.25in;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;suppose we have one file as&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left:.25in;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;test.txt&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left:.25in;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;permission : -r- - r- -r- -&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left:.25in;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;chmod u=w,g=wx,o=w test.txt&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left:.25in;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;this command will assign write to user, write/execute to group and write to other while remove the previous permission.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left:.25in;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;The main difference between +,= are + operator simply add the new permission with previous one and = assign the new permission while removing old (new permission overwrite an old)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left:.25in;text-align:justify&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family: &amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;div style=&quot;mso-element:para-border-div;border:solid windowtext 1.0pt; mso-border-alt:solid windowtext .5pt;padding:1.0pt 4.0pt 1.0pt 4.0pt; margin-left:.25in;margin-right:0in&quot;&gt;  &lt;ol style=&quot;margin-top:0in&quot; start=&quot;2&quot; type=&quot;1&quot;&gt;  &lt;li class=&quot;MsoNormal&quot; style=&quot;color:#333399;margin-left:.25in;text-align:justify;      mso-list:l0 level1 lfo2;tab-stops:list .5in;border:none;mso-border-alt:      solid windowtext .5pt;padding:0in;mso-padding-alt:1.0pt 4.0pt 1.0pt 4.0pt&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;span style=&quot;font-size:11.0pt;      font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;Numeric Method:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/li&gt; &lt;/ol&gt;  &lt;/div&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;In this method, calculation are based on following numbers&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;r=4&lt;span style=&quot;mso-tab-count:1&quot;&gt;      &lt;/span&gt;w=2&lt;span style=&quot;mso-tab-count:1&quot;&gt;     &lt;/span&gt;x=1&lt;span style=&quot;mso-tab-count:1&quot;&gt;      &lt;/span&gt;0= no permission&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;Example:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;#chmod 777 file/directory&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;in this case user get 7 means that user has permission of read/write/execute, group get 7 means read/write/execute and ame for other&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;# chmod 531 file/directory&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;in this case user get 5 means that user has permission of read/execute, group get 3 means write/execute and other get 1 means that other has permission to execute.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;#chmod 742 file/directory&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;7 : User : rwx&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;4 :Group : r&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;2 : Other : w&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://rhel5certs.blogspot.com/feeds/4954308605897751539/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rhel5certs.blogspot.com/2012/01/file-and-directory-permission.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1865163405195897930/posts/default/4954308605897751539'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1865163405195897930/posts/default/4954308605897751539'/><link rel='alternate' type='text/html' href='http://rhel5certs.blogspot.com/2012/01/file-and-directory-permission.html' title='File and Directory Permission'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1865163405195897930.post-8567238115560905135</id><published>2012-01-03T06:47:00.000-08:00</published><updated>2012-01-03T06:48:34.299-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="Red Hat"/><category scheme="http://www.blogger.com/atom/ns#" term="RHCE"/><category scheme="http://www.blogger.com/atom/ns#" term="RHEL"/><title type='text'>Getting Help</title><content type='html'>&lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;div style=&quot;mso-element:para-border-div;border:solid windowtext 1.0pt; mso-border-alt:solid windowtext .5pt;padding:1.0pt 4.0pt 1.0pt 4.0pt&quot;&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify;border:none;mso-border-alt:solid windowtext .5pt; padding:0in;mso-padding-alt:1.0pt 4.0pt 1.0pt 4.0pt&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;; color:#993300&quot;&gt;Getting Help&lt;span style=&quot;border:solid windowtext 1.0pt; mso-border-alt:solid windowtext .5pt;padding:0in&quot;&gt;:&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;/div&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;The command that are used to get the help are discussed as :&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;ol style=&quot;margin-top:0in&quot; start=&quot;1&quot; type=&quot;a&quot;&gt;  &lt;li class=&quot;MsoNormal&quot; style=&quot;color:#FF6600;text-align:justify;mso-list:l0 level1 lfo1;      tab-stops:list .5in&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;Whatis&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/li&gt; &lt;/ol&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;Display a short description of command , it uses a database that is updated nightly. Often not available immediately after installation.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;Syntax:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;# Whatis cal&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;ol style=&quot;margin-top:0in&quot; start=&quot;2&quot; type=&quot;a&quot;&gt;  &lt;li class=&quot;MsoNormal&quot; style=&quot;color:#FF6600;text-align:justify;mso-list:l0 level1 lfo1;      tab-stops:list .5in&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;Help&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/li&gt; &lt;/ol&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;Display usage summary and argument list&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;Syntax:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;&lt;command&gt;&lt;/command&gt; --help&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;Example:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;#Date –help&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;; color:#FF6600&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;ol style=&quot;margin-top:0in&quot; start=&quot;3&quot; type=&quot;a&quot;&gt;  &lt;li class=&quot;MsoNormal&quot; style=&quot;color:#FF6600;text-align:justify;mso-list:l0 level1 lfo1;      tab-stops:list .5in&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;Man and Info:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/li&gt; &lt;/ol&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;Both provide documentation for command. Almost every command has a “man” page. Collection of pages are called linux manual.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;# man date&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;# info date&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;; color:#FF6600&quot;&gt;Viewing Text Page&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;Syntax:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;#less [option] [filename]&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;Example:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;# less abc.txt&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;scroll with arrows/PgUp /PgDown&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;/text&lt;span style=&quot;mso-tab-count:1&quot;&gt;    &lt;/span&gt;: &lt;span style=&quot;mso-tab-count:1&quot;&gt;          &lt;/span&gt;search for text&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;n&lt;span style=&quot;mso-tab-count:1&quot;&gt;          &lt;/span&gt;:&lt;span style=&quot;mso-tab-count:1&quot;&gt;           &lt;/span&gt;Next Match&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;Option:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;-c&lt;span style=&quot;mso-tab-count:1&quot;&gt;         &lt;/span&gt;:&lt;span style=&quot;mso-tab-count:1&quot;&gt;           &lt;/span&gt;Clear before displaying&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;-s&lt;span style=&quot;mso-tab-count:1&quot;&gt;         &lt;/span&gt;:&lt;span style=&quot;mso-tab-count:1&quot;&gt;           &lt;/span&gt;Squeeze multiple blank lines into a single blank line&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;Simply we can also use “less” along with pipe | as &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;# ll |less&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://rhel5certs.blogspot.com/feeds/8567238115560905135/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rhel5certs.blogspot.com/2012/01/getting-help.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1865163405195897930/posts/default/8567238115560905135'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1865163405195897930/posts/default/8567238115560905135'/><link rel='alternate' type='text/html' href='http://rhel5certs.blogspot.com/2012/01/getting-help.html' title='Getting Help'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1865163405195897930.post-7610576066564471805</id><published>2012-01-03T06:46:00.001-08:00</published><updated>2012-01-03T06:46:56.475-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="Red Hat"/><category scheme="http://www.blogger.com/atom/ns#" term="RHCE"/><category scheme="http://www.blogger.com/atom/ns#" term="RHEL"/><title type='text'>Moving and Renaming File and Directory</title><content type='html'>&lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;; color:blue;border:solid windowtext 1.0pt;mso-border-alt:solid windowtext .5pt; padding:0in&quot;&gt;Moving and Renaming File and Directory&lt;/span&gt;&lt;/b&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family: &amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;;color:blue&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;Syntax:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;# mv : move /rename files and directory&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;Example:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;# mv [option] file destination&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;example:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;# mv t.txt /home/rohan/&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;more than one file can be moved at a time if the destination is a directory&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;# mv [option] file1 file2 file3 destination&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://rhel5certs.blogspot.com/feeds/7610576066564471805/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rhel5certs.blogspot.com/2012/01/moving-and-renaming-file-and-directory.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1865163405195897930/posts/default/7610576066564471805'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1865163405195897930/posts/default/7610576066564471805'/><link rel='alternate' type='text/html' href='http://rhel5certs.blogspot.com/2012/01/moving-and-renaming-file-and-directory.html' title='Moving and Renaming File and Directory'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1865163405195897930.post-2035165752250370360</id><published>2012-01-03T06:44:00.000-08:00</published><updated>2012-01-03T06:46:06.603-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="Red Hat"/><category scheme="http://www.blogger.com/atom/ns#" term="RHCE"/><category scheme="http://www.blogger.com/atom/ns#" term="RHEL"/><title type='text'>Copying File and Directory</title><content type='html'>&lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;div style=&quot;mso-element:para-border-div;border:solid windowtext 1.0pt; mso-border-alt:solid windowtext .5pt;padding:1.0pt 4.0pt 1.0pt 4.0pt&quot;&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify;border:none;mso-border-alt:solid windowtext .5pt; padding:0in;mso-padding-alt:1.0pt 4.0pt 1.0pt 4.0pt&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;; color:blue&quot;&gt;Copying File and Directory:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;/div&gt;  &lt;ol style=&quot;margin-top:0in&quot; start=&quot;1&quot; type=&quot;a&quot;&gt;  &lt;li class=&quot;MsoNormal&quot; style=&quot;text-align:justify;mso-list:l0 level1 lfo1;      tab-stops:list .5in&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;Copy      file:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt; &lt;/ol&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;Syntax:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;# cp [source]filename [destination]&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;ol style=&quot;margin-top:0in&quot; start=&quot;2&quot; type=&quot;a&quot;&gt;  &lt;li class=&quot;MsoNormal&quot; style=&quot;text-align:justify;mso-list:l0 level1 lfo1;      tab-stops:list .5in&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;Copy      directory&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt; &lt;/ol&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;#cp –r [source]directory [destination]&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;to copy a directory into another directory recursively&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;ol style=&quot;margin-top:0in&quot; start=&quot;3&quot; type=&quot;a&quot;&gt;  &lt;li class=&quot;MsoNormal&quot; style=&quot;text-align:justify;mso-list:l0 level1 lfo1;      tab-stops:list .5in&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;cp      –rf [source]directory [destination]&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt; &lt;/ol&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;to copy a directory forcefully&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;syntax used for copy file or directory:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;cp [option] file destination&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;option:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;-I : interactive : ask before overwriting file&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;-r : Recursive&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;-p : Preserve&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;-f : forcefully&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;More than one file can be copied at a time if the destination is directory&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;Syntax:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;cp [option] file1 file2 file 3 Destination&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://rhel5certs.blogspot.com/feeds/2035165752250370360/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rhel5certs.blogspot.com/2012/01/copying-file-and-directory.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1865163405195897930/posts/default/2035165752250370360'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1865163405195897930/posts/default/2035165752250370360'/><link rel='alternate' type='text/html' href='http://rhel5certs.blogspot.com/2012/01/copying-file-and-directory.html' title='Copying File and Directory'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1865163405195897930.post-6119505310643548704</id><published>2012-01-03T06:39:00.000-08:00</published><updated>2012-01-03T06:44:26.569-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="Red Hat"/><category scheme="http://www.blogger.com/atom/ns#" term="RHCE"/><category scheme="http://www.blogger.com/atom/ns#" term="RHEL"/><title type='text'>Creating file and Directory</title><content type='html'>&lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;;mso-bidi-font-family:&amp;quot;Courier New&amp;quot;; color:#00CCFF&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;div style=&quot;mso-element:para-border-div;border:solid windowtext 1.0pt; mso-border-alt:solid windowtext .5pt;padding:1.0pt 4.0pt 1.0pt 4.0pt&quot;&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify;border:none;mso-border-alt:solid windowtext .5pt; padding:0in;mso-padding-alt:1.0pt 4.0pt 1.0pt 4.0pt&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;; mso-bidi-font-family:&amp;quot;Courier New&amp;quot;;color:#FF9900&quot;&gt;Creating file and Directory:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;/div&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;;mso-bidi-font-family:&amp;quot;Courier New&amp;quot;&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;ol style=&quot;margin-top:0in&quot; start=&quot;1&quot; type=&quot;a&quot;&gt;  &lt;li class=&quot;MsoNormal&quot; style=&quot;color:#FF9900;text-align:justify;mso-list:l0 level1 lfo1;      tab-stops:list .5in&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;;mso-bidi-font-family:      &amp;quot;Courier New&amp;quot;&quot;&gt;Creating file:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/li&gt; &lt;/ol&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;;mso-bidi-font-family:&amp;quot;Courier New&amp;quot;&quot;&gt;The ‘cat’ command is used to create a file &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;;mso-bidi-font-family:&amp;quot;Courier New&amp;quot;&quot;&gt;Syntax:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;;mso-bidi-font-family:&amp;quot;Courier New&amp;quot;&quot;&gt;# cat &amp;gt; filename&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;;mso-bidi-font-family:&amp;quot;Courier New&amp;quot;&quot;&gt;example:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;;mso-bidi-font-family:&amp;quot;Courier New&amp;quot;&quot;&gt;# cat &amp;gt; abc.txt&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;;mso-bidi-font-family:&amp;quot;Courier New&amp;quot;&quot;&gt;(Ctrl +D) is used to save the file.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;;mso-bidi-font-family:&amp;quot;Courier New&amp;quot;&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;ol style=&quot;margin-top:0in&quot; start=&quot;2&quot; type=&quot;a&quot;&gt;  &lt;li class=&quot;MsoNormal&quot; style=&quot;color:#FF9900;text-align:justify;mso-list:l0 level1 lfo1;      tab-stops:list .5in&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;;mso-bidi-font-family:      &amp;quot;Courier New&amp;quot;&quot;&gt;View the content of file&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/li&gt; &lt;/ol&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;;mso-bidi-font-family:&amp;quot;Courier New&amp;quot;&quot;&gt;Syntax:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;;mso-bidi-font-family:&amp;quot;Courier New&amp;quot;&quot;&gt;# cat&lt;span style=&quot;mso-spacerun:yes&quot;&gt;  &lt;/span&gt;filename&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;;mso-bidi-font-family:&amp;quot;Courier New&amp;quot;&quot;&gt;Example:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;;mso-bidi-font-family:&amp;quot;Courier New&amp;quot;&quot;&gt;#cat abc.txt&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;;mso-bidi-font-family:&amp;quot;Courier New&amp;quot;&quot;&gt;#cat –b abc.txt&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;;mso-bidi-font-family:&amp;quot;Courier New&amp;quot;&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;ol style=&quot;margin-top:0in&quot; start=&quot;3&quot; type=&quot;a&quot;&gt;  &lt;li class=&quot;MsoNormal&quot; style=&quot;color:#FF9900;text-align:justify;mso-list:l0 level1 lfo1;      tab-stops:list .5in&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight:normal&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;;mso-bidi-font-family:      &amp;quot;Courier New&amp;quot;&quot;&gt;Creating Directory&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/li&gt; &lt;/ol&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;;mso-bidi-font-family:&amp;quot;Courier New&amp;quot;&quot;&gt;The ‘mkdir’ command is used to create directory&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;;mso-bidi-font-family:&amp;quot;Courier New&amp;quot;&quot;&gt;Syntax:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;;mso-bidi-font-family:&amp;quot;Courier New&amp;quot;&quot;&gt;Mkdir [directory_name]&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;;mso-bidi-font-family:&amp;quot;Courier New&amp;quot;&quot;&gt;Example:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;;mso-bidi-font-family:&amp;quot;Courier New&amp;quot;&quot;&gt;# mkdir rohan&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;;mso-bidi-font-family:&amp;quot;Courier New&amp;quot;&quot;&gt;Option used:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;;mso-bidi-font-family:&amp;quot;Courier New&amp;quot;&quot;&gt;cd : To change directory&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;;mso-bidi-font-family:&amp;quot;Courier New&amp;quot;&quot;&gt;cd .. : To come out from directory&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;;mso-bidi-font-family:&amp;quot;Courier New&amp;quot;&quot;&gt;cd : to jump to root directory&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;;mso-bidi-font-family:&amp;quot;Courier New&amp;quot;&quot;&gt;cd - : to jump to previous directory&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;;mso-bidi-font-family:&amp;quot;Courier New&amp;quot;&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;; color:#FF9900&quot;&gt;Deleting Files and directory:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;Syntax:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;For file:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify;text-indent:.5in&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;rm &lt;filename&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/filename&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;example:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify;text-indent:.5in&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;rm abc.txt&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;for directory&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;syntax:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify;text-indent:.5in&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;rmdir &lt;directory_name&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/directory_name&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;Note: Only empty directory will be deleted)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;If we want to delete the tree structure of directory then we need to use the following command&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;Syntax:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;rm –rf&lt;span style=&quot;mso-spacerun:yes&quot;&gt;  &lt;/span&gt;&lt;directory_name&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/directory_name&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;where&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;r = recursively&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;f= force&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;in order to remove non empty directory&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;Syntax:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;rm –r &lt;directory&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/directory&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;example;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;rm –r rohan&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;this will remove directory step by step ,first remove&lt;span style=&quot;mso-spacerun:yes&quot;&gt;  &lt;/span&gt;sub directory and then finally main directory.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;div style=&quot;mso-element:para-border-div;border:solid windowtext 1.0pt; mso-border-alt:solid windowtext .5pt;padding:1.0pt 4.0pt 1.0pt 4.0pt&quot;&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify;border:none;mso-border-alt:solid windowtext .5pt; padding:0in;mso-padding-alt:1.0pt 4.0pt 1.0pt 4.0pt&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;; color:blue&quot;&gt;Another method of creating file :&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;/div&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;Touch : this command is used to create a blank file with size zero.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;# touch &lt;filename&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/filename&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;Example:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;&quot;&gt;#touch abc&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://rhel5certs.blogspot.com/feeds/6119505310643548704/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rhel5certs.blogspot.com/2012/01/creating-file-and-directory.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1865163405195897930/posts/default/6119505310643548704'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1865163405195897930/posts/default/6119505310643548704'/><link rel='alternate' type='text/html' href='http://rhel5certs.blogspot.com/2012/01/creating-file-and-directory.html' title='Creating file and Directory'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1865163405195897930.post-5025596945544938713</id><published>2012-01-03T06:34:00.000-08:00</published><updated>2012-01-03T06:39:22.700-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="Red Hat"/><category scheme="http://www.blogger.com/atom/ns#" term="RHCE"/><category scheme="http://www.blogger.com/atom/ns#" term="RHEL"/><title type='text'>Common Command</title><content type='html'>&lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;;mso-bidi-font-family:&amp;quot;Courier New&amp;quot;&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;div style=&quot;mso-element:para-border-div;border:solid windowtext 1.0pt; mso-border-alt:solid windowtext .5pt;padding:1.0pt 4.0pt 1.0pt 4.0pt&quot;&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify;border:none;mso-border-alt:solid windowtext .5pt; padding:0in;mso-padding-alt:1.0pt 4.0pt 1.0pt 4.0pt&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;; mso-bidi-font-family:&amp;quot;Courier New&amp;quot;;color:#993300&quot;&gt;Common Command&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;/div&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;;mso-bidi-font-family:&amp;quot;Courier New&amp;quot;&quot;&gt;Some of the Common system command are as follow:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;;mso-bidi-font-family:&amp;quot;Courier New&amp;quot;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;;mso-bidi-font-family:&amp;quot;Courier New&amp;quot;&quot;&gt;1. &lt;b&gt;Date&lt;/b&gt; : to display date and time&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;;mso-bidi-font-family:&amp;quot;Courier New&amp;quot;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;;mso-bidi-font-family:&amp;quot;Courier New&amp;quot;&quot;&gt;2. &lt;st1:place st=&quot;on&quot;&gt;&lt;st1:state st=&quot;on&quot;&gt;&lt;b&gt;Cal&lt;/b&gt;&lt;/st1:state&gt;&lt;/st1:place&gt; : to display the calendar&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;;mso-bidi-font-family:&amp;quot;Courier New&amp;quot;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;;mso-bidi-font-family:&amp;quot;Courier New&amp;quot;&quot;&gt;3. &lt;st1:place st=&quot;on&quot;&gt;&lt;st1:state st=&quot;on&quot;&gt;Cal&lt;/st1:state&gt;&lt;/st1:place&gt; 11 2006 : display the calendar of Month 11 and year 2006&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;;mso-bidi-font-family:&amp;quot;Courier New&amp;quot;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;;mso-bidi-font-family:&amp;quot;Courier New&amp;quot;&quot;&gt;4. &lt;b&gt;Clear&lt;/b&gt; : To clear the screen&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;;mso-bidi-font-family:&amp;quot;Courier New&amp;quot;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;;mso-bidi-font-family:&amp;quot;Courier New&amp;quot;&quot;&gt;5. &lt;b&gt;ls&lt;/b&gt; : to list directory contents&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Book Antiqua&#39;, serif; font-size: 15px; &quot;&gt;color identification&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;;mso-bidi-font-family:&amp;quot;Courier New&amp;quot;&quot;&gt;blue : Directories&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;;mso-bidi-font-family:&amp;quot;Courier New&amp;quot;&quot;&gt;White : Files&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;;mso-bidi-font-family:&amp;quot;Courier New&amp;quot;&quot;&gt;Green : Executable files&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;;mso-bidi-font-family:&amp;quot;Courier New&amp;quot;&quot;&gt;Red ; Zip files, rpm, tar file&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;;mso-bidi-font-family:&amp;quot;Courier New&amp;quot;&quot;&gt;Different switches used with “ls” command&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;;mso-bidi-font-family:&amp;quot;Courier New&amp;quot;&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;;mso-bidi-font-family:&amp;quot;Courier New&amp;quot;&quot;&gt;ls –l or ll : used for long listing including file and directory permission&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;;mso-bidi-font-family:&amp;quot;Courier New&amp;quot;&quot;&gt;&lt;span style=&quot;mso-tab-count:1&quot;&gt;            &lt;/span&gt;(-) : file&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;;mso-bidi-font-family:&amp;quot;Courier New&amp;quot;&quot;&gt;&lt;span style=&quot;mso-tab-count:1&quot;&gt;            &lt;/span&gt;(d) : Directory&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;;mso-bidi-font-family:&amp;quot;Courier New&amp;quot;&quot;&gt;&lt;span style=&quot;mso-tab-count:1&quot;&gt;            &lt;/span&gt;(l) : Symbolic link&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;;mso-bidi-font-family:&amp;quot;Courier New&amp;quot;&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;;mso-bidi-font-family:&amp;quot;Courier New&amp;quot;&quot;&gt;ls –a&lt;span style=&quot;mso-spacerun:yes&quot;&gt;  &lt;/span&gt;: shows all hidden files and directory. Any file followed by (.) is hidden file&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;;mso-bidi-font-family:&amp;quot;Courier New&amp;quot;&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;;mso-bidi-font-family:&amp;quot;Courier New&amp;quot;&quot;&gt;ls –al : show all hidden files and directory with long listing or whole description&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;;mso-bidi-font-family:&amp;quot;Courier New&amp;quot;&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;;mso-bidi-font-family:&amp;quot;Courier New&amp;quot;&quot;&gt;ls –d : shows all the directory&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;;mso-bidi-font-family:&amp;quot;Courier New&amp;quot;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;;mso-bidi-font-family:&amp;quot;Courier New&amp;quot;&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;;mso-bidi-font-family:&amp;quot;Courier New&amp;quot;&quot;&gt;6. &lt;b&gt;pwd&lt;/b&gt;: Print&lt;span style=&quot;mso-spacerun:yes&quot;&gt;  &lt;/span&gt;working directory&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;;mso-bidi-font-family:&amp;quot;Courier New&amp;quot;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;;mso-bidi-font-family:&amp;quot;Courier New&amp;quot;&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;;mso-bidi-font-family:&amp;quot;Courier New&amp;quot;&quot;&gt;7. &lt;b&gt;who am I &lt;/b&gt;: display the information of current terminal&lt;span style=&quot;mso-spacerun:yes&quot;&gt;   &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;;mso-bidi-font-family:&amp;quot;Courier New&amp;quot;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;;mso-bidi-font-family:&amp;quot;Courier New&amp;quot;&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;;mso-bidi-font-family:&amp;quot;Courier New&amp;quot;&quot;&gt;8. &lt;b&gt;who&lt;/b&gt; : display all the terminal in a network&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;;mso-bidi-font-family:&amp;quot;Courier New&amp;quot;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;;mso-bidi-font-family:&amp;quot;Courier New&amp;quot;&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;;mso-bidi-font-family:&amp;quot;Courier New&amp;quot;&quot;&gt;9. &lt;b&gt;history&lt;/b&gt; : it shows all the command your have used.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;;mso-bidi-font-family:&amp;quot;Courier New&amp;quot;&quot;&gt;By default history stores last 1000 command which u have run. If u want to change &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;;mso-bidi-font-family:&amp;quot;Courier New&amp;quot;&quot;&gt;# vi /etc/profile&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;;mso-bidi-font-family:&amp;quot;Courier New&amp;quot;&quot;&gt;HIST SIZE =10&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;;mso-bidi-font-family:&amp;quot;Courier New&amp;quot;&quot;&gt;Save and exit&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;;mso-bidi-font-family:&amp;quot;Courier New&amp;quot;&quot;&gt;# history –c ( to clear all the previous command reside in history)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;;mso-bidi-font-family:&amp;quot;Courier New&amp;quot;&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://rhel5certs.blogspot.com/feeds/5025596945544938713/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rhel5certs.blogspot.com/2012/01/common-command.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1865163405195897930/posts/default/5025596945544938713'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1865163405195897930/posts/default/5025596945544938713'/><link rel='alternate' type='text/html' href='http://rhel5certs.blogspot.com/2012/01/common-command.html' title='Common Command'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1865163405195897930.post-8240835984783368778</id><published>2012-01-03T06:32:00.000-08:00</published><updated>2012-01-03T06:35:32.881-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="Red Hat"/><category scheme="http://www.blogger.com/atom/ns#" term="RHCE"/><category scheme="http://www.blogger.com/atom/ns#" term="RHEL"/><title type='text'>Mode of Login</title><content type='html'>&lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;;mso-bidi-font-family:&amp;quot;Courier New&amp;quot;&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;div style=&quot;mso-element:para-border-div;border:solid windowtext 1.0pt; mso-border-alt:solid windowtext .5pt;padding:0in 4.0pt 1.0pt 4.0pt&quot;&gt;  &lt;p class=&quot;MsoNormal&quot; align=&quot;center&quot; style=&quot;text-align:center;border:none; mso-border-alt:solid windowtext .5pt;padding:0in;mso-padding-alt:0in 4.0pt 1.0pt 4.0pt&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &#39;Book Antiqua&#39;, serif; color: rgb(153, 51, 0); &quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-large;&quot;&gt;Mode of Login&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 11pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;/div&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;;mso-bidi-font-family:&amp;quot;Courier New&amp;quot;&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-family: &#39;Book Antiqua&#39;, serif; &quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;b&gt;There are two mode of login&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 11pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;ol style=&quot;margin-top:0in&quot; start=&quot;1&quot; type=&quot;a&quot;&gt;  &lt;ol style=&quot;margin-top:0in&quot; start=&quot;1&quot; type=&quot;1&quot;&gt;   &lt;li class=&quot;MsoNormal&quot; style=&quot;text-align:justify;mso-list:l0 level2 lfo1;       tab-stops:list 1.0in&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;;       mso-bidi-font-family:&amp;quot;Courier New&amp;quot;&quot;&gt;Text Mode&lt;span style=&quot;mso-spacerun:yes&quot;&gt;  &lt;/span&gt;(Alt+ctrl+F1)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;   &lt;li class=&quot;MsoNormal&quot; style=&quot;text-align:justify;mso-list:l0 level2 lfo1;       tab-stops:list 1.0in&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;;       mso-bidi-font-family:&amp;quot;Courier New&amp;quot;&quot;&gt;Graphical Mode (Alt+Ctrl+F7)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;  &lt;/ol&gt; &lt;/ol&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-family: &#39;Book Antiqua&#39;, serif; &quot;&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;In case of Text Mode&lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 11pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;;mso-bidi-font-family:&amp;quot;Courier New&amp;quot;&quot;&gt;Station2 Login : root&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;;mso-bidi-font-family:&amp;quot;Courier New&amp;quot;&quot;&gt;Password : redhat&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;;mso-bidi-font-family:&amp;quot;Courier New&amp;quot;&quot;&gt;[root@station2~]#&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-family: &#39;Book Antiqua&#39;, serif; &quot;&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;to switch from one text mode to another&lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 11pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;;mso-bidi-font-family:&amp;quot;Courier New&amp;quot;&quot;&gt;Alt+Ctrl+F1 to Alt+Ctrl+F6&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-family: &#39;Book Antiqua&#39;, serif; &quot;&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;In case of Graphical Mode&lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 11pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;;mso-bidi-font-family:&amp;quot;Courier New&amp;quot;&quot;&gt;Ctrl+Alt+F7&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;;mso-bidi-font-family:&amp;quot;Courier New&amp;quot;&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://rhel5certs.blogspot.com/feeds/8240835984783368778/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rhel5certs.blogspot.com/2012/01/mode-of-login-there-are-two-mode-of.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1865163405195897930/posts/default/8240835984783368778'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1865163405195897930/posts/default/8240835984783368778'/><link rel='alternate' type='text/html' href='http://rhel5certs.blogspot.com/2012/01/mode-of-login-there-are-two-mode-of.html' title='Mode of Login'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1865163405195897930.post-1141618778826525828</id><published>2012-01-03T06:30:00.000-08:00</published><updated>2012-01-03T06:31:34.528-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="Red Hat"/><category scheme="http://www.blogger.com/atom/ns#" term="RHCE"/><category scheme="http://www.blogger.com/atom/ns#" term="RHEL"/><title type='text'>Introduction to Linux</title><content type='html'>&lt;div style=&quot;mso-element:para-border-div;border:solid windowtext 1.0pt; mso-border-alt:solid windowtext .5pt;padding:1.0pt 4.0pt 1.0pt 4.0pt&quot;&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify;border:none;mso-border-alt:solid windowtext .5pt; padding:0in;mso-padding-alt:1.0pt 4.0pt 1.0pt 4.0pt&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal&quot;&gt;&lt;span style=&quot;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;;mso-bidi-font-family: &amp;quot;Courier New&amp;quot;;color:red&quot;&gt;Introduction:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;/div&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;;mso-bidi-font-family:&amp;quot;Courier New&amp;quot;&quot;&gt;Unix is the first Operating system in the world, developed by Kem Thompson and Dennis Ritchie in 1969 at Bell Lab by AT&amp;amp;T Company&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;;mso-bidi-font-family:&amp;quot;Courier New&amp;quot;&quot;&gt;&lt;span style=&quot;mso-tab-count:1&quot;&gt;            &lt;/span&gt;IBM&lt;span style=&quot;mso-tab-count:1&quot;&gt;     &lt;/span&gt;:&lt;span style=&quot;mso-tab-count:1&quot;&gt;           &lt;/span&gt;AIX&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;;mso-bidi-font-family:&amp;quot;Courier New&amp;quot;&quot;&gt;&lt;span style=&quot;mso-tab-count:1&quot;&gt;            &lt;/span&gt;SGI&lt;span style=&quot;mso-tab-count:1&quot;&gt;      &lt;/span&gt;:&lt;span style=&quot;mso-tab-count:1&quot;&gt;           &lt;/span&gt;IRIX&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;;mso-bidi-font-family:&amp;quot;Courier New&amp;quot;&quot;&gt;&lt;span style=&quot;mso-tab-count:1&quot;&gt;            &lt;/span&gt;HP&lt;span style=&quot;mso-tab-count:1&quot;&gt;       &lt;/span&gt;:&lt;span style=&quot;mso-tab-count:1&quot;&gt;           &lt;/span&gt;HP&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;;mso-bidi-font-family:&amp;quot;Courier New&amp;quot;&quot;&gt;&lt;span style=&quot;mso-tab-count:1&quot;&gt;            &lt;/span&gt;Sun&lt;span style=&quot;mso-tab-count:1&quot;&gt;      &lt;/span&gt;:&lt;span style=&quot;mso-tab-count:1&quot;&gt;           &lt;/span&gt;Solaris&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;;mso-bidi-font-family:&amp;quot;Courier New&amp;quot;&quot;&gt;FSF:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;;mso-bidi-font-family:&amp;quot;Courier New&amp;quot;&quot;&gt;&lt;span style=&quot;mso-tab-count:1&quot;&gt;            &lt;/span&gt;Free software foundation organization, they start a project by name GNU. The mail aim of this project is to develop such a O.S&lt;span style=&quot;mso-spacerun:yes&quot;&gt;  &lt;/span&gt;that can run on any platform.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;;mso-bidi-font-family:&amp;quot;Courier New&amp;quot;&quot;&gt;In 1991, a student Linus Torvalds developed a kernel named Linus’s Kernel plus GNU application called Linux O.S&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;;mso-bidi-font-family:&amp;quot;Courier New&amp;quot;&quot;&gt;Linux is a open source technology.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;;mso-bidi-font-family:&amp;quot;Courier New&amp;quot;&quot;&gt;Different companies that provide Linux in Market are Redhat, SuSe, Mandrake, Turbo, Knoppix etc.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;;mso-bidi-font-family:&amp;quot;Courier New&amp;quot;&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;div style=&quot;mso-element:para-border-div;border:solid windowtext 1.0pt; mso-border-alt:solid windowtext .5pt;padding:1.0pt 4.0pt 1.0pt 4.0pt&quot;&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify;border:none;mso-border-alt:solid windowtext .5pt; padding:0in;mso-padding-alt:1.0pt 4.0pt 1.0pt 4.0pt&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal&quot;&gt;&lt;span style=&quot;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;;mso-bidi-font-family: &amp;quot;Courier New&amp;quot;;color:#993300&quot;&gt;Features and Advantage:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;/div&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify&quot;&gt;&lt;span style=&quot;font-size:11.0pt; font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;;mso-bidi-font-family:&amp;quot;Courier New&amp;quot;; color:#993300&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Book Antiqua&#39;, serif; font-size: 15px; color: rgb(153, 51, 0); &quot;&gt;Features:&lt;/span&gt;&lt;/p&gt;  &lt;ol style=&quot;margin-top:0in&quot; start=&quot;1&quot; type=&quot;a&quot;&gt;  &lt;li class=&quot;MsoNormal&quot; style=&quot;text-align:justify;mso-list:l0 level1 lfo1;      tab-stops:list .5in&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;;      mso-bidi-font-family:&amp;quot;Courier New&amp;quot;&quot;&gt;Linux is the fastest Operating system      in the world. It runs 2 to 3 times fast than windows O.S&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;  &lt;li class=&quot;MsoNormal&quot; style=&quot;text-align:justify;mso-list:l0 level1 lfo1;      tab-stops:list .5in&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;;      mso-bidi-font-family:&amp;quot;Courier New&amp;quot;&quot;&gt;Linux is the very secured O.S because      there is no&lt;span style=&quot;mso-spacerun:yes&quot;&gt;  &lt;/span&gt;any problem of virus.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;  &lt;li class=&quot;MsoNormal&quot; style=&quot;text-align:justify;mso-list:l0 level1 lfo1;      tab-stops:list .5in&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;;      mso-bidi-font-family:&amp;quot;Courier New&amp;quot;&quot;&gt;Linux file format&lt;span style=&quot;mso-spacerun:yes&quot;&gt;  &lt;/span&gt;is text format and windows file format      is binary format.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;  &lt;li class=&quot;MsoNormal&quot; style=&quot;text-align:justify;mso-list:l0 level1 lfo1;      tab-stops:list .5in&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;;      mso-bidi-font-family:&amp;quot;Courier New&amp;quot;&quot;&gt;Linux is very reliable O.S because      kernel of linux is very stable as compare to windows kernel not crashed      easily.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;  &lt;li class=&quot;MsoNormal&quot; style=&quot;text-align:justify;mso-list:l0 level1 lfo1;      tab-stops:list .5in&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;;      mso-bidi-font-family:&amp;quot;Courier New&amp;quot;&quot;&gt;Kernel of linux is very small, it can      be stored in floppy&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;  &lt;li class=&quot;MsoNormal&quot; style=&quot;text-align:justify;mso-list:l0 level1 lfo1;      tab-stops:list .5in&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;;      mso-bidi-font-family:&amp;quot;Courier New&amp;quot;&quot;&gt;Linux uses the x-Window system which      is advanced network windowing system. Using this system we can display      output of any workstation monitor attached in the network&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt; &lt;/ol&gt;  &lt;div style=&quot;mso-element:para-border-div;border:solid windowtext 1.0pt; mso-border-alt:solid windowtext .5pt;padding:1.0pt 4.0pt 1.0pt 4.0pt; margin-left:.25in;margin-right:0in&quot;&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align:justify;border:none;mso-border-alt:solid windowtext .5pt; padding:0in;mso-padding-alt:1.0pt 4.0pt 1.0pt 4.0pt&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;; mso-bidi-font-family:&amp;quot;Courier New&amp;quot;;color:#993300&quot;&gt;Advantages of Linux:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;/div&gt;  &lt;ol style=&quot;margin-top:0in&quot; start=&quot;1&quot; type=&quot;a&quot;&gt;  &lt;li class=&quot;MsoNormal&quot; style=&quot;text-align:justify;mso-list:l1 level1 lfo2;      tab-stops:list .5in&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;;      mso-bidi-font-family:&amp;quot;Courier New&amp;quot;&quot;&gt;Virus Proof&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;  &lt;li class=&quot;MsoNormal&quot; style=&quot;text-align:justify;mso-list:l1 level1 lfo2;      tab-stops:list .5in&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;;      mso-bidi-font-family:&amp;quot;Courier New&amp;quot;&quot;&gt;Crash Proof&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;  &lt;li class=&quot;MsoNormal&quot; style=&quot;text-align:justify;mso-list:l1 level1 lfo2;      tab-stops:list .5in&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;;      mso-bidi-font-family:&amp;quot;Courier New&amp;quot;&quot;&gt;Economical&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;  &lt;li class=&quot;MsoNormal&quot; style=&quot;text-align:justify;mso-list:l1 level1 lfo2;      tab-stops:list .5in&quot;&gt;&lt;span style=&quot;font-size:11.0pt;font-family:&amp;quot;Book Antiqua&amp;quot;,&amp;quot;serif&amp;quot;;      mso-bidi-font-family:&amp;quot;Courier New&amp;quot;&quot;&gt;Multiuser, multi desktop and multi      tasking&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;</content><link rel='replies' type='application/atom+xml' href='http://rhel5certs.blogspot.com/feeds/1141618778826525828/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rhel5certs.blogspot.com/2012/01/introduction-to-linux.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1865163405195897930/posts/default/1141618778826525828'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1865163405195897930/posts/default/1141618778826525828'/><link rel='alternate' type='text/html' href='http://rhel5certs.blogspot.com/2012/01/introduction-to-linux.html' title='Introduction to Linux'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1865163405195897930.post-7194907787080083855</id><published>2011-04-27T04:54:00.000-07:00</published><updated>2011-04-27T05:18:08.420-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="database"/><category scheme="http://www.blogger.com/atom/ns#" term="MSSQL"/><category scheme="http://www.blogger.com/atom/ns#" term="MYSQL"/><title type='text'>Convert Microsoft SQL Server databases to MySQL databases</title><content type='html'>&lt;table&gt;&lt;tr&gt;&lt;td&gt;&lt;pre&gt;&#39; this program converts Microsoft SQL Server databases to MySQL databases&lt;br /&gt;&lt;br /&gt;&#39; (c) 2001-2005 Michael Kofler&lt;br /&gt;&#39;     http://www.kofler.cc/mysql&lt;br /&gt;&#39;     mssql2mysql-at-kofler.cc&lt;br /&gt;&lt;br /&gt;&#39; LICENSE: GPL (Gnu Public License)&lt;br /&gt;&#39; VERSION: 0.12 (Mar 31st 2005)&lt;br /&gt;&#39;&lt;br /&gt;&#39; HISTORY:&lt;br /&gt;&#39; 0.01 (Jan. 18 2001): initial version&lt;br /&gt;&#39; 0.02 (June 23 2001): better handling of decimal numbers&lt;br /&gt;&#39;   by &lt;dave.whitla-at-ocean.net.au&gt;&lt;br /&gt;&#39; 0.03 (August 7 2001): compatibility with Office 97&lt;br /&gt;&#39;   by &lt;davemeaker-at-angelshade.com&gt;&lt;br /&gt;&#39;   (uncomment Replace function at the end of the script!)&lt;br /&gt;&#39; 0.04 (September 30 2001): slightly faster (ideas by&lt;br /&gt;&#39;    janivar-at-acos.no)&lt;br /&gt;&#39; 0.05 (April 8 2002): compatible with MyODBC 3.51&lt;br /&gt;&#39;    (set variable MyODBCVersion accordingly!)&lt;br /&gt;&#39;    thanks to Silvio Iaccarino&lt;br /&gt;&#39; 0.05a (October 17 2002): support for BIGINT&lt;br /&gt;&#39;    thanks to Ugo Gioia&lt;br /&gt;&#39; 0.06 (December 18 2002): support for adBinary (thanks to Roberto Alicata)&lt;br /&gt;&#39;    changed handling of TIMESTAMP (Michael Kofler):&lt;br /&gt;&#39;      TIMESTAMP (MSSQL) --&amp;gt; TINYBLOB (MySQL)&lt;br /&gt;&#39; 0.07 (Jan. 27th 2003): support no-standard ports for MySQL&lt;br /&gt;&#39; 0.08 (Apr. 30th 2003): Boolean now converts to 1/0 instead of -1/0&lt;br /&gt;&#39;      for True/False (Michael Kofler)&lt;br /&gt;&#39; 0.09 (Aug. 19th 2003): better GUID conversion (Hermann Wiesner)&lt;br /&gt;&#39; 0.10 (Nov. 12th 2003): better handling of table and field names&lt;br /&gt;&#39;      in function MySQLName (Carlo)&lt;br /&gt;&#39; 0.11 (Mar. 2nd 2005): needs MySQL 4.1 or higher!&lt;br /&gt;&#39;      new functions: - supports myisam and innodb tables&lt;br /&gt;&#39;                     - per default all text columns are now created with character&lt;br /&gt;&#39;                       set utf8and collation utf8_general_ci; you may choose another&lt;br /&gt;&#39;                       charset + collation (constants CHARSET and COLLATION)&lt;br /&gt;&#39; 0.12 (Mar. 31st 2005): ignores hypothetical indexes (thanks to Brian K. Andersen)&lt;br /&gt;&lt;br /&gt;&#39; USEAGE:&lt;br /&gt;&#39; 1) copy this code into a new VBA 6 module&lt;br /&gt;&#39;    (i.e. start Excel 2000 or Word 2000 or another&lt;br /&gt;&#39;     program with VBA editor, hit Alt+F11, execute&lt;br /&gt;&#39;     Insert|Module, insert code)&lt;br /&gt;&#39;    OR copy code into an empty form of a new VB6 project&lt;br /&gt;&#39;&lt;br /&gt;&#39; 2) change the constants at the beginning of the code,&lt;br /&gt;&#39; 3) hit F5 and execute Main()&lt;br /&gt;&#39;    the program now connects to Microsoft SQL Server&lt;br /&gt;&#39;    and converts the database; the resulting SQL commands&lt;br /&gt;&#39;    are either saved in an ASCII file or executed immediately&lt;br /&gt;&lt;br /&gt;&#39; FUNCTION:&lt;br /&gt;&#39; converts both schema (tables and indices) and&lt;br /&gt;&#39; data (numbers, strings, dates etc.)&lt;br /&gt;&#39; handles table and column names which are not legal in MySQL (see MySQLName())&lt;br /&gt;&lt;br /&gt;&#39; LIMITATIONS:&lt;br /&gt;&#39; no foreign keys&lt;br /&gt;&#39; no SPs, no triggers (MSSQL syntax incompatible to MySQL)&lt;br /&gt;&#39; no views&lt;br /&gt;&#39; no user defined data types (not yet supported by MySQL)&lt;br /&gt;&#39; AUTO_INCREMENTs: MySQL does not support tables with more&lt;br /&gt;&#39;   than one AUTO_INCREMENT column; the AUTO_INCREMENT column&lt;br /&gt;&#39;   must also be a key column; the converter does not check this,&lt;br /&gt;&#39;   so use MSSQL to add an index to the AUTO_INCREMENT column&lt;br /&gt;&#39;   before starting the conversion&lt;br /&gt;&#39; no privileges/access infos (the idea of logins/users in M$ SQL Server&lt;br /&gt;&#39;     is incompatible with user/group/database/table/column&lt;br /&gt;&#39;     privileges of MySQL)&lt;br /&gt;&#39; cannot handle ADO type adFileTime yet&lt;br /&gt;&#39; GUIDs not tested&lt;br /&gt;&#39; fairly slow and no visible feedback during conversion process&lt;br /&gt;&#39;   for example, it takes 80 seconds to convert Northwind (2.8 MB data)&lt;br /&gt;&#39;   with M$SQL running on PII 350 (CPU=0) and this script running in&lt;br /&gt;&#39;   Excel 2000 on PII 400 (CPU=100); unfortunately, compiling the program&lt;br /&gt;&#39;   with VB6 does not make it any faster&lt;br /&gt;&#39;   tip: test with MAX_RECORDS = 10 first to see if it works for you at all&lt;br /&gt;&lt;br /&gt;&#39; INTERNALS:&lt;br /&gt;&#39; method:   read database schema using DMO&lt;br /&gt;&#39;           read data using a ADO recordset&lt;br /&gt;&lt;br /&gt;&#39; NECESSARY LIBRARIES:&lt;br /&gt;&#39;   ADODB          (tested with 2.8, should also run with all versions &amp;gt;=2.1)&lt;br /&gt;&#39;   Connector/ODBC (testet with 3.51.11, should also run with older versions;&lt;br /&gt;&#39;                   if you use MySQL server &amp;gt;= 4.1,&lt;br /&gt;&#39;                   you MUST use Connector/ODBC &amp;gt;= 3.51.10!!!)&lt;br /&gt;&#39;   SQLDMO (tested with the version provided by M$ SQL Server 2000)&lt;br /&gt;&#39;   SCRIPTING&lt;br /&gt;&lt;br /&gt;Option Explicit&lt;br /&gt;Option Compare Text&lt;br /&gt;&lt;br /&gt;&#39; -------------- change these constants before use!&lt;br /&gt;&lt;br /&gt;                                &#39;M$ SQL Server&lt;br /&gt;Const MSSQL_SECURE_LOGIN = True   &#39;login type (True for NT security)&lt;br /&gt;Const MSSQL_LOGIN_NAME = &quot;&quot;       &#39;login name (for NT security use &quot;&quot; here)&lt;br /&gt;Const MSSQL_PASSWORD = &quot;&quot;         &#39;password   (for NT security use &quot;&quot; here)&lt;br /&gt;Const MSSQL_HOST = &quot;(local)&quot;      &#39;hostname of M$ SQL Server; if localhost: use &quot;(local)&quot;&lt;br /&gt;Const MSSQL_DB_NAME = &quot;Northwind&quot; &#39;database name&lt;br /&gt;&lt;br /&gt;Const OUTPUT_TO_FILE = 0          &#39;1 --&amp;gt; write file (latin1 encoding);&lt;br /&gt;                                &#39;0 --&amp;gt; connect to MySQL, execute SQL commands directly&lt;br /&gt;                              &lt;br /&gt;                                &#39;output file (only needed if OUTPUT_TO_FILE=1)&lt;br /&gt;Const OUTPUT_FILENAME = &quot;c:\export.sql&quot;&lt;br /&gt;&lt;br /&gt;                                &#39;connect to MySQL (only needed if OUTPUT_TO_FILE=0)&lt;br /&gt;Const MYSQL_USER_NAME = &quot;root&quot;    &#39;login name&lt;br /&gt;Const MYSQL_PASSWORD = &quot;uranus&quot;   &#39;password&lt;br /&gt;Const MYSQL_HOST = &quot;192.168.80.128&quot; &#39;if localhost: use &quot;localhost&quot;&lt;br /&gt;Const MYSQL_PORT = 3306           &#39;change if you use another port&lt;br /&gt;Const MyODBCVersion = &quot;MySQL ODBC 3.51 Driver&quot;&lt;br /&gt;                                &#39;for MyODBC 2.51.* use &quot;MySQL&quot;&lt;br /&gt;&lt;br /&gt;Const NEW_DB_NAME = &quot;&quot;            &#39;name of new MySQL database (&quot;&quot; if same as M$SQL db name)&lt;br /&gt;                                &#39;conversion options&lt;br /&gt;Const DROP_DATABASE = True        &#39;begin with DROP dbname?&lt;br /&gt;Const MAX_RECORDS = 0             &#39;max. nr of records per table (0 for all records, n for testing purposes)&lt;br /&gt;Const VARCHAR_MAX = 255           &#39;max. nr of characters in VARCHAR&lt;br /&gt;                                &#39;255 for MySQL &amp;lt;=5.0.2&lt;br /&gt;                                &#39;ca. 32000 for MySQL &amp;gt;= 5.0.3 (depends on char. set, max. 65535 bytes)&lt;br /&gt;Const TABLE_ENGINE = &quot;InnoDB&quot;     &#39;MyISAM or InnoDB&lt;br /&gt;Const CHARSET = &quot;utf8&quot;            &#39;character set for all text columns&lt;br /&gt;Const COLLATION = &quot;&quot;              &#39;collation; leave empty if you want to use the default collation for&lt;br /&gt;                                &#39;the specified character set&lt;br /&gt;&lt;br /&gt;&#39; ----------------------------- don&#39;t change below here (unless you know what you are doing)&lt;br /&gt;&lt;br /&gt;Const SQLDMOIndex_DRIPrimaryKey = 2048&lt;br /&gt;Const SQLDMOIndex_Unique = 2&lt;br /&gt;Const adEmpty = 0&lt;br /&gt;Const adTinyInt = 16&lt;br /&gt;Const adSmallInt = 2&lt;br /&gt;Const adInteger = 3&lt;br /&gt;Const adBigInt = 20&lt;br /&gt;Const adUnsignedTinyInt = 17&lt;br /&gt;Const adUnsignedSmallInt = 18&lt;br /&gt;Const adUnsignedInt = 19&lt;br /&gt;Const adUnsignedBigInt = 21&lt;br /&gt;Const adSingle = 4&lt;br /&gt;Const adDouble = 5&lt;br /&gt;Const adCurrency = 6&lt;br /&gt;Const adDecimal = 14&lt;br /&gt;Const adNumeric = 131&lt;br /&gt;Const adBoolean = 11&lt;br /&gt;Const adError = 10&lt;br /&gt;Const adUserDefined = 132&lt;br /&gt;Const adVariant = 12&lt;br /&gt;Const adIDispatch = 9&lt;br /&gt;Const adIUnknown = 13&lt;br /&gt;Const adGUID = 72&lt;br /&gt;Const adDate = 7&lt;br /&gt;Const adDBDate = 133&lt;br /&gt;Const adDBTime = 134&lt;br /&gt;Const adDBTimeStamp = 135&lt;br /&gt;Const adBSTR = 8&lt;br /&gt;Const adChar = 129&lt;br /&gt;Const adVarChar = 200&lt;br /&gt;Const adLongVarChar = 201&lt;br /&gt;Const adWChar = 130&lt;br /&gt;Const adVarWChar = 202&lt;br /&gt;Const adLongVarWChar = 203&lt;br /&gt;Const adBinary = 128&lt;br /&gt;Const adVarBinary = 204&lt;br /&gt;Const adLongVarBinary = 205&lt;br /&gt;Const adChapter = 136&lt;br /&gt;Const adFileTime = 64&lt;br /&gt;Const adPropVariant = 138&lt;br /&gt;Const adVarNumeric = 139&lt;br /&gt;Const adArray = &amp;amp;H2000&lt;br /&gt;&lt;br /&gt;Public dmoApplic &#39;As New SQLDMO.Application  &#39;SQLDMO Application object&lt;br /&gt;Public dmoSrv    &#39;As New SQLDMO.SQLServer    &#39;SQLDMO Server object&lt;br /&gt;Public mssqlConn &#39;As New Connection          &#39;ADO Connection to M$ SQL Server&lt;br /&gt;Public mysqlConn &#39;As New Connection          &#39;ADO Connection to MySQL&lt;br /&gt;Public fso       &#39;As Scripting.FileSystemObject&lt;br /&gt;Public fileout   &#39;AS FSO.TextStream&lt;br /&gt;&lt;br /&gt;Public Sub Main()&lt;br /&gt;Set dmoApplic = CreateObject(&quot;SQLDMO.Application&quot;)&lt;br /&gt;Set dmoSrv = CreateObject(&quot;SQLDMO.SQLServer&quot;)&lt;br /&gt;Set mssqlConn = CreateObject(&quot;ADODB.Connection&quot;)&lt;br /&gt;Set mysqlConn = CreateObject(&quot;ADODB.Connection&quot;)&lt;br /&gt;Set fso = CreateObject(&quot;Scripting.FileSystemObject&quot;)&lt;br /&gt;ConnectToDatabases&lt;br /&gt;ConvertDatabase&lt;br /&gt;MsgBox &quot;done&quot;&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;&#39; connect to M$ SQL Server and MySQL&lt;br /&gt;Private Sub ConnectToDatabases()&lt;br /&gt;dmoSrv.LoginTimeout = 10&lt;br /&gt;On Error Resume Next&lt;br /&gt;&lt;br /&gt;&#39; DMO connection to M$ SQL Server&lt;br /&gt;If MSSQL_SECURE_LOGIN Then&lt;br /&gt;  dmoSrv.LoginSecure = True&lt;br /&gt;  dmoSrv.Connect MSSQL_HOST&lt;br /&gt;Else&lt;br /&gt;  dmoSrv.LoginSecure = False&lt;br /&gt;  dmoSrv.Connect MSSQL_HOST, MSSQL_LOGIN_NAME, MSSQL_PASSWORD&lt;br /&gt;End If&lt;br /&gt;If Err Then&lt;br /&gt;  MsgBox &quot;Sorry, cannot connect to M$ SQL Server. &quot; &amp;amp; _&lt;br /&gt;    &quot;Please edit the MSSQL constats at the beginning &quot; &amp;amp; _&lt;br /&gt;    &quot;of the code.&quot; &amp;amp; vbCrLf &amp;amp; vbCrLf &amp;amp; Error&lt;br /&gt;  End&lt;br /&gt;End If&lt;br /&gt;&lt;br /&gt;&#39; ADO connection to M$ SQL Server&lt;br /&gt;Dim tmpCStr$&lt;br /&gt;tmpCStr = _&lt;br /&gt;  &quot;Provider=SQLOLEDB;&quot; &amp;amp; _&lt;br /&gt;  &quot;Data Source=&quot; &amp;amp; MSSQL_HOST &amp;amp; &quot;;&quot; &amp;amp; _&lt;br /&gt;  &quot;Initial Catalog=&quot; &amp;amp; MSSQL_DB_NAME &amp;amp; &quot;;&quot;&lt;br /&gt;If MSSQL_SECURE_LOGIN Then&lt;br /&gt;  tmpCStr = tmpCStr &amp;amp; &quot;Integrated Security=SSPI&quot;&lt;br /&gt;Else&lt;br /&gt;  tmpCStr = tmpCStr &amp;amp; _&lt;br /&gt;    &quot;User ID=&quot; &amp;amp; MSSQL_LOGIN_NAME &amp;amp; &quot;;&quot; &amp;amp; _&lt;br /&gt;    &quot;Password=&quot; &amp;amp; MSSQL_PASSWORD&lt;br /&gt;End If&lt;br /&gt;mssqlConn.ConnectionString = tmpCStr&lt;br /&gt;mssqlConn.Open&lt;br /&gt;If Err Then&lt;br /&gt;  MsgBox &quot;Sorry, cannot connect to M$ SQL Server. &quot; &amp;amp; _&lt;br /&gt;    &quot;Please edit the MSSQL constats at the beginning &quot; &amp;amp; _&lt;br /&gt;    &quot;of the code.&quot; &amp;amp; vbCrLf &amp;amp; vbCrLf &amp;amp; Error&lt;br /&gt;  End&lt;br /&gt;End If&lt;br /&gt;&lt;br /&gt;&#39; ADO connection to MySQL or open output file&lt;br /&gt;If (OUTPUT_TO_FILE = 0) Then&lt;br /&gt;  mysqlConn.ConnectionString = _&lt;br /&gt;    &quot;Provider=MSDASQL;&quot; &amp;amp; _&lt;br /&gt;    &quot;Driver=&quot; &amp;amp; MyODBCVersion &amp;amp; &quot;;&quot; &amp;amp; _&lt;br /&gt;    &quot;Server=&quot; &amp;amp; MYSQL_HOST &amp;amp; &quot;;&quot; &amp;amp; _&lt;br /&gt;    &quot;UID=&quot; &amp;amp; MYSQL_USER_NAME &amp;amp; &quot;;&quot; &amp;amp; _&lt;br /&gt;    &quot;PWD=&quot; &amp;amp; MYSQL_PASSWORD &amp;amp; &quot;;&quot; &amp;amp; _&lt;br /&gt;    &quot;Port=&quot; &amp;amp; MYSQL_PORT&lt;br /&gt;  mysqlConn.Open&lt;br /&gt;  If Err Then&lt;br /&gt;    MsgBox &quot;Sorry, cannot connect to MySQL. &quot; &amp;amp; _&lt;br /&gt;      &quot;Please edit the MYSQL constats at the beginning &quot; &amp;amp; _&lt;br /&gt;      &quot;of the code.&quot; &amp;amp; vbCrLf &amp;amp; vbCrLf &amp;amp; Error&lt;br /&gt;    End&lt;br /&gt;  End If&lt;br /&gt;Else&lt;br /&gt;  Set fileout = fso.CreateTextFile(OUTPUT_FILENAME, Overwrite:=True)&lt;br /&gt;End If&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;Private Sub ConvertDatabase()&lt;br /&gt;&#39; copy database schema&lt;br /&gt;Dim dmoDB &#39;As SQLDMO.Database&lt;br /&gt;Set dmoDB = dmoSrv.Databases(MSSQL_DB_NAME)&lt;br /&gt;DBDefinition dmoDB&lt;br /&gt;&#39; copy data&lt;br /&gt;CopyDB dmoDB&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;&#39; build SQL code to define one column&lt;br /&gt;&#39; ColDefinition$(col As SQLDMO.Column)&lt;br /&gt;Function ColDefinition$(col)&lt;br /&gt;Dim cdef$&lt;br /&gt;cdef = MySQLName(col.Name) &amp;amp; &quot; &quot; &amp;amp; DataType(col)&lt;br /&gt;If col.Default &amp;lt;&amp;gt; &quot;&quot; Then&lt;br /&gt;  cdef = cdef &amp;amp; &quot; DEFAULT &quot; &amp;amp; col.Default&lt;br /&gt;End If&lt;br /&gt;If col.AllowNulls Then&lt;br /&gt;  cdef = cdef &amp;amp; &quot; NULL&quot;&lt;br /&gt;Else&lt;br /&gt;  cdef = cdef &amp;amp; &quot; NOT NULL&quot;&lt;br /&gt;End If&lt;br /&gt;If col.Identity Then&lt;br /&gt;  cdef = cdef &amp;amp; &quot; AUTO_INCREMENT&quot;&lt;br /&gt;End If&lt;br /&gt;ColDefinition = cdef&lt;br /&gt;End Function&lt;br /&gt;&lt;br /&gt;&#39; datatype transition M$ SQL Server --&amp;gt; MySQL&lt;br /&gt;&#39; DataType$(col As SQLDMO.Column)&lt;br /&gt;Function DataType$(col)&lt;br /&gt;Dim oldtype$, length&amp;amp;, precision&amp;amp;, scal&amp;amp;&lt;br /&gt;Dim newtype$&lt;br /&gt;&lt;br /&gt;oldtype = col.PhysicalDatatype&lt;br /&gt;length = col.length&lt;br /&gt;precision = col.NumericPrecision&lt;br /&gt;scal = col.NumericScale&lt;br /&gt;If LCase(oldtype) = &quot;money&quot; Then&lt;br /&gt;  precision = 19&lt;br /&gt;  scal = 4&lt;br /&gt;ElseIf LCase(oldtype) = &quot;smallmoney&quot; Then&lt;br /&gt;  precision = 10&lt;br /&gt;  scal = 4&lt;br /&gt;End If&lt;br /&gt;&lt;br /&gt;Select Case LCase(oldtype)&lt;br /&gt;&lt;br /&gt;&#39; integers&lt;br /&gt;Case &quot;bit&quot;, &quot;tinyint&quot;&lt;br /&gt;  newtype = &quot;TINYINT&quot;&lt;br /&gt;Case &quot;smallint&quot;&lt;br /&gt;  newtype = &quot;SMALLINT&quot;&lt;br /&gt;Case &quot;int&quot;&lt;br /&gt;  newtype = &quot;INT&quot;&lt;br /&gt;Case &quot;bigint&quot;&lt;br /&gt;  newtype = &quot;BIGINT&quot;&lt;br /&gt;&lt;br /&gt;&#39; floating points&lt;br /&gt;Case &quot;float&quot;&lt;br /&gt;  newtype = &quot;DOUBLE&quot;&lt;br /&gt;Case &quot;real&quot;&lt;br /&gt;  newtype = &quot;FLOAT&quot;&lt;br /&gt;Case &quot;decimal&quot;, &quot;numeric&quot;, &quot;money&quot;, &quot;smallmoney&quot;&lt;br /&gt;  newtype = &quot;DECIMAL(&quot; &amp;amp; precision &amp;amp; &quot;, &quot; &amp;amp; scal &amp;amp; &quot;)&quot;&lt;br /&gt;&lt;br /&gt;&#39; strings&lt;br /&gt;Case &quot;char&quot;, &quot;nchar&quot;&lt;br /&gt;  If length &amp;lt; 255 Then&lt;br /&gt;    newtype = &quot;CHAR(&quot; &amp;amp; length &amp;amp; &quot;)&quot;&lt;br /&gt;  Else&lt;br /&gt;    newtype = &quot;TEXT&quot;&lt;br /&gt;  End If&lt;br /&gt;Case &quot;varchar&quot;, &quot;nvarchar&quot;&lt;br /&gt;  If length &amp;lt; VARCHAR_MAX Then&lt;br /&gt;    newtype = &quot;VARCHAR(&quot; &amp;amp; length &amp;amp; &quot;)&quot;&lt;br /&gt;  Else&lt;br /&gt;    newtype = &quot;TEXT&quot;&lt;br /&gt;  End If&lt;br /&gt;Case &quot;text&quot;, &quot;ntext&quot;&lt;br /&gt;  newtype = &quot;LONGTEXT&quot;&lt;br /&gt;&lt;br /&gt;&#39; date/time&lt;br /&gt;Case &quot;datetime&quot;, &quot;smalldatetime&quot;&lt;br /&gt;  newtype = &quot;DATETIME&quot;&lt;br /&gt;Case &quot;timestamp&quot;&lt;br /&gt;  newtype = &quot;TINYBLOB&quot;&lt;br /&gt;&lt;br /&gt;&#39; binary and other&lt;br /&gt;Case &quot;uniqueidentifier&quot;&lt;br /&gt;  newtype = &quot;TINYBLOB&quot;&lt;br /&gt;Case &quot;binary&quot;, &quot;varbinary&quot;&lt;br /&gt;  newtype = &quot;BLOB&quot;&lt;br /&gt;Case &quot;image&quot;&lt;br /&gt;  newtype = &quot;LONGBLOB&quot;&lt;br /&gt;&lt;br /&gt;Case Else&lt;br /&gt;  &#39; unknown data type, not supported&lt;br /&gt;  Stop&lt;br /&gt;End Select&lt;br /&gt;&lt;br /&gt;DataType = newtype&lt;br /&gt;End Function&lt;br /&gt;&lt;br /&gt;&#39; IndexDefinition$(tbl As SQLDMO.Table, idx As SQLDMO.Index)&lt;br /&gt;Function IndexDefinition$(tbl, idx)&lt;br /&gt;Dim i&amp;amp;&lt;br /&gt;Dim tmp$&lt;br /&gt;Dim col &#39;As SQLDMO.Column&lt;br /&gt;&#39; don&#39;t deal with system indices (used i.e. to ensure ref. integr.)&lt;br /&gt;If Left$(idx.Name, 1) = &quot;_&quot; Or Left$(idx.Name, 5) = &quot;hind_&quot; Then Exit Function&lt;br /&gt;&#39; index type (very incomplete !!!)&lt;br /&gt;If idx.Type And SQLDMOIndex_DRIPrimaryKey Then&lt;br /&gt;  tmp = tmp &amp;amp; &quot;PRIMARY KEY&quot;&lt;br /&gt;ElseIf idx.Type And SQLDMOIndex_Unique Then&lt;br /&gt;  tmp = tmp &amp;amp; &quot;UNIQUE &quot; &amp;amp; MySQLName(idx.Name)&lt;br /&gt;Else&lt;br /&gt;  tmp = tmp &amp;amp; &quot;INDEX &quot; &amp;amp; MySQLName(idx.Name)&lt;br /&gt;End If&lt;br /&gt;&#39; index columns&lt;br /&gt;tmp = tmp &amp;amp; &quot;(&quot;&lt;br /&gt;For i = 1 To idx.ListIndexedColumns.Count&lt;br /&gt;  Set col = idx.ListIndexedColumns(i)&lt;br /&gt;  tmp = tmp &amp;amp; MySQLName(col.Name)&lt;br /&gt;  &#39; specify index length&lt;br /&gt;  If Right$(DataType(col), 4) = &quot;BLOB&quot; Or Right$(DataType(col), 4) = &quot;TEXT&quot; Then&lt;br /&gt;    tmp = tmp &amp;amp; &quot;(&quot; &amp;amp; IIf(col.length &amp;lt; 255, col.length, 255) &amp;amp; &quot;)&quot;&lt;br /&gt;  End If&lt;br /&gt;  &#39; seperate, if more than one index column&lt;br /&gt;  If i &amp;lt; idx.ListIndexedColumns.Count Then tmp = tmp &amp;amp; &quot;,&quot;&lt;br /&gt;Next&lt;br /&gt;tmp = tmp &amp;amp; &quot;)&quot;&lt;br /&gt;IndexDefinition = tmp&lt;br /&gt;End Function&lt;br /&gt;&lt;br /&gt;&#39; build SQL code to define one table&lt;br /&gt;&#39; TableDefinition$(tbl As SQLDMO.Table)&lt;br /&gt;Function TableDefinition$(tbl)&lt;br /&gt;Dim i&amp;amp;&lt;br /&gt;Dim tmp$, ixdef$&lt;br /&gt;&#39; table&lt;br /&gt;tmp = &quot;CREATE TABLE &quot; &amp;amp; _&lt;br /&gt;      NewDBName(tbl.Parent) &amp;amp; &quot;.&quot; &amp;amp; MySQLName(tbl.Name) &amp;amp; vbCrLf &amp;amp; &quot;(&quot;&lt;br /&gt;For i = 1 To tbl.Columns.Count&lt;br /&gt;  tmp = tmp &amp;amp; ColDefinition(tbl.Columns(i))&lt;br /&gt;  If i &amp;lt; tbl.Columns.Count Then&lt;br /&gt;    tmp = tmp &amp;amp; &quot;, &quot; &amp;amp; vbCrLf&lt;br /&gt;  End If&lt;br /&gt;Next&lt;br /&gt;&#39; indices&lt;br /&gt;For i = 1 To tbl.Indexes.Count&lt;br /&gt;  ixdef = IndexDefinition(tbl, tbl.Indexes(i))&lt;br /&gt;  If ixdef &amp;lt;&amp;gt; &quot;&quot; Then&lt;br /&gt;    tmp = tmp &amp;amp; &quot;, &quot; &amp;amp; vbCrLf &amp;amp; ixdef&lt;br /&gt;  End If&lt;br /&gt;Next&lt;br /&gt;tmp = tmp &amp;amp; &quot;)&quot;&lt;br /&gt;&#39; engine&lt;br /&gt;tmp = tmp &amp;amp; &quot; ENGINE &quot; &amp;amp; TABLE_ENGINE&lt;br /&gt;&#39; characterset&lt;br /&gt;tmp = tmp &amp;amp; &quot; CHARACTER SET &quot; &amp;amp; CHARSET&lt;br /&gt;&#39; collation&lt;br /&gt;If COLLATION &amp;lt;&amp;gt; &quot;&quot; Then&lt;br /&gt;  tmp = tmp &amp;amp; &quot; COLLATION &quot; &amp;amp; COLLATION&lt;br /&gt;End If&lt;br /&gt;TableDefinition = tmp&lt;br /&gt;End Function&lt;br /&gt;&lt;br /&gt;&#39; build SQL code to define database (all tables)&lt;br /&gt;&#39; DBDefinition(db As SQLDMO.Database)&lt;br /&gt;Sub DBDefinition(db)&lt;br /&gt;Dim i&amp;amp;&lt;br /&gt;Dim sql, dbname$&lt;br /&gt;dbname = NewDBName(db)&lt;br /&gt;If DROP_DATABASE Then&lt;br /&gt;  sql = &quot;DROP DATABASE IF EXISTS &quot; &amp;amp; dbname&lt;br /&gt;  ExecuteSQL sql&lt;br /&gt;End If&lt;br /&gt;sql = &quot;CREATE DATABASE &quot; &amp;amp; dbname&lt;br /&gt;ExecuteSQL sql&lt;br /&gt;For i = 1 To db.Tables.Count&lt;br /&gt;  If Not db.Tables(i).SystemObject Then&lt;br /&gt;    sql = TableDefinition(db.Tables(i))&lt;br /&gt;    ExecuteSQL sql&lt;br /&gt;  End If&lt;br /&gt;Next&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;&#39; copy content of all M$ SQL Server tables to new MySQL database&lt;br /&gt;&#39; CopyDB(msdb As SQLDMO.Database)&lt;br /&gt;Sub CopyDB(msdb)&lt;br /&gt;Dim i&amp;amp;&lt;br /&gt;Dim tmp$&lt;br /&gt;ExecuteSQL &quot;USE &quot; &amp;amp; NewDBName(msdb)&lt;br /&gt;For i = 1 To msdb.Tables.Count&lt;br /&gt;  If Not msdb.Tables(i).SystemObject Then&lt;br /&gt;    CopyTable msdb.Tables(i)&lt;br /&gt;  End If&lt;br /&gt;Next&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;&#39; copy content of one table from M$ SQL Server to MySQL&lt;br /&gt;&#39; CopyTable(mstable As SQLDMO.Table)&lt;br /&gt;Sub CopyTable(mstable)&lt;br /&gt;Dim rec &#39; As Recordset&lt;br /&gt;Dim sqlInsert$, sqlValues$&lt;br /&gt;Dim i&amp;amp;, recordCounter&amp;amp;&lt;br /&gt;Set rec = CreateObject(&quot;ADODB.Recordset&quot;)&lt;br /&gt;rec.Open &quot;SELECT * FROM [&quot; &amp;amp; mstable.Name &amp;amp; &quot;]&quot;, mssqlConn&lt;br /&gt;&#39; build beginning statement of SQL INSERT command&lt;br /&gt;&#39; for example: INSERT INTO tablename (column1, column2)&lt;br /&gt;sqlInsert = &quot;INSERT INTO &quot; &amp;amp; MySQLName(mstable.Name) &amp;amp; &quot; (&quot;&lt;br /&gt;For i = 0 To rec.Fields.Count - 1&lt;br /&gt;  sqlInsert = sqlInsert &amp;amp; MySQLName(rec.Fields(i).Name)&lt;br /&gt;  If i &amp;lt;&amp;gt; rec.Fields.Count - 1 Then&lt;br /&gt;    sqlInsert = sqlInsert &amp;amp; &quot;, &quot;&lt;br /&gt;  End If&lt;br /&gt;Next&lt;br /&gt;sqlInsert = sqlInsert &amp;amp; &quot;) &quot;&lt;br /&gt;&#39; for each recordset in M$SS table: build sql statement&lt;br /&gt;Do While Not rec.EOF&lt;br /&gt;  sqlValues = &quot;&quot;&lt;br /&gt;  For i = 0 To rec.Fields.Count - 1&lt;br /&gt;    sqlValues = sqlValues &amp;amp; DataValue(rec.Fields(i))&lt;br /&gt;    If i &amp;lt;&amp;gt; rec.Fields.Count - 1 Then&lt;br /&gt;      sqlValues = sqlValues &amp;amp; &quot;, &quot;&lt;br /&gt;    End If&lt;br /&gt;  Next&lt;br /&gt;  ExecuteSQL sqlInsert &amp;amp; &quot; VALUES(&quot; &amp;amp; sqlValues &amp;amp; &quot;)&quot;&lt;br /&gt;  rec.MoveNext&lt;br /&gt;  &#39; counter&lt;br /&gt;  recordCounter = recordCounter + 1&lt;br /&gt;  If MAX_RECORDS &amp;lt;&amp;gt; 0 Then&lt;br /&gt;    If recordCounter &amp;gt;= MAX_RECORDS Then Exit Do&lt;br /&gt;  End If&lt;br /&gt;Loop&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;&#39; data transition M$ SQL Server --&amp;gt; MySQL&lt;br /&gt;&#39; DataValue$(fld As ADO.Field)&lt;br /&gt;Function DataValue$(fld)&lt;br /&gt;If IsNull(fld.Value) Then&lt;br /&gt;  DataValue = &quot;NULL&quot;&lt;br /&gt;Else&lt;br /&gt;&lt;br /&gt;  Select Case fld.Type&lt;br /&gt;&lt;br /&gt;  &#39; integer numbers&lt;br /&gt;  Case adBigInt, adInteger, adSmallInt, adTinyInt, adUnsignedBigInt, adUnsignedInt, adUnsignedSmallInt, adUnsignedTinyInt&lt;br /&gt;    DataValue = fld.Value&lt;br /&gt;&lt;br /&gt;  &#39; decimal numbers&lt;br /&gt;  Case adCurrency, adDecimal, adDouble, adNumeric, adSingle, adVarNumeric&lt;br /&gt;    DataValue = Str(fld.Value)&lt;br /&gt;    If Not InStr(DataValue, &quot;.&quot;) &amp;gt; 0 Then&lt;br /&gt;      DataValue = DataValue &amp;amp; &quot;.0&quot;&lt;br /&gt;    End If&lt;br /&gt;  &lt;br /&gt;  &#39; boolean&lt;br /&gt;  Case adBoolean&lt;br /&gt;    DataValue = IIf(fld.Value, 1, 0)&lt;br /&gt;  &lt;br /&gt;  &#39; date, time&lt;br /&gt;  Case adDate, adDBDate, adDBTime&lt;br /&gt;    DataValue = Format(fld.Value, &quot;&#39;yyyy-mm-dd Hh:Nn:Ss&#39;&quot;)&lt;br /&gt;  Case adDBTimeStamp&lt;br /&gt;    DataValue = Format(fld.Value, &quot;yyyymmddHhNnSs&quot;)&lt;br /&gt;  Case adFileTime&lt;br /&gt;    &#39; todo&lt;br /&gt;    Beep&lt;br /&gt;    Stop&lt;br /&gt;  &lt;br /&gt;  &#39; strings&lt;br /&gt;  Case adBSTR, adChar, adLongVarChar, adVarChar, adLongVarWChar, adVarWChar, adWChar&lt;br /&gt;    DataValue = &quot;&#39;&quot; &amp;amp; Quote(fld.Value) &amp;amp; &quot;&#39;&quot;&lt;br /&gt;&lt;br /&gt;  &#39; binary and other&lt;br /&gt;  Case adGUID&lt;br /&gt;    DataValue = HexCodeGUID(fld.Value)&lt;br /&gt;  Case adLongVarBinary, adVarBinary&lt;br /&gt;    DataValue = HexCode(fld.Value)&lt;br /&gt;&lt;br /&gt;  End Select&lt;br /&gt;End If&lt;br /&gt;End Function&lt;br /&gt;&lt;br /&gt;&#39; converts a Byte-array into a hex string&lt;br /&gt;&#39; HexCode$(bytedata() As Byte)&lt;br /&gt;Function HexCode(bytedata)&lt;br /&gt;Dim i&amp;amp;&lt;br /&gt;Dim tmp$&lt;br /&gt;tmp = &quot;&quot;&lt;br /&gt;For i = LBound(bytedata) To UBound(bytedata)&lt;br /&gt;  If bytedata(i) &amp;lt;= 15 Then&lt;br /&gt;    tmp = tmp + &quot;0&quot; + Hex(bytedata(i))&lt;br /&gt;  Else&lt;br /&gt;    tmp = tmp + Hex(bytedata(i))&lt;br /&gt;  End If&lt;br /&gt;Next&lt;br /&gt;HexCode = &quot;0x&quot; + tmp&lt;br /&gt;End Function&lt;br /&gt;&lt;br /&gt;&#39; converts a String into a hex string&lt;br /&gt;&#39; HexCode$(bytedata() As Byte)&lt;br /&gt;Function HexCodeStr(bytedata)&lt;br /&gt;Dim i&amp;amp;, b&amp;amp;&lt;br /&gt;Dim tmp$&lt;br /&gt;tmp = &quot;&quot;&lt;br /&gt;For i = 1 To LenB(bytedata)&lt;br /&gt;  b = AscB(MidB(bytedata, i, 1))&lt;br /&gt;  If b &amp;lt;= 15 Then&lt;br /&gt;    tmp = tmp + &quot;0&quot; + Hex(b)&lt;br /&gt;  Else&lt;br /&gt;    tmp = tmp + Hex(b)&lt;br /&gt;  End If&lt;br /&gt;Next&lt;br /&gt;HexCodeStr = &quot;0x&quot; + tmp&lt;br /&gt;End Function&lt;br /&gt;&lt;br /&gt;&#39; returns name of new database&lt;br /&gt;&#39; NewDBName$(db As SQLDMO.Database)&lt;br /&gt;Function NewDBName$(db)&lt;br /&gt;If NEW_DB_NAME = &quot;&quot; Then&lt;br /&gt;  NewDBName = db.Name&lt;br /&gt;Else&lt;br /&gt;  NewDBName = NEW_DB_NAME&lt;br /&gt;End If&lt;br /&gt;End Function&lt;br /&gt;&lt;br /&gt;&#39; quote &#39; &quot; and \; replace chr(0) by \0&lt;br /&gt;Function Quote(tmp)&lt;br /&gt;tmp = Replace(tmp, &quot;\&quot;, &quot;\\&quot;)&lt;br /&gt;tmp = Replace(tmp, &quot;&quot;&quot;&quot;, &quot;\&quot;&quot;&quot;)&lt;br /&gt;tmp = Replace(tmp, &quot;&#39;&quot;, &quot;\&#39;&quot;)&lt;br /&gt;Quote = Replace(tmp, Chr(0), &quot;\0&quot;)&lt;br /&gt;End Function&lt;br /&gt;&lt;br /&gt;&#39; to translate MSSQL names to legal MySQL names&lt;br /&gt;&#39; replace blank, -, ( and ) by &#39;_&#39;&lt;br /&gt;Function MySQLName(tmp)&lt;br /&gt;tmp = Replace(tmp, &quot; &quot;, &quot;_&quot;)&lt;br /&gt;tmp = Replace(tmp, &quot;-&quot;, &quot;_&quot;)&lt;br /&gt;tmp = Replace(tmp, &quot;(&quot;, &quot;_&quot;)&lt;br /&gt;MySQLName = &quot;`&quot; &amp;amp; Replace(tmp, &quot;)&quot;, &quot;_&quot;) &amp;amp; &quot;`&quot;&lt;br /&gt;End Function&lt;br /&gt;&lt;br /&gt;&#39; either execute SQL command or write it into file&lt;br /&gt;Function ExecuteSQL(sql)&lt;br /&gt;If OUTPUT_TO_FILE Then&lt;br /&gt;  fileout.WriteLine sql &amp;amp; &quot;;&quot;&lt;br /&gt;  If Left$(sql, 6) &amp;lt;&amp;gt; &quot;INSERT&quot; Then&lt;br /&gt;    fileout.WriteLine&lt;br /&gt;  End If&lt;br /&gt;Else&lt;br /&gt;  mysqlConn.Execute sql&lt;br /&gt;End If&lt;br /&gt;End Function&lt;br /&gt;&lt;br /&gt;&#39; this event procedures starts the converter if it is run as a VB6 programm&lt;br /&gt;Private Sub Form_Load()&lt;br /&gt;Main&lt;br /&gt;End&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;&#39; converts a GUID string into a hex string without format&lt;br /&gt;Function HexCodeGUID(bytedata)&lt;br /&gt;Dim tmp$&lt;br /&gt;If Len(bytedata) = 38 Then&lt;br /&gt;  tmp = Mid(bytedata, 2, 8) + Mid(bytedata, 11, 4) + Mid(bytedata, 16, 4) _&lt;br /&gt;      + Mid(bytedata, 21, 4) + Mid(bytedata, 26, 12)&lt;br /&gt;Else&lt;br /&gt;  tmp = &quot;00&quot;&lt;br /&gt;End If&lt;br /&gt;HexCodeGUID = &quot;0x&quot; + tmp&lt;br /&gt;End Function&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&#39; uncomment the following lines if you are using Office 97,&lt;br /&gt;&#39; which does not have the Replace function include; please&lt;br /&gt;&#39; note that this Replace function is much slower than the&lt;br /&gt;&#39; built-in version in Office 2000/VB6&lt;br /&gt;&#39;&lt;br /&gt;&#39; to replace all occurrences of a string within a string&lt;br /&gt;&#39; Function Replace(tmp, fromStr, toStr)&lt;br /&gt;&#39;     Dim leftOff&amp;amp;&lt;br /&gt;&#39;     Dim pos&amp;amp;&lt;br /&gt;&#39;     leftOff = 1&lt;br /&gt;&#39;     Do While InStr$(leftOff, tmp, fromStr) &amp;gt; 0&lt;br /&gt;&#39;         pos = InStr$(leftOff, tmp, fromStr)&lt;br /&gt;&#39;         tmp = Left$(tmp, pos - 1) + toStr + Mid$(tmp, pos + Len(fromStr), Len(tmp))&lt;br /&gt;&#39;         leftOff = pos + Len(fromStr) + 1&lt;br /&gt;&#39;     Loop&lt;br /&gt;&#39;     Replace = tmp&lt;br /&gt;&#39; End Function&lt;br /&gt;&lt;br /&gt;Ref: http://kofler.info/uploads/mysql/mssql2mysql.txt&lt;br /&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</content><link rel='replies' type='application/atom+xml' href='http://rhel5certs.blogspot.com/feeds/7194907787080083855/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rhel5certs.blogspot.com/2011/04/convert-microsoft-sql-server-databases.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1865163405195897930/posts/default/7194907787080083855'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1865163405195897930/posts/default/7194907787080083855'/><link rel='alternate' type='text/html' href='http://rhel5certs.blogspot.com/2011/04/convert-microsoft-sql-server-databases.html' title='Convert Microsoft SQL Server databases to MySQL databases'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1865163405195897930.post-7277701831765969603</id><published>2011-04-27T04:49:00.000-07:00</published><updated>2011-04-27T04:53:00.680-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="MYSQL"/><category scheme="http://www.blogger.com/atom/ns#" term="RHEL"/><title type='text'>Mysql Startup Tutorial</title><content type='html'>&lt;span style=&quot;font-weight: bold;&quot;&gt;Mysql Startup Tutorial&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Common Required Packages&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Following RPM are required to setup a normal Mysql database server.&lt;br /&gt;&lt;br /&gt;1. mysql-server&lt;br /&gt;2. mysql&lt;br /&gt;3. php-mysql (if php is going to access mysql)&lt;br /&gt;&lt;br /&gt;Use rpm command to install these packages.&lt;br /&gt;&lt;br /&gt;Eg:&lt;br /&gt;&lt;br /&gt;[root@tmp server]# rpm -ivh mysql-server-5.0.77-4.el5_4.2&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Configuration file&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;/etc/my.cnf&lt;br /&gt;&lt;br /&gt;The /etc/my.cnf file is the main MySQL configuration file. It sets the default MySQL database location and other parameters.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Port&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Mysql default port is 3306&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Setting up root password&lt;/span&gt;&lt;br /&gt;First Time&lt;br /&gt;&lt;br /&gt;mysqladmin -uroot password $MYSQLPW&lt;br /&gt;&lt;br /&gt;MySQL stores all its username and password data in a special database named mysql. You can add users to this database and specify the databases to which they will have access with the grant command. The MySQL root or superuser account, which is used to create and delete databases, is the exception. You need to use the mysqladmin command to set your root password. Only two steps are necessary for a brand new MySQL installation.&lt;br /&gt;&lt;br /&gt;1. Make sure MySQL is started.&lt;br /&gt;2. Use the mysqladmin command to set the MySQL root password. The syntax is as follows:&lt;br /&gt;&lt;br /&gt;[root@tmp server]# mysqladmin -u root password new-password&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Reset Root Password on running Mysql&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;1. Stop the Mysql&lt;br /&gt;&lt;br /&gt;[root@localhost ~]# /etc/init.d/mysqld stop&lt;br /&gt;&lt;br /&gt;2. Start again with mysqlsafe&lt;br /&gt;&lt;br /&gt;[root@localhost ~]# mysqld_safe --skip-grant-tables &amp;amp;&lt;br /&gt;&lt;br /&gt;3. From another terminal,&lt;br /&gt;&lt;br /&gt;[root@localhost ~]# mysql -u root&lt;br /&gt;&lt;br /&gt;mysql&amp;gt; use mysql;&lt;br /&gt;mysql&amp;gt; update user set password=PASSWORD(&quot;NEW-ROOT-PASSWORD&quot;) where User=&#39;root&#39;;&lt;br /&gt;mysql&amp;gt; flush privileges;&lt;br /&gt;mysql&amp;gt; quit&lt;br /&gt;&lt;br /&gt;In the mysql database, there is one table named as &quot;user&quot; in that table set password for the user root.&lt;br /&gt;&lt;br /&gt;4. Restart Mysql&lt;br /&gt;&lt;br /&gt;[root@localhost ~]# /etc/init.d/mysqld restart&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Accessing The MySQL Command Line&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;MySQL command line interpreter (CLI) can be accessed as follows.&lt;br /&gt;&lt;br /&gt;[root@localhost ~]# mysql -u root -p&lt;br /&gt;Enter password:&lt;br /&gt;Welcome to the MySQL monitor. Commands end with ; or \g.&lt;br /&gt;Your MySQL connection id is 53&lt;br /&gt;Server version: 5.0.77 Source distribution&lt;br /&gt;&lt;br /&gt;Type &#39;help;&#39; or &#39;\h&#39; for help. Type &#39;\c&#39; to clear the buffer.&lt;br /&gt;&lt;br /&gt;mysql&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Basic mysql tasks in CLI&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;1. List the databases in the server.&lt;br /&gt;&lt;br /&gt;mysql&amp;gt; show databases;&lt;br /&gt;&lt;br /&gt;2. Create a database&lt;br /&gt;&lt;br /&gt;mysql&amp;gt; create database mynewdatabasename;&lt;br /&gt;&lt;br /&gt;3. Delete a databse(drop)&lt;br /&gt;&lt;br /&gt;mysql&amp;gt; drop database unwanteddatabasename;&lt;br /&gt;&lt;br /&gt;4. create a user&lt;br /&gt;&lt;br /&gt;mysql&amp;gt; create user newusername;&lt;br /&gt;&lt;br /&gt;5. List the users&lt;br /&gt;&lt;br /&gt;mysql&amp;gt; select user from mysql.user;&lt;br /&gt;&lt;br /&gt;6. Providing privilages to one user on one database&lt;br /&gt;&lt;br /&gt;mysql&amp;gt; grant all privileges on database.* to username@&quot;servername&quot; identified by &#39;password&#39;;&lt;br /&gt;&lt;br /&gt;mysql&amp;gt; flush privileges;&lt;br /&gt;&lt;br /&gt;The flush privileges is used to write the privilege changes to the mysql.sql database&lt;br /&gt;&lt;br /&gt;7. Delete a user&lt;br /&gt;&lt;br /&gt;mysql&amp;gt; drop user test;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Backup a Database&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;We can use mysqldump for backup a mysql database.&lt;br /&gt;&lt;br /&gt;[root@localhost ~]# mysqldump -u [username] -p [password] [databasename] &amp;gt; [backupfile.sql]&lt;br /&gt;&lt;br /&gt;Eg:&lt;br /&gt;&lt;br /&gt;[root@localhost ~]# mysqldump -u root -p mysecret mydatabase &amp;gt; mydatabasebackup.sql&lt;br /&gt;&lt;br /&gt;Using this method, we can create a backup as sql file. If the case is a huge database, we can use the standard pipes to dump and zip.&lt;br /&gt;&lt;br /&gt;Eg:&lt;br /&gt;&lt;br /&gt;mysqldump -uroot -pmysecret --database mybigdatabase | gzip -c &amp;gt; mybigdatabase.sql.gz;&lt;br /&gt;&lt;br /&gt;In Some time, putting the password in command will cause security problems. In such case, we can use mysqldump in the following manner.&lt;br /&gt;&lt;br /&gt;[root@localhost ~]# mysqldump -u root -p database &amp;gt; database.sql&lt;br /&gt;&lt;br /&gt;in this case we will be asked for the root password when the command executed.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Restore a Database&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;[root@localhost ~]# mysql -u user -p &#39;password&#39; db-name &amp;lt; db-name.sql&lt;br /&gt;&lt;br /&gt;If the password needs to be secured,&lt;br /&gt;&lt;br /&gt;[root@localhost ~]# mysql -u user -p db-name &amp;lt; db-name.sql&lt;br /&gt;&lt;br /&gt;Ref: http://nixcraft.com</content><link rel='replies' type='application/atom+xml' href='http://rhel5certs.blogspot.com/feeds/7277701831765969603/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rhel5certs.blogspot.com/2011/04/mysql-startup-tutorial.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1865163405195897930/posts/default/7277701831765969603'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1865163405195897930/posts/default/7277701831765969603'/><link rel='alternate' type='text/html' href='http://rhel5certs.blogspot.com/2011/04/mysql-startup-tutorial.html' title='Mysql Startup Tutorial'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1865163405195897930.post-1608367557043256120</id><published>2011-04-27T02:43:00.000-07:00</published><updated>2011-04-27T02:52:47.190-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><title type='text'>iptables configuration file</title><content type='html'>&lt;span style=&quot;font-weight: bold;&quot;&gt;/etc/iptables.up.rules&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;# Generated by iptables-save v1.4.4 on Tue Jul  6 19:02:33 2010&lt;br /&gt;*nat&lt;br /&gt;:PREROUTING DROP [0:0]&lt;br /&gt;:OUTPUT ACCEPT [0:0]&lt;br /&gt;:POSTROUTING ACCEPT [0:0]&lt;br /&gt;-A PREROUTING -d 8.8.8.8 -i eth1 -j ACCEPT&lt;br /&gt;-A PREROUTING -d 4.4.4.4 -i eth1 -j ACCEPT&lt;br /&gt;-A PREROUTING -d w.x.y.z -i eth1 -j ACCEPT  #(old mail server ip)&lt;br /&gt;-A PREROUTING -d a.b.c.d -i eth1 -j ACCEPT  #(mail server ip)&lt;br /&gt;-A PREROUTING -d mail.uvw.in -i eth1 -j ACCEPT&lt;br /&gt;-A PREROUTING -d l.m.n.o/29 -i eth1 -j ACCEPT #(old network ip)&lt;br /&gt;-A PREROUTING -d r.s.t.u -i eth1 -j ACCEPT #(proxy server ip)&lt;br /&gt;-A PREROUTING -d 122.c.d.146 -i eth1 -j ACCEPT  #(allow ip)&lt;br /&gt;-A PREROUTING -d 122.e.f.147 -i eth1 -j ACCEPT  #(allow ip)&lt;br /&gt;# Samba and Proxy&lt;br /&gt;-A PREROUTING -p tcp -m tcp -m multiport -i eth1 -j ACCEPT --dports 139,445,3128,9000&lt;br /&gt;-A POSTROUTING -s 10.1.5.0/24 -o eth0 -j MASQUERADE&lt;br /&gt;-A PREROUTING -p tcp -m tcp --dport 11500 -j ACCEPT&lt;br /&gt;-A PREROUTING -p tcp -m tcp -m multiport -i eth1 -j REDIRECT --to-ports 3128 --dports 80,8080,9000&lt;br /&gt;COMMIT&lt;br /&gt;# Completed on Tue Jul  6 19:02:33 2010&lt;br /&gt;# Generated by iptables-save v1.4.4 on Tue Jul  6 19:02:33 2010&lt;br /&gt;*mangle&lt;br /&gt;:PREROUTING ACCEPT [602:341342]&lt;br /&gt;:INPUT ACCEPT [568:338000]&lt;br /&gt;:FORWARD ACCEPT [34:3342]&lt;br /&gt;:OUTPUT ACCEPT [676:370648]&lt;br /&gt;:POSTROUTING ACCEPT [710:373990]&lt;br /&gt;COMMIT&lt;br /&gt;# Completed on Tue Jul  6 19:02:33 2010&lt;br /&gt;# Generated by iptables-save v1.4.4 on Tue Jul  6 19:02:33 2010&lt;br /&gt;*filter&lt;br /&gt;:INPUT ACCEPT [568:338000]&lt;br /&gt;:FORWARD ACCEPT [34:3342]&lt;br /&gt;:OUTPUT ACCEPT [676:370648]&lt;br /&gt;COMMIT&lt;br /&gt;# Completed on Tue Jul  6 19:02:33 2010</content><link rel='replies' type='application/atom+xml' href='http://rhel5certs.blogspot.com/feeds/1608367557043256120/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rhel5certs.blogspot.com/2011/04/iptables-configuration-file.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1865163405195897930/posts/default/1608367557043256120'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1865163405195897930/posts/default/1608367557043256120'/><link rel='alternate' type='text/html' href='http://rhel5certs.blogspot.com/2011/04/iptables-configuration-file.html' title='iptables configuration file'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1865163405195897930.post-8254870998257433704</id><published>2011-04-27T02:40:00.000-07:00</published><updated>2011-04-27T02:43:18.129-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="configuration file"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><title type='text'>Network/ethernet card configuration file</title><content type='html'>Editing file /etc/network/interfaces&lt;br /&gt;&lt;br /&gt;# This file describes the network interfaces available on your system&lt;br /&gt;# and how to activate them. For more information, see interfaces(5).&lt;br /&gt;&lt;br /&gt;# The loopback network interface&lt;br /&gt;auto lo&lt;br /&gt;iface lo inet loopback&lt;br /&gt;&lt;br /&gt;# The primary network interface&lt;br /&gt;auto eth0&lt;br /&gt;iface eth0 inet static&lt;br /&gt;    address w.x.y.z&lt;br /&gt;    netmask 255.255.255.248&lt;br /&gt;    gateway w.x.y.u&lt;br /&gt;    dns-nameservers a.b.c.d&lt;br /&gt;    metric 1&lt;br /&gt;        post-up iptables-restore &amp;lt; /etc/iptables.up.rules&lt;br /&gt;       &lt;br /&gt;#Secondary network interface&lt;br /&gt;auto eth1&lt;br /&gt;iface eth1 inet static&lt;br /&gt;    address 10.1.5.1&lt;br /&gt;    netmask 255.255.255.0&lt;br /&gt;    network 10.1.5.0&lt;br /&gt;    broadcast 10.1.5.255&lt;br /&gt;        metric 2</content><link rel='replies' type='application/atom+xml' href='http://rhel5certs.blogspot.com/feeds/8254870998257433704/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rhel5certs.blogspot.com/2011/04/networkethernet-card-configuration-file.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1865163405195897930/posts/default/8254870998257433704'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1865163405195897930/posts/default/8254870998257433704'/><link rel='alternate' type='text/html' href='http://rhel5certs.blogspot.com/2011/04/networkethernet-card-configuration-file.html' title='Network/ethernet card configuration file'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1865163405195897930.post-3948350784777950958</id><published>2010-09-09T08:33:00.001-07:00</published><updated>2010-09-11T02:48:06.671-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="database"/><title type='text'>Relational Database - Codd&#39;s Rules</title><content type='html'>&lt;div  style=&quot;color: rgb(19, 79, 92); text-align: center;font-family:Verdana,sans-serif;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size:large;&quot;&gt; Relational Database - Codd&#39;s Rules !!!&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;A &lt;b&gt;relational database management system (&lt;a href=&quot;http://en.wikipedia.org/wiki/Relational_database_management_system&quot;&gt;RDBMS&lt;/a&gt;)&lt;/b&gt;  is a database management system (DBMS) that is based on the relational  model as introduced by E. F. Codd. Most popular commercial and open  source databases currently in use are based on the relational database  model.&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;A short definition of an RDBMS  may be a DBMS in which data is stored  in the form of tables and the  relationship among the data is also stored  in the form of tables.&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;script type=&quot;text/javascript&quot;&gt;&lt;!--&lt;br /&gt;google_ad_client = &quot;pub-0447481554675068&quot;;&lt;br /&gt;google_ad_host = &quot;pub-1556223355139109&quot;;&lt;br /&gt;/* 468x15, created 9/4/10 */&lt;br /&gt;google_ad_slot = &quot;4996339763&quot;;&lt;br /&gt;google_ad_width = 468;&lt;br /&gt;google_ad_height = 15;&lt;br /&gt;//--&gt;&lt;br /&gt;&lt;/script&gt;&lt;br /&gt;&lt;script type=&quot;text/javascript&quot;&lt;br /&gt;src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot;&gt;&lt;br /&gt;&lt;/script&gt;&lt;br /&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size:large;&quot;&gt;Codd&#39;s Rules&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-size:large;&quot;&gt; &lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;All database management must take place using the relational database&#39;s innate functionality&lt;/li&gt;&lt;li&gt;All information in the database must be stored as values in a table&lt;/li&gt;&lt;li&gt;All database information must be accessible through the combination of a table name, primary key and column name.&lt;/li&gt;&lt;li&gt;The database must use NULL values to indicate missing or unknown information&lt;/li&gt;&lt;li&gt;The database schema must be described using the relational database syntax&lt;/li&gt;&lt;li&gt;The database may support multiple languages, but it must support at   least one language that provides full database functionality (e.g. SQL)&lt;/li&gt;&lt;li&gt;The system must be able to update all updatable views&lt;/li&gt;&lt;li&gt;The database must provide single-operation insert, update and delete functionality&lt;/li&gt;&lt;br /&gt;&lt;script type=&quot;text/javascript&quot;&gt;&lt;!--&lt;br /&gt;google_ad_client = &quot;pub-0447481554675068&quot;;&lt;br /&gt;google_ad_host = &quot;pub-1556223355139109&quot;;&lt;br /&gt;/* 468x15, created 9/4/10 */&lt;br /&gt;google_ad_slot = &quot;4996339763&quot;;&lt;br /&gt;google_ad_width = 468;&lt;br /&gt;google_ad_height = 15;&lt;br /&gt;//--&gt;&lt;br /&gt;&lt;/script&gt;&lt;br /&gt;&lt;script type=&quot;text/javascript&quot;&lt;br /&gt;src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot;&gt;&lt;br /&gt;&lt;/script&gt;&lt;br /&gt;&lt;li&gt;Changes to the physical structure of the database must be transparent to applications and users.&lt;/li&gt;&lt;li&gt;Changes to the logical structure of the database must be transparent to applications and users.&lt;/li&gt;&lt;li&gt;The database must natively support integrity constraints.&lt;/li&gt;&lt;li&gt;Changes to the distribution of the database (centralized vs. distributed) must be transparent to applications and users.&lt;/li&gt;&lt;li&gt;Any languages supported by the database must not be able to subvert integrity controls.&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Verdana,sans-serif;&quot; align=&quot;justify&quot;&gt;&lt;b&gt;Tags&lt;/b&gt;: database, table, DBMS, RDBMS, columns, Codd, E. F. Codd, rules, oracle, data&lt;/div&gt;&lt;br /&gt;&lt;center style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;b&gt;================================================&lt;/b&gt;&lt;/center&gt;  &lt;center style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;b&gt;O************************O***********************O&lt;/b&gt;&lt;/center&gt;</content><link rel='replies' type='application/atom+xml' href='http://rhel5certs.blogspot.com/feeds/3948350784777950958/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rhel5certs.blogspot.com/2010/09/relational-database-codds-rules.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1865163405195897930/posts/default/3948350784777950958'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1865163405195897930/posts/default/3948350784777950958'/><link rel='alternate' type='text/html' href='http://rhel5certs.blogspot.com/2010/09/relational-database-codds-rules.html' title='Relational Database - Codd&#39;s Rules'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1865163405195897930.post-7298785985247927737</id><published>2010-09-04T22:42:00.001-07:00</published><updated>2010-09-04T22:42:59.974-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><title type='text'>Apt-Get command line tool</title><content type='html'>&lt;div style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: rgb(19, 79, 92);&quot;&gt; Apt-Get command line tool &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: rgb(19, 79, 92);&quot;&gt;(Ubuntu&#39;s Advanced Packaging Tool) !!!&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(19, 79, 92);&quot;&gt;The apt-get command is a powerful  command-line tool used to work with Ubuntu&#39;s Advanced Packaging Tool  (APT) performing such functions as installation of new software  packages, upgrade of existing software packages, updating of the package  list index, and even upgrading the entire Ubuntu system.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;*Install package&lt;/b&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(19, 79, 92);&quot;&gt;#sudo apt-get install packagename&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;*Remove Package&lt;/b&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(19, 79, 92);&quot;&gt;#sudo apt-get remove packagename&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;*Install Multiple Packages&lt;/b&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(19, 79, 92);&quot;&gt;#sudo apt-get install packagename1 packagename2 packagename3&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;*Update the Package Index&lt;/b&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(19, 79, 92);&quot;&gt;#sudo apt-get update&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;color: rgb(19, 79, 92);&quot;&gt;The  APT package index is essentially a database of available packages from  the repositories defined in the /etc/apt/sources.list file.&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;b&gt;*Upgrade the system&lt;/b&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(19, 79, 92);&quot;&gt;#sudo apt-get upgrade&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;*Read Debian APT User Manual&lt;/b&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(19, 79, 92);&quot;&gt;#sudo apt-get help&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div align=&quot;justify&quot;&gt;Tags: apt get apt-get advanced packaging tool install remove upgrade update help ubuntu linux unix package-management&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rhel5certs.blogspot.com/feeds/7298785985247927737/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rhel5certs.blogspot.com/2010/09/apt-get-command-line-tool.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1865163405195897930/posts/default/7298785985247927737'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1865163405195897930/posts/default/7298785985247927737'/><link rel='alternate' type='text/html' href='http://rhel5certs.blogspot.com/2010/09/apt-get-command-line-tool.html' title='Apt-Get command line tool'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1865163405195897930.post-8638266423070447047</id><published>2010-09-04T22:38:00.000-07:00</published><updated>2010-09-04T22:43:21.247-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="port numbers"/><title type='text'>Port Numbers - Linux</title><content type='html'>&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;b&gt;PORTS NUMBERS&lt;/b&gt; :&lt;span style=&quot;color: rgb(19, 79, 92);&quot;&gt;  Just as the physical address (MAC address) and the logical address (IP  address) helps to route the traffic to a particular machine on a  network, it is the port that identifies which service on the machine  this traffic is destined to.&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;b&gt;List of ports&lt;/b&gt; : &lt;span style=&quot;color: rgb(19, 79, 92);&quot;&gt; /etc/services &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;color: rgb(19, 79, 92); text-align: justify;&quot;&gt;A port on a specific computer is called a socket. It can be open, closed, listening or have a connection established.&lt;/div&gt;&lt;br /&gt;&lt;b&gt;###Important PORT NUMBERS to remember:&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;color: rgb(19, 79, 92);&quot;&gt;20      -  FTP - data transfer&lt;/div&gt;&lt;div style=&quot;color: rgb(19, 79, 92);&quot;&gt;21      -  FTP - control (command)&lt;/div&gt;&lt;div style=&quot;color: rgb(19, 79, 92);&quot;&gt;22      -  SSH  &lt;/div&gt;&lt;div style=&quot;color: rgb(19, 79, 92);&quot;&gt;23      -  Telnet&lt;/div&gt;&lt;div style=&quot;color: rgb(19, 79, 92);&quot;&gt;25      -  SMTP&lt;/div&gt;&lt;div style=&quot;color: rgb(19, 79, 92);&quot;&gt;37      -  Time&lt;/div&gt;&lt;div style=&quot;color: rgb(19, 79, 92);&quot;&gt;43      -  WHOIS&lt;/div&gt;&lt;div style=&quot;color: rgb(19, 79, 92);&quot;&gt;42      -  WINS&lt;/div&gt;&lt;div style=&quot;color: rgb(19, 79, 92);&quot;&gt;53      -  DNS&lt;/div&gt;&lt;div style=&quot;color: rgb(19, 79, 92);&quot;&gt;67      -  BOOTp&lt;/div&gt;&lt;div style=&quot;color: rgb(19, 79, 92);&quot;&gt;68      -  DHCP&lt;/div&gt;&lt;div style=&quot;color: rgb(19, 79, 92);&quot;&gt;69      -  TFTP&lt;/div&gt;&lt;div style=&quot;color: rgb(19, 79, 92);&quot;&gt;79      -  FINGER&lt;/div&gt;&lt;div style=&quot;color: rgb(19, 79, 92);&quot;&gt;80      -  HTTP (WWW)&lt;/div&gt;&lt;div style=&quot;color: rgb(19, 79, 92);&quot;&gt;88      -  Kerberose&lt;/div&gt;&lt;div style=&quot;color: rgb(19, 79, 92);&quot;&gt;101    -  HOSTNAME  &lt;/div&gt;&lt;div style=&quot;color: rgb(19, 79, 92);&quot;&gt;110    -  POP3&lt;/div&gt;&lt;div style=&quot;color: rgb(19, 79, 92);&quot;&gt;111    -  rpcbind&lt;/div&gt;&lt;div style=&quot;color: rgb(19, 79, 92);&quot;&gt;119    -  NNTP    &lt;/div&gt;&lt;div style=&quot;color: rgb(19, 79, 92);&quot;&gt;123    -  NTP (Time)&lt;/div&gt;&lt;div style=&quot;color: rgb(19, 79, 92);&quot;&gt;137    -  NetBios (nmbd)&lt;/div&gt;&lt;div style=&quot;color: rgb(19, 79, 92);&quot;&gt;139    -  NetBios ( Samba)&lt;/div&gt;&lt;div style=&quot;color: rgb(19, 79, 92);&quot;&gt;143    -  IMAP/Dovecot &lt;/div&gt;&lt;div style=&quot;color: rgb(19, 79, 92);&quot;&gt;161    -  SNMP&lt;/div&gt;&lt;div style=&quot;color: rgb(19, 79, 92);&quot;&gt;180    -  RIS&lt;/div&gt;&lt;div style=&quot;color: rgb(19, 79, 92);&quot;&gt;220    -  IMAP3&lt;/div&gt;&lt;div style=&quot;color: rgb(19, 79, 92);&quot;&gt;389    -  LDAP&lt;/div&gt;&lt;div style=&quot;color: rgb(19, 79, 92);&quot;&gt;443    -  HTTPs&lt;/div&gt;&lt;div style=&quot;color: rgb(19, 79, 92);&quot;&gt;500    -  Internet Key Exchange (IKE), IPSec&lt;/div&gt;&lt;div style=&quot;color: rgb(19, 79, 92);&quot;&gt;520    -  RIP&lt;/div&gt;&lt;div style=&quot;color: rgb(19, 79, 92);&quot;&gt;546    -  DHCPV6 client&lt;/div&gt;&lt;div style=&quot;color: rgb(19, 79, 92);&quot;&gt;547    -  DHCPV6 server&lt;/div&gt;&lt;div style=&quot;color: rgb(19, 79, 92);&quot;&gt;554    -  rtsp(Real Time Stream Protocol, Audio/Video)&lt;/div&gt;&lt;div style=&quot;color: rgb(19, 79, 92);&quot;&gt;631    -  Printing (ipp)&lt;/div&gt;&lt;div style=&quot;color: rgb(19, 79, 92);&quot;&gt;744    -  Flexlm&lt;/div&gt;&lt;div style=&quot;color: rgb(19, 79, 92);&quot;&gt;901    -  SWAT&lt;/div&gt;&lt;div style=&quot;color: rgb(19, 79, 92);&quot;&gt;953    -  rndc&lt;/div&gt;&lt;div style=&quot;color: rgb(19, 79, 92);&quot;&gt;993    -  IMAPSecure&lt;/div&gt;&lt;div style=&quot;color: rgb(19, 79, 92);&quot;&gt;995    -  POPs &lt;/div&gt;&lt;div style=&quot;color: rgb(19, 79, 92);&quot;&gt;999    -  POP over SSL/TLS&lt;/div&gt;&lt;div style=&quot;color: rgb(19, 79, 92);&quot;&gt;2049  -  NFS&lt;/div&gt;&lt;div style=&quot;color: rgb(19, 79, 92);&quot;&gt;2082  -  CPANEL&lt;/div&gt;&lt;div style=&quot;color: rgb(19, 79, 92);&quot;&gt;2083  -  CPANEL Secure SSL/TLS&lt;/div&gt;&lt;div style=&quot;color: rgb(19, 79, 92);&quot;&gt;2086  -  CPANEL WHM  &lt;/div&gt;&lt;div style=&quot;color: rgb(19, 79, 92);&quot;&gt;2087  -  CPANEL WHM Secure/SSL&lt;/div&gt;&lt;div style=&quot;color: rgb(19, 79, 92);&quot;&gt;2095  -  CPANEL Webmail&lt;/div&gt;&lt;div style=&quot;color: rgb(19, 79, 92);&quot;&gt;2096  -  CPANEL Webmail Secure/SSL&lt;/div&gt;&lt;div style=&quot;color: rgb(19, 79, 92);&quot;&gt;2222  -  Direct Admin Control Panel&lt;/div&gt;&lt;div style=&quot;color: rgb(19, 79, 92);&quot;&gt;2401  -  CVSP server&lt;/div&gt;&lt;div style=&quot;color: rgb(19, 79, 92);&quot;&gt;3268  -  AD Global Catalog&lt;/div&gt;&lt;div style=&quot;color: rgb(19, 79, 92);&quot;&gt;3269  -  AD Global Catalog over SSL&lt;/div&gt;&lt;div style=&quot;color: rgb(19, 79, 92);&quot;&gt;3306  -  MySQL Server&lt;/div&gt;&lt;div style=&quot;color: rgb(19, 79, 92);&quot;&gt;3389  -  Terminal services (rdp-remote desktop protocol) &lt;/div&gt;&lt;div style=&quot;color: rgb(19, 79, 92);&quot;&gt;4643  -  Virtusso Power Panel&lt;/div&gt;&lt;div style=&quot;color: rgb(19, 79, 92);&quot;&gt;(6000 -  X11&lt;/div&gt;&lt;div style=&quot;color: rgb(19, 79, 92);&quot;&gt;6063)&lt;/div&gt;&lt;div style=&quot;color: rgb(19, 79, 92);&quot;&gt;8443  -  Pleask Control Panel&lt;/div&gt;&lt;div style=&quot;color: rgb(19, 79, 92);&quot;&gt;9999  -  Urchin&lt;/div&gt;&lt;div style=&quot;color: rgb(19, 79, 92);&quot;&gt;10000-  Webmin Control Panel&lt;/div&gt;&lt;div style=&quot;color: rgb(19, 79, 92);&quot;&gt;21018-  Skype  &lt;/div&gt;&lt;br /&gt;TAG: &lt;span style=&quot;color: rgb(19, 79, 92);&quot;&gt; port, portnumber,  port-numbers, tcp, udp, network, service, services, linux, socket,  communication, transmission, dataflow, rhce, ubuntu, unix, red hat,  red-hat, redhat  &lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://rhel5certs.blogspot.com/feeds/8638266423070447047/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rhel5certs.blogspot.com/2010/09/port-numbers-linux.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1865163405195897930/posts/default/8638266423070447047'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1865163405195897930/posts/default/8638266423070447047'/><link rel='alternate' type='text/html' href='http://rhel5certs.blogspot.com/2010/09/port-numbers-linux.html' title='Port Numbers - Linux'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1865163405195897930.post-2115180446485836930</id><published>2010-07-10T23:34:00.000-07:00</published><updated>2010-07-10T23:38:41.129-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="system adminstration"/><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><category scheme="http://www.blogger.com/atom/ns#" term="webmin"/><title type='text'>How to install Webmin</title><content type='html'>&lt;div style=&quot;color: rgb(61, 133, 198); text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size:x-large;&quot;&gt;WEBMIN&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;color: rgb(19, 79, 92);&quot;&gt;Webmin  is a web-based interface for system administration for Unix. Using any  modern web browser, you can setup user accounts, Apache, DNS, file  sharing and much more. Webmin removes the need to manually edit Unix  configuration files like /etc/passwd, and lets you manage a system from  the console or remotely.&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(19, 79, 92);&quot;&gt;&lt;b style=&quot;color: black;&quot;&gt;Install Webmin&lt;/b&gt;  (Successfully tested/configured on Ubuntu server 10.04)&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(19, 79, 92);&quot;&gt; &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(19, 79, 92);&quot;&gt;#sudo  aptitude safe-upgrade&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(19, 79, 92);&quot;&gt;#sudo aptitude update&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(19, 79, 92);&quot;&gt;#sudo  mkdir downloads&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(19, 79, 92);&quot;&gt;#cd downloads&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(19, 79, 92);&quot;&gt;#sudo wget  http://downloads.sourceforge.net/project/webadmin/webmin/1.510/webmin_1.510-2_all.deb?use_mirror=cdnetworks-us-1&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(19, 79, 92);&quot;&gt;or  &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(19, 79, 92);&quot;&gt;#sudo wget  http://downloads.sourceforge.net/project/webadmin/webmin/1.510/webmin_1.510-2_all.deb?use_mirror=kent&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(19, 79, 92);&quot;&gt;#sudo  dpkg -i webmin_1.510-2_all.deb&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(19, 79, 92);&quot;&gt;#sudo aptitude -f install&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;color:black;&quot;&gt;=&gt;&gt;You  can access the Ubuntu machine from a Windows machine via a web browser  by typing the address &lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;color: rgb(19, 79, 92);&quot;&gt;https://yourip:10000&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(19, 79, 92);&quot;&gt;or&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(19, 79, 92);&quot;&gt;https://core:10000  , here core is the name of my Ubuntu server.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div align=&quot;justify&quot;&gt;Tags: webmin web-based interface system  administration admistrator configure linux server ubuntu red hat redhat  rhel rhce unix&lt;/div&gt;&lt;div style=&quot;overflow: hidden; color: rgb(0, 0, 0); background-color: transparent; text-align: left; text-decoration: none; border: medium none;&quot;&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rhel5certs.blogspot.com/feeds/2115180446485836930/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rhel5certs.blogspot.com/2010/07/how-to-install-webmin.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1865163405195897930/posts/default/2115180446485836930'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1865163405195897930/posts/default/2115180446485836930'/><link rel='alternate' type='text/html' href='http://rhel5certs.blogspot.com/2010/07/how-to-install-webmin.html' title='How to install Webmin'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1865163405195897930.post-498800175910387834</id><published>2010-03-14T00:20:00.000-08:00</published><updated>2010-03-14T00:22:06.762-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="certification"/><category scheme="http://www.blogger.com/atom/ns#" term="password"/><category scheme="http://www.blogger.com/atom/ns#" term="Red Hat"/><category scheme="http://www.blogger.com/atom/ns#" term="RHCE"/><category scheme="http://www.blogger.com/atom/ns#" term="RHEL"/><title type='text'>How to break root password !!!</title><content type='html'>&lt;div style=&quot;color: rgb(19, 79, 92); text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size:large;&quot;&gt;How to break root password !!!&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style=&quot;color: rgb(19, 79, 92); text-align: left;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size:large;&quot;&gt;Method 1:&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;div class=&quot;para&quot; style=&quot;text-align: justify;&quot;&gt; &lt;a class=&quot;indexterm&quot; href=&quot;http://rohanrawat.blogspot.com/&quot; id=&quot;d0e20047&quot;&gt;   One of the  advantages of  single-user mode is that you do not need a boot CD-ROM;  however, it does  not give you the option to mount the file systems as  read-only or not  mount them at all.   &lt;/a&gt;&lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;div class=&quot;para&quot; style=&quot;text-align: justify;&quot;&gt; &lt;a class=&quot;indexterm&quot; href=&quot;http://rohanrawat.blogspot.com/&quot; id=&quot;d0e20047&quot;&gt;   If your system  boots, but does not  allow you to log in when it has completed booting,  try single-user  mode.   &lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt; &lt;/div&gt;&lt;div class=&quot;para&quot; style=&quot;text-align: justify;&quot;&gt; &lt;a class=&quot;indexterm&quot; href=&quot;http://rohanrawat.blogspot.com/&quot; id=&quot;d0e20047&quot;&gt;   In single-user  mode, your computer  boots to runlevel 1. Your local file systems are  mounted, but your  network is not activated. You have a usable system  maintenance shell.  Unlike rescue mode, single-user mode automatically  tries to mount your  file system. &lt;span class=&quot;emphasis&quot;&gt; &lt;em&gt;Do not use  single-user mode if your file system cannot be mounted  successfully.&lt;/em&gt;  &lt;/span&gt; You cannot use single-user mode if the runlevel 1 configuration   on your system is corrupted.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;color: rgb(19, 79, 92); text-align: left;&quot;&gt;&lt;span style=&quot;font-size:small;&quot;&gt;1)  When you reach the grub screen press &#39;e&#39; on linux.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: rgb(19, 79, 92); text-align: left;&quot;&gt;&lt;span style=&quot;font-size:small;&quot;&gt;2) Go to line which contains the word &#39;kernel&#39;  press &#39;e&#39;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: rgb(19, 79, 92); text-align: left;&quot;&gt;&lt;span style=&quot;font-size:small;&quot;&gt;3) go to the end of that line and  write &#39;linux single&#39; or &#39;1&#39;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: rgb(19, 79, 92); text-align: left;&quot;&gt;&lt;span style=&quot;font-size:small;&quot;&gt;4) then press  &#39;esc&#39; twice and press &#39;b&#39; to reboot the system&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: rgb(19, 79, 92); text-align: left;&quot;&gt;&lt;span style=&quot;font-size:small;&quot;&gt;5) now wait for the prompt and then type  &#39;passwd root&#39;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: rgb(19, 79, 92); text-align: left;&quot;&gt;&lt;span style=&quot;font-size:small;&quot;&gt;6) enter new passwd&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size:large;&quot;&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;color: rgb(19, 79, 92); text-align: left;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size:large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;color: rgb(19, 79, 92); text-align: left;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size:large;&quot;&gt;Method 2:&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;a class=&quot;indexterm&quot; href=&quot;http://rohanrawat.blogspot.com/&quot; id=&quot;d0e20097&quot;&gt;In emergency mode,  you are booted  into the most minimal environment possible. The root  file system is  mounted read-only and almost nothing is set up. The main  advantage of  emergency mode over single-user mode is that the &lt;code class=&quot;command&quot;&gt;init&lt;/code&gt;  files are not loaded. If &lt;code class=&quot;command&quot;&gt;init&lt;/code&gt; is corrupted  or not working, you can still  mount file systems to recover data that  could be lost during a  re-installation.&lt;/a&gt;&lt;b&gt;&lt;span style=&quot;font-size:large;&quot;&gt; &lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size:large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;color: rgb(19, 79, 92); text-align: left;&quot;&gt;&lt;span style=&quot;font-size:small;&quot;&gt;1) Boot the computer with linux  installation CD&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: rgb(19, 79, 92); text-align: left;&quot;&gt;&lt;span style=&quot;font-size:small;&quot;&gt;2) Enter the linux  rescue mode by entering the following command in boot screen&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: rgb(19, 79, 92); text-align: left;&quot;&gt;&lt;span style=&quot;font-size:small;&quot;&gt;     boot:linux rescue&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: rgb(19, 79, 92); text-align: left;&quot;&gt;&lt;span style=&quot;font-size:small;&quot;&gt;3) When the sh prompt is reached, enter the  following commands to change root password:&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: rgb(19, 79, 92); text-align: left;&quot;&gt;&lt;span style=&quot;font-size:small;&quot;&gt;#chroot /mnt/sysimage&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: rgb(19, 79, 92); text-align: left;&quot;&gt;&lt;span style=&quot;font-size:small;&quot;&gt;#passwd&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: rgb(19, 79, 92); text-align: left;&quot;&gt;&lt;span style=&quot;font-size:small;&quot;&gt;The above  step will prompt you to enter your new password&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size:large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;br /&gt;Tags: rhel rhel5 rhce rhct hack how to break root password&lt;br /&gt;&lt;br /&gt;&lt;center&gt;&lt;b&gt;===================================================&lt;/b&gt;&lt;/center&gt;&lt;br /&gt;&lt;br /&gt;&lt;center&gt;&lt;b&gt;O************************O***********************O&lt;/b&gt;&lt;/center&gt;</content><link rel='replies' type='application/atom+xml' href='http://rhel5certs.blogspot.com/feeds/498800175910387834/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rhel5certs.blogspot.com/2010/03/how-to-break-root-password.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1865163405195897930/posts/default/498800175910387834'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1865163405195897930/posts/default/498800175910387834'/><link rel='alternate' type='text/html' href='http://rhel5certs.blogspot.com/2010/03/how-to-break-root-password.html' title='How to break root password !!!'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1865163405195897930.post-9216871832036781617</id><published>2010-02-25T04:31:00.000-08:00</published><updated>2010-02-25T04:32:17.206-08:00</updated><title type='text'>Privacy Policy !!!</title><content type='html'>&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;b&gt;Privacy Policy for rhel5certs.blogspot.com/&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;If you require any more information or have any questions about our privacy policy, please feel free to contact us by email at rhcev5@gmail.com.&lt;br /&gt;&lt;br /&gt;At rhel5certs.blogspot.com/, the privacy of our visitors is of extreme importance to us. This privacy policy document outlines the types of personal information is received and collected by rhel5certs.blogspot.com/ and how it is used.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Log Files&lt;/b&gt;&lt;br /&gt;Like many other Web sites, rhel5certs.blogspot.com/ makes use of log files. The information inside the log files includes internet protocol ( IP ) addresses, type of browser, Internet Service Provider ( ISP ), date/time stamp, referring/exit pages, and number of clicks to analyze trends, administer the site, track user’s movement around the site, and gather demographic information. IP addresses, and other such information are not linked to any information that is personally identifiable.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Cookies and Web Beacons&lt;/b&gt;&lt;br /&gt;rhel5certs.blogspot.com/ does not use cookies.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;DoubleClick DART Cookie&lt;/b&gt;&lt;br /&gt;.:: Google, as a third party vendor, uses cookies to serve ads on rhel5certs.blogspot.com/.&lt;br /&gt;.:: Google&#39;s use of the DART cookie enables it to serve ads to users based on their visit to rhel5certs.blogspot.com/ and other sites on the Internet.&lt;br /&gt;.:: Users may opt out of the use of the DART cookie by visiting the Google ad and content network privacy policy at the following URL - http://www.google.com/privacy_ads.html&lt;br /&gt;&lt;br /&gt;Some of our advertising partners may use cookies and web beacons on our site. Our advertising partners include ....&lt;br /&gt;      &lt;br /&gt;&lt;br /&gt;These third-party ad servers or ad networks use technology to the advertisements and links that appear on rhel5certs.blogspot.com/ send directly to your browsers. They automatically receive your IP address when this occurs. Other technologies ( such as cookies, JavaScript, or Web Beacons ) may also be used by the third-party ad networks to measure the effectiveness of their advertisements and / or to personalize the advertising content that you see.&lt;br /&gt;&lt;br /&gt;rhel5certs.blogspot.com/ has no access to or control over these cookies that are used by third-party advertisers.&lt;br /&gt;&lt;br /&gt;You should consult the respective privacy policies of these third-party ad servers for more detailed information on their practices as well as for instructions about how to opt-out of certain practices. rhel5certs.blogspot.com/&#39;s privacy policy does not apply to, and we cannot control the activities of, such other advertisers or web sites.&lt;br /&gt;&lt;br /&gt;If you wish to disable cookies, you may do so through your individual browser options. More detailed information about cookie management with specific web browsers can be found at the browsers&#39; respective websites. &lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rhel5certs.blogspot.com/feeds/9216871832036781617/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rhel5certs.blogspot.com/2010/02/privacy-policy.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1865163405195897930/posts/default/9216871832036781617'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1865163405195897930/posts/default/9216871832036781617'/><link rel='alternate' type='text/html' href='http://rhel5certs.blogspot.com/2010/02/privacy-policy.html' title='Privacy Policy !!!'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>