<?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-968083310990733862</id><updated>2024-11-01T03:45:07.979-07:00</updated><category term="Data"/><category term="issue"/><category term="Script"/><category term="command"/><title type='text'>linux</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://novice2linux.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/968083310990733862/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://novice2linux.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>pavan</name><uri>http://www.blogger.com/profile/15584902418083594456</uri><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>21</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-968083310990733862.post-1302162976352245312</id><published>2014-03-19T20:23:00.003-07:00</published><updated>2014-03-19T20:40:37.038-07:00</updated><title type='text'>puppet</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
writing custom facts in puppet.&lt;br /&gt;&lt;br /&gt;mcollective&lt;br /&gt;&lt;br /&gt;Resource Abstraction Layer.&amp;nbsp; (#puppet resource)&lt;br /&gt;&lt;br /&gt;Puppet describe cron (describe everything about resource group)&lt;br /&gt;&lt;br /&gt;noop &lt;br /&gt;&lt;br /&gt;tools:&lt;br /&gt;&lt;br /&gt;gepatto&lt;br /&gt;&lt;br /&gt;start with small single purpose modules..&lt;br /&gt;&lt;br /&gt;Configuration Management Maturity Model:&lt;br /&gt;&lt;br /&gt;Artisian&lt;br /&gt;Centralized&lt;br /&gt;Normalized&lt;br /&gt;Templated&lt;br /&gt;Reusable&amp;nbsp;&amp;nbsp; --- hiera&lt;br /&gt;&lt;br /&gt;Learn from Developers (Versioning) .. #subversion&lt;br /&gt;&lt;br /&gt;Have a lab&lt;br /&gt;&lt;br /&gt;##Investment ##&lt;br /&gt;&lt;br /&gt;Oracle class&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://novice2linux.blogspot.com/feeds/1302162976352245312/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://novice2linux.blogspot.com/2014/03/puppet.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/968083310990733862/posts/default/1302162976352245312'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/968083310990733862/posts/default/1302162976352245312'/><link rel='alternate' type='text/html' href='http://novice2linux.blogspot.com/2014/03/puppet.html' title='puppet'/><author><name>pavan</name><uri>http://www.blogger.com/profile/15584902418083594456</uri><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-968083310990733862.post-1024137358408197688</id><published>2014-02-18T03:58:00.002-08:00</published><updated>2014-02-18T03:58:37.850-08:00</updated><title type='text'>Perl Documents:</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
http://docstore.mik.ua/orelly/perl3/prog/ch10_02.htm&lt;br /&gt;
&lt;br /&gt;
http://www.tutorialspoint.com/perl/perl_modules.htm&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://novice2linux.blogspot.com/feeds/1024137358408197688/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://novice2linux.blogspot.com/2014/02/perl-documents.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/968083310990733862/posts/default/1024137358408197688'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/968083310990733862/posts/default/1024137358408197688'/><link rel='alternate' type='text/html' href='http://novice2linux.blogspot.com/2014/02/perl-documents.html' title='Perl Documents:'/><author><name>pavan</name><uri>http://www.blogger.com/profile/15584902418083594456</uri><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-968083310990733862.post-4376953680777274733</id><published>2013-07-09T06:22:00.000-07:00</published><updated>2013-07-09T06:22:08.280-07:00</updated><title type='text'>Booting in Linux Rescue Mode</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
1) Boot from DVD or other image file&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
2) Select rescue mode&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
linux rescue&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
linux rescue mpath&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
3) Once the rescue environment finishes booting, choose a language to use.&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
4) Select keyboard layout to use.&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
5) Wait for network interfaces to be located, and activate them, so that requested data can be transferred to another host.&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
6) The rescue environment will try to find the current Red Hat installation on the system. You will be prompted with the below options:&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
For this you will want to skip having Rescue Mode search for partitions. Make sure to boot into rescue mode to not automatically detect the partitions.&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
7) Use the &amp;nbsp;fdisk -l command to find boot. This will be marked with an * &lt;-- boot=&quot;&quot; c0d0p1=&quot;&quot; can=&quot;&quot; cciss=&quot;&quot; div=&quot;&quot; either=&quot;&quot; for=&quot;&quot; is=&quot;&quot; know=&quot;&quot; mount.=&quot;&quot; or=&quot;&quot; sda1=&quot;&quot; show=&quot;&quot; something=&quot;&quot; the=&quot;&quot; then=&quot;&quot; this=&quot;&quot; what=&quot;&quot; will=&quot;&quot; you=&quot;&quot;&gt;&lt;div style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
8)If LVM is used:&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
Scan for metadata:&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
# lvm pvscan&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
# lvm vgscan&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
# lvm lvscan&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
# lvm lvdisplay to find out what lv is root&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
# lvm vgchange -ay /dev/volgroup &amp;nbsp; to activate&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
May want to run fsck on these filsystems &amp;nbsp;&lt;---- div=&quot;&quot; important=&quot;&quot;&gt;&lt;div style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
Then start creating the chroot environment:&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
1. #mkdir /mnt/sysimage&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
** # mount /dev/vg00/logvolroot /mnRescuet/sysimage **&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
2. #mount /dev/sd&lt;n&gt;1 /mnt/sysimage/ &amp;nbsp;&lt;----root div=&quot;&quot;&gt;&lt;div style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
3. #mount /dev/dcciss/c0d0p1 /mnt/sysimage/boot &lt;---- boot=&quot;&quot; div=&quot;&quot;&gt;&lt;div style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
4. #mount /dev/cciss/c0d0p2 /mnt/sysimage/opt &lt;---- div=&quot;&quot; opt=&quot;&quot;&gt;&lt;div style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
Then you have to mount proc, sys, and dev regardless:&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
5. # mount -o bind /proc /mnt/sysimage/proc&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
6. # mount -o bind /sys /mnt/sysimage/sys&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
7. # mount -o bind /dev /mnt/sysimage/dev&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
8. # mount -o bind /usr /mnt/sysimage/usr&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
Then you should be able to chroot in.&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
9. # chroot /mnt/sysimage&lt;/div&gt;
&lt;/----&gt;&lt;/div&gt;
&lt;/----&gt;&lt;/div&gt;
&lt;/----root&gt;&lt;/n&gt;&lt;/div&gt;
&lt;/----&gt;&lt;/div&gt;
&lt;/--&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://novice2linux.blogspot.com/feeds/4376953680777274733/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://novice2linux.blogspot.com/2013/07/booting-in-linux-rescue-mode.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/968083310990733862/posts/default/4376953680777274733'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/968083310990733862/posts/default/4376953680777274733'/><link rel='alternate' type='text/html' href='http://novice2linux.blogspot.com/2013/07/booting-in-linux-rescue-mode.html' title='Booting in Linux Rescue Mode'/><author><name>pavan</name><uri>http://www.blogger.com/profile/15584902418083594456</uri><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-968083310990733862.post-7355168897350164334</id><published>2013-05-29T07:52:00.002-07:00</published><updated>2013-05-30T06:14:44.324-07:00</updated><title type='text'>Simple procedure to installing cups printer from Linux server:</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
Searching for the required packages using yum&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;Normal&quot; style=&quot;font-family: Calibri, Arial; font-size: 11pt; line-height: 13pt; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;
&lt;span class=&quot;Subtle_0020Emphasis__Char&quot; style=&quot;color: #898989; font-style: italic;&quot;&gt;[root@pavan /]# yum search cups&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;Normal&quot; style=&quot;font-family: Calibri, Arial; font-size: 11pt; line-height: 13pt; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;
Loaded plugins: product-id, rhnplugin, security, subscription-manager&lt;/div&gt;
&lt;div class=&quot;Normal&quot; style=&quot;font-family: Calibri, Arial; font-size: 11pt; line-height: 13pt; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;
Updating certificate-based repositories.&lt;/div&gt;
&lt;div class=&quot;Normal&quot; style=&quot;font-family: Calibri, Arial; font-size: 11pt; line-height: 13pt; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;
====================================================== N/S Matched: cups ======================================================&lt;/div&gt;
&lt;div class=&quot;Normal&quot; style=&quot;font-family: Calibri, Arial; font-size: 11pt; line-height: 13pt; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;
gutenprint-cups.x86_64 : CUPS drivers for Canon, Epson, HP and compatible printers&lt;/div&gt;
&lt;div class=&quot;Normal&quot; style=&quot;font-family: Calibri, Arial; font-size: 11pt; line-height: 13pt; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;
&lt;span class=&quot;Normal__Char&quot; style=&quot;font-size: 11pt; font-weight: bold;&quot;&gt;cups.x86_64 : Common Unix Printing System&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;Normal&quot; style=&quot;font-family: Calibri, Arial; font-size: 11pt; line-height: 13pt; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;font-size: 11pt; line-height: 13pt;&quot;&gt;cups-pk-helper.x86_64 : A helper that makes system-config-printer use PolicyKit&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;Normal&quot; style=&quot;font-family: Calibri, Arial; font-size: 11pt; line-height: 13pt; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;
ptouch-driver.x86_64 : CUPS driver for Brother P-touch label printers&lt;/div&gt;
&lt;div class=&quot;Normal&quot; style=&quot;font-family: Calibri, Arial; font-size: 11pt; line-height: 13pt; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;font-size: 11pt; line-height: 13pt;&quot;&gt;&amp;nbsp; Name and summary matches only, use &quot;search all&quot; for everything.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;Normal&quot; style=&quot;font-family: Calibri, Arial; font-size: 11pt; line-height: 13pt; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;
[root@pavan /]#&lt;/div&gt;
&lt;div class=&quot;Normal&quot; style=&quot;font-family: Calibri, Arial; font-size: 11pt; line-height: 13pt; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;
&lt;span class=&quot;Subtle_0020Emphasis__Char&quot; style=&quot;color: #898989; font-style: italic;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Subtle_0020Emphasis__Char&quot; style=&quot;color: #898989; font-style: italic;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;Installing the packages..&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;Subtle_0020Emphasis__Char&quot; style=&quot;color: #898989; font-style: italic;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Subtle_0020Emphasis__Char&quot; style=&quot;color: #898989; font-style: italic;&quot;&gt;&amp;nbsp;[root@pavan /]# yum install cups.x86_64&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;Normal&quot; style=&quot;font-family: Calibri, Arial; font-size: 11pt; line-height: 13pt; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;
Loaded plugins: product-id, rhnplugin, security, subscription-manager&lt;/div&gt;
&lt;div class=&quot;Normal&quot; style=&quot;font-family: Calibri, Arial; font-size: 11pt; line-height: 13pt; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;
Updating certificate-based repositories.&lt;/div&gt;
&lt;div class=&quot;Normal&quot; style=&quot;font-family: Calibri, Arial; font-size: 11pt; line-height: 13pt; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;
Setting up Install Process&lt;/div&gt;
&lt;div class=&quot;Normal&quot; style=&quot;font-family: Calibri, Arial; font-size: 11pt; line-height: 13pt; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;
Resolving Dependencies&lt;/div&gt;
&lt;div class=&quot;Normal&quot; style=&quot;font-family: Calibri, Arial; font-size: 11pt; line-height: 13pt; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;
Dependency Updated:&lt;/div&gt;
&lt;div class=&quot;Normal&quot; style=&quot;font-family: Calibri, Arial; font-size: 11pt; line-height: 13pt; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;
&amp;nbsp; dbus-libs.x86_64 1:1.2.24-7.el6_3&lt;/div&gt;
&lt;div class=&quot;Normal&quot; style=&quot;font-family: Calibri, Arial; font-size: 11pt; line-height: 13pt; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;font-size: 11pt; line-height: 13pt;&quot;&gt;Complete!&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;Normal&quot; style=&quot;font-family: Calibri, Arial; font-size: 11pt; line-height: 13pt; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;Normal&quot; style=&quot;font-size: 11pt; line-height: 13pt; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span class=&quot;Intense_0020Emphasis__Char&quot; style=&quot;font-style: italic;&quot;&gt;Install Hp Supported driver for cups printer.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;Normal&quot; style=&quot;font-family: Calibri, Arial; font-size: 11pt; line-height: 13pt; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;
&lt;span class=&quot;Subtle_0020Emphasis__Char&quot; style=&quot;color: #898989; font-style: italic;&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;Subtle_0020Emphasis__Char&quot; style=&quot;color: #898989; font-style: italic;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span class=&quot;Subtle_0020Emphasis__Char&quot; style=&quot;color: #898989; font-style: italic;&quot;&gt;[root@pavan /]# yum install gutenprint-cups.x86_64&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;Normal&quot; style=&quot;font-family: Calibri, Arial; font-size: 11pt; line-height: 13pt; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;
Loaded plugins: product-id, rhnplugin, security, subscription-manager&lt;/div&gt;
&lt;div class=&quot;Normal&quot; style=&quot;font-family: Calibri, Arial; font-size: 11pt; line-height: 13pt; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;
Updating certificate-based repositories.&lt;/div&gt;
&lt;div class=&quot;Normal&quot; style=&quot;font-family: Calibri, Arial; font-size: 11pt; line-height: 13pt; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;
Setting up Install Process&lt;/div&gt;
&lt;div class=&quot;Normal&quot; style=&quot;font-family: Calibri, Arial; font-size: 11pt; line-height: 13pt; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;
Resolving Dependencies&lt;/div&gt;
&lt;div class=&quot;Normal&quot; style=&quot;font-family: Calibri, Arial; font-size: 11pt; line-height: 13pt; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;
--&amp;gt; Running transaction check&lt;/div&gt;
&lt;div class=&quot;Normal&quot; style=&quot;font-family: Calibri, Arial; font-size: 11pt; line-height: 13pt; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;
---&amp;gt; Package gutenprint-cups.x86_64 0:5.2.5-2.el6 will be installed&lt;/div&gt;
&lt;div class=&quot;Normal&quot; style=&quot;font-family: Calibri, Arial; font-size: 11pt; line-height: 13pt; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;
--&amp;gt; Processing Dependency: gutenprint = 5.2.5-2.el6 for package: gutenprint-cups-5.2.5-2.el6.x86_64&lt;/div&gt;
&lt;div class=&quot;Normal&quot; style=&quot;font-family: Calibri, Arial; font-size: 11pt; line-height: 13pt; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;
--&amp;gt; Processing Dependency: libgutenprint.so.2()(64bit) for package: gutenprint-cups-5.2.5-2.el6.x86_64&lt;/div&gt;
&lt;div class=&quot;Normal&quot; style=&quot;font-family: Calibri, Arial; font-size: 11pt; line-height: 13pt; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;
--&amp;gt; Running transaction check&lt;/div&gt;
&lt;div class=&quot;Normal&quot; style=&quot;font-family: Calibri, Arial; font-size: 11pt; line-height: 13pt; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;
---&amp;gt; Package gutenprint.x86_64 0:5.2.5-2.el6 will be installed&lt;/div&gt;
&lt;div class=&quot;Normal&quot; style=&quot;font-family: Calibri, Arial; font-size: 11pt; line-height: 13pt; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;Normal&quot; style=&quot;font-family: Calibri, Arial; font-size: 11pt; line-height: 13pt; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;
Complete!&lt;/div&gt;
&lt;div class=&quot;Normal&quot; style=&quot;font-family: Calibri, Arial; font-size: 11pt; line-height: 13pt; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;
[root@pavan /]#&lt;/div&gt;
&lt;div class=&quot;Normal&quot; style=&quot;font-family: Calibri, Arial; font-size: 11pt; line-height: 13pt; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;
&lt;br /&gt;
Configuring cups&lt;/div&gt;
&lt;div class=&quot;Normal&quot; style=&quot;font-family: Calibri,Arial; line-height: 16pt; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;color: black; font-size: small;&quot;&gt;&lt;span class=&quot;Normal__Char&quot;&gt;Just edit /etc/cups/cupsd.conf&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;Normal&quot; style=&quot;font-family: Calibri, Arial; font-size: 11pt; line-height: 13pt; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;Normal&quot; style=&quot;font-family: Calibri, Arial; font-size: 11pt; line-height: 13pt; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;font-size: 11pt; line-height: 13pt;&quot;&gt;Keep the following entries:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;Subtitle&quot; style=&quot;color: #a0a0a0; font-family: Calibri, Arial; font-size: 11pt; line-height: 13pt; margin-bottom: 8pt; margin-top: 0pt;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;Subtitle&quot; style=&quot;color: #a0a0a0; font-family: Calibri, Arial; font-size: 11pt; line-height: 13pt; margin-bottom: 8pt; margin-top: 0pt;&quot;&gt;
&lt;span class=&quot;Subtitle__Char&quot; style=&quot;background-color: #f9f9f9; font-size: 11pt; letter-spacing: 0pt;&quot;&gt;# Only listen for connections from the local machine.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;Subtitle&quot; style=&quot;color: #a0a0a0; font-family: Calibri, Arial; font-size: 11pt; line-height: 13pt; margin-bottom: 8pt; margin-top: 0pt;&quot;&gt;
&lt;span class=&quot;Subtitle__Char&quot; style=&quot;background-color: #f9f9f9; font-size: 11pt; letter-spacing: 0pt;&quot;&gt;Listen 172.50.0.95:631&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;Subtitle&quot; style=&quot;color: #a0a0a0; font-family: Calibri, Arial; font-size: 11pt; line-height: 13pt; margin-bottom: 8pt; margin-top: 0pt;&quot;&gt;
&lt;span class=&quot;Subtitle__Char&quot; style=&quot;background-color: #f9f9f9; font-size: 11pt; letter-spacing: 0pt;&quot;&gt;Listen /var/run/cups/cups.sock&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;Normal&quot; style=&quot;font-family: Calibri, Arial; font-size: 11pt; line-height: 13pt; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;Normal&quot; style=&quot;font-family: Calibri, Arial; font-size: 11pt; line-height: 13pt; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;
&lt;span class=&quot;Normal__Char&quot; style=&quot;background-color: #f9f9f9; font-family: Verdana, Arial; font-size: 11pt;&quot;&gt;# Restrict access to the server...&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;Normal&quot; style=&quot;font-family: Calibri, Arial; font-size: 11pt; line-height: 13pt; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;
&lt;span class=&quot;Normal__Char&quot; style=&quot;background-color: #f9f9f9; font-family: Verdana, Arial; font-size: 11pt;&quot;&gt;&lt;location&gt;&lt;/location&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;Normal&quot; style=&quot;font-family: Calibri, Arial; font-size: 11pt; line-height: 13pt; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;
&lt;span class=&quot;Normal__Char&quot; style=&quot;background-color: #f9f9f9; font-family: Verdana, Arial; font-size: 11pt;&quot;&gt;&amp;nbsp; Order allow,deny&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;Normal&quot; style=&quot;font-family: Calibri, Arial; font-size: 11pt; line-height: 13pt; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;
&lt;span class=&quot;Normal__Char&quot; style=&quot;background-color: #f9f9f9; font-family: Verdana, Arial; font-size: 11pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;Normal__Char&quot; style=&quot;background-color: grey; font-family: Verdana, Arial; font-size: 11pt;&quot;&gt;Allow 192.168.0.0/16 10.0.0.0/8 62.243.72.0/24 127.0.0.1&amp;nbsp; (here add client vpn address)&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;Normal&quot; style=&quot;font-family: Calibri, Arial; font-size: 11pt; line-height: 13pt; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;
&lt;span class=&quot;Normal__Char&quot; style=&quot;background-color: #f9f9f9; font-family: Verdana, Arial; font-size: 11pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;Normal&quot; style=&quot;font-family: Calibri, Arial; font-size: 11pt; line-height: 13pt; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;
&lt;span class=&quot;Normal__Char&quot; style=&quot;background-color: #f9f9f9; font-family: Verdana, Arial; font-size: 11pt;&quot;&gt;# Restrict access to the admin pages...&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;Normal&quot; style=&quot;font-family: Calibri, Arial; font-size: 11pt; line-height: 13pt; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;
&lt;span class=&quot;Normal__Char&quot; style=&quot;background-color: #f9f9f9; font-family: Verdana, Arial; font-size: 11pt;&quot;&gt;&lt;location admin=&quot;&quot;&gt;&lt;/location&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;Normal&quot; style=&quot;font-family: Calibri, Arial; font-size: 11pt; line-height: 13pt; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;
&lt;span class=&quot;Normal__Char&quot; style=&quot;background-color: #f9f9f9; font-family: Verdana, Arial; font-size: 11pt;&quot;&gt;&amp;nbsp; Order allow,deny&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;Normal&quot; style=&quot;font-family: Calibri, Arial; font-size: 11pt; line-height: 13pt; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;
&lt;span class=&quot;Normal__Char&quot; style=&quot;background-color: #f9f9f9; color: red; font-family: Verdana, Arial; font-size: 11pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;Normal__Char&quot; style=&quot;background-color: grey; font-family: Verdana, Arial; font-size: 11pt;&quot;&gt;Allow 192.168.0.0/16 10.0.0.0/8 62.243.72.0/24 127.0.0.1&lt;/span&gt;&lt;span class=&quot;Normal__Char&quot; style=&quot;background-color: #f9f9f9; font-family: Verdana, Arial; font-size: 11pt;&quot;&gt;&amp;nbsp;(here add client vpn address)&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;Normal&quot; style=&quot;font-family: Calibri, Arial; font-size: 11pt; line-height: 13pt; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;
&lt;span class=&quot;Normal__Char&quot; style=&quot;background-color: #f9f9f9; font-family: Verdana, Arial; font-size: 11pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;Normal&quot; style=&quot;font-family: Calibri, Arial; font-size: 11pt; line-height: 13pt; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;Normal&quot; style=&quot;font-family: Calibri,Arial; line-height: 16pt; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;color: #666666; font-size: small;&quot;&gt;&lt;span class=&quot;Normal__Char&quot;&gt;open the port 631.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;Normal&quot; style=&quot;font-family: Calibri,Arial; line-height: 13pt; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;color: #666666; font-size: small;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;Normal&quot; style=&quot;font-family: Calibri,Arial; line-height: 16pt; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;color: #666666; font-size: small;&quot;&gt;&lt;span class=&quot;Normal__Char&quot;&gt;Service cups restart&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;Normal&quot; style=&quot;font-family: Calibri, Arial; font-size: 11pt; line-height: 13pt; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;Normal&quot; style=&quot;font-family: Calibri, Arial; font-size: 11pt; line-height: 13pt; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;span class=&quot;Normal__Char&quot; style=&quot;font-size: 11pt;&quot;&gt;Go to browser with ip address:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;Normal&quot; style=&quot;font-family: Calibri, Arial; font-size: 11pt; line-height: 13pt; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;Normal&quot; style=&quot;font-family: Calibri,Arial; line-height: 13pt; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;color: #666666; font-size: small;&quot;&gt;&lt;span class=&quot;Hyperlink__Char&quot;&gt;&lt;span class=&quot;Hyperlink__Char&quot; style=&quot;font-weight: bold;&quot;&gt;http://172.50.0.95:631/&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;Normal&quot; style=&quot;font-family: Calibri,Arial; line-height: 13pt; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;color: #666666; font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;Normal&quot; style=&quot;font-family: Calibri,Arial; line-height: 13pt; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;color: #666666; font-size: small;&quot;&gt;&lt;span class=&quot;Normal__Char&quot; style=&quot;font-weight: bold;&quot;&gt;Add the required printer &amp;amp; enjoy printing. ...&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;Normal&quot; style=&quot;font-family: Calibri, Arial; font-size: 11pt; line-height: 13pt; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://novice2linux.blogspot.com/feeds/7355168897350164334/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://novice2linux.blogspot.com/2013/05/installing-printer-in-linux-machine.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/968083310990733862/posts/default/7355168897350164334'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/968083310990733862/posts/default/7355168897350164334'/><link rel='alternate' type='text/html' href='http://novice2linux.blogspot.com/2013/05/installing-printer-in-linux-machine.html' title='Simple procedure to installing cups printer from Linux server:'/><author><name>pavan</name><uri>http://www.blogger.com/profile/15584902418083594456</uri><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-968083310990733862.post-138187881380554391</id><published>2013-01-25T20:54:00.000-08:00</published><updated>2013-07-13T20:46:49.390-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="issue"/><title type='text'>Linux Booting problems</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&amp;nbsp;&lt;b&gt;The&amp;nbsp;Linux&amp;nbsp;box not able to boot due to external file system errors&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
Loggin to single user mode # all file systems other than vg00&lt;br /&gt;
&lt;br /&gt;
a.)&amp;nbsp;interrupt&amp;nbsp;the normal booting process &amp;amp; enter into grub menu&lt;br /&gt;
then choose the kernel version you want to boot select it press enter. choose the second line starting &amp;nbsp; &lt;br /&gt;
with kernel and press e to edit. At the end of the line after one space put 1 (press enter key to save the changes) then b to boot in single user mode&lt;br /&gt;
&lt;br /&gt;
b) After it prompts for&amp;nbsp;logging&amp;nbsp;password enter root password and mount root file system in read write mode&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp;mount -o rw / &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;or munt -o remount,rw /&lt;br /&gt;
&amp;nbsp; &amp;nbsp;cp -p /etc/fstab /etc/fstab_25jan&lt;br /&gt;
&amp;nbsp; &amp;nbsp;/usr/bin/vim /etc/fstab&lt;br /&gt;
(# all&amp;nbsp;other&amp;nbsp;file systems other than vg00)&lt;br /&gt;
&lt;br /&gt;
reboot the server.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Linux kernel panic recovering through&amp;nbsp;maintenance&amp;nbsp;mode&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
Boot the&amp;nbsp;Linux OS through installation media and select recovery .&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://novice2linux.blogspot.com/feeds/138187881380554391/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://novice2linux.blogspot.com/2013/01/linux-booting-problems.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/968083310990733862/posts/default/138187881380554391'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/968083310990733862/posts/default/138187881380554391'/><link rel='alternate' type='text/html' href='http://novice2linux.blogspot.com/2013/01/linux-booting-problems.html' title='Linux Booting problems'/><author><name>pavan</name><uri>http://www.blogger.com/profile/15584902418083594456</uri><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-968083310990733862.post-325959239655875111</id><published>2013-01-25T20:41:00.000-08:00</published><updated>2013-02-04T03:33:14.941-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Script"/><title type='text'>Script For Searching alerts in Syslog and Dropping a mail</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
#!/usr/bin/sh&lt;br /&gt;
#################################################################################&lt;br /&gt;
# &amp;nbsp; &amp;nbsp; &amp;nbsp; Script Name &amp;nbsp;: syslog_error_chk.sh &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; # &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
# &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;# &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
# &amp;nbsp; &amp;nbsp; &amp;nbsp; Description &amp;nbsp;: Searches for errors in syslog and mail . &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;# &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
#################################################################################&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
LOG=/tmp/scsi_err.log&lt;br /&gt;
Se_file=/var/log/syslog/syslog.log&lt;br /&gt;
err1=&quot;error want to search&quot;&lt;br /&gt;
err2=&quot;error want to search&quot;&lt;br /&gt;
&lt;br /&gt;
&amp;gt;$LOG&lt;br /&gt;
&lt;br /&gt;
date +%Y&quot;_&quot;%b&quot;_&quot;%d&quot;_&quot;%H |awk -F &#39;_&#39; &#39;{print $1,$2,$3,$4}&#39;|while read cur_yr cur_mth cur_day cur_hr&lt;br /&gt;
do&lt;br /&gt;
srch_end_hr=0&lt;br /&gt;
srch_strt_hr=0&lt;br /&gt;
strt_day=0&lt;br /&gt;
srch_strt_mth=0&lt;br /&gt;
srch_strt_day=0&lt;br /&gt;
srch_string==0&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if [ ${cur_hr} -lt 2 ]&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; then&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; #let srch_end_hr=${cur_hr}+1&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; #let srch_strt_hr=24+${cur_hr}-2&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; #let strt_day=${cur_day}-1&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; srch_end_hr=` echo &quot;${cur_hr}+1&quot;|bc `&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; srch_strt_hr=` echo &quot;24+${cur_hr}-2&quot;|bc `&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; strt_day=` echo &quot;${cur_day}-1&quot;|bc `&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if [ ${strt_day} -eq 0 ]&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; then&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; case ${cur_mth} in&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Jan) srch_strt_mth=Dec&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;srch_strt_day=31;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Feb) srch_strt_mth=Jan&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;srch_strt_day=31;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Mar) srch_strt_mth=Feb&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;leap_yr=` echo &quot;${cur_yr}%4&quot;|bc `&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if [ &quot;$leap_yr&quot; -eq 0 ]&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; then&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; srch_strt_day=29&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; else&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; srch_strt_day=28&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; fi;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Apr) srch_strt_mth=Mar&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;srch_strt_day=31;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; May) srch_strt_mth=Apr&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;srch_strt_day=30;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Jun) srch_strt_mth=May&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;srch_strt_day=31;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Jul) srch_strt_mth=Jun&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;srch_strt_day=30;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Aug) srch_strt_mth=Jul&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;srch_strt_day=31;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Sep) srch_strt_mth=Aug&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;srch_strt_day=31;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Oct) srch_strt_mth=Sep&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;srch_strt_day=30;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Nov) srch_strt_mth=Oct&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;srch_strt_day=31;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Dec) srch_strt_mth=Nov&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; srch_strt_day=30;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;*) echo &quot;Invaild Current Month&quot; ;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; esac&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; else&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; #let srch_strt_day=${strt_day}&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; srch_strt_day=` echo ${strt_day} `&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; srch_strt_mth=` echo ${cur_mth} `&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; fi&lt;br /&gt;
if [ ${cur_hr} -eq 1 ]&lt;br /&gt;
then&lt;br /&gt;
egrep &quot;${err1}|${err2}&quot;&quot; $Se_file|grep &amp;nbsp;&quot;${srch_strt_mth} ${srch_strt_day} 23&quot; &amp;gt;&amp;gt;$LOG&lt;br /&gt;
egrep &quot;${err1}|${err2}&quot;&quot; $Se_file|grep &amp;nbsp;&quot;${cur_mth} ${cur_day} 00&quot; &amp;gt;&amp;gt;$LOG&lt;br /&gt;
egrep &quot;${err1}|${err2}&quot;&quot; $Se_file|grep &amp;nbsp;&quot;${cur_mth} ${cur_day} 01&quot; &amp;gt;&amp;gt;$LOG&lt;br /&gt;
else&lt;br /&gt;
egrep &quot;${err1}|${err2}&quot;&quot; $Se_file|grep &amp;nbsp;&quot;${srch_strt_mth} ${srch_strt_day} 22&quot; &amp;gt;&amp;gt;$LOG&lt;br /&gt;
egrep &quot;${err1}|${err2}&quot;&quot; $Se_file|grep &amp;nbsp;&quot;${srch_strt_mth} ${srch_strt_day} 23&quot;&amp;gt;&amp;gt;$LOG&lt;br /&gt;
egrep &quot;${err1}|${err2}&quot;&quot; $Se_file|grep &amp;nbsp;&quot;${cur_mth} ${cur_day} 00&quot; &amp;gt;&amp;gt;$LOG&lt;br /&gt;
fi&lt;br /&gt;
else&lt;br /&gt;
#let srch_end_hr=${cur_hr}+1&lt;br /&gt;
srch_end_hr=` echo &quot;${cur_hr}+1&quot;|bc `&lt;br /&gt;
#let srch_strt_hr=${cur_hr}-7&lt;br /&gt;
srch_strt_hr=` echo &quot;${cur_hr}-2&quot;|bc `&lt;br /&gt;
#let srch_strt_day=${cur_day}&lt;br /&gt;
srch_strt_day=` echo &quot;${cur_day}&quot; `&lt;br /&gt;
&amp;nbsp;srch_strt_mth=${cur_mth}&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if [ ${srch_strt_hr} -lt 10 ]&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;then&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;srch_strt_hr=` echo &quot;0${srch_strt_hr}&quot; `&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;fi&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if [ ${srch_end_hr} -lt 10 ]&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;then&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;srch_end_hr=` echo &quot;0${srch_end_hr}&quot; `&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;fi&lt;br /&gt;
&amp;nbsp; &amp;nbsp;while [ $srch_strt_hr -lt srch_end_hr ]&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;do&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;egrep &quot;${err1}|${err2}&quot; $Se_file|grep &quot;${srch_strt_mth} ${srch_strt_day} ${srch_strt_hr}&quot; &amp;gt;&amp;gt;$LOG&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;srch_strt_hr=`echo &quot;${srch_strt_hr}+1&quot;|bc`;&lt;br /&gt;
if [ ${srch_strt_hr} -lt 10 ]&lt;br /&gt;
then&lt;br /&gt;
srch_strt_hr=` echo &quot;0${srch_strt_hr}&quot; `&lt;br /&gt;
fi&lt;br /&gt;
&amp;nbsp; done&lt;br /&gt;
fi&lt;br /&gt;
count=` cat $LOG|wc -l `&lt;br /&gt;
&amp;nbsp;if [ ${count} -gt 0 ]&lt;br /&gt;
&amp;nbsp; &amp;nbsp;then&lt;br /&gt;
&amp;nbsp; &amp;nbsp; mailx -s &quot;SCSI read and write errors from &#39;$(hostname)&#39;&quot; xyz@gmail.com &amp;lt; $LOG&lt;br /&gt;
&amp;nbsp;fi&lt;br /&gt;
done&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://novice2linux.blogspot.com/feeds/325959239655875111/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://novice2linux.blogspot.com/2013/01/script-for-searching-alerts-in-syslog.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/968083310990733862/posts/default/325959239655875111'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/968083310990733862/posts/default/325959239655875111'/><link rel='alternate' type='text/html' href='http://novice2linux.blogspot.com/2013/01/script-for-searching-alerts-in-syslog.html' title='Script For Searching alerts in Syslog and Dropping a mail'/><author><name>pavan</name><uri>http://www.blogger.com/profile/15584902418083594456</uri><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-968083310990733862.post-5967719467396605808</id><published>2013-01-24T04:09:00.001-08:00</published><updated>2014-04-29T23:40:19.977-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Data"/><title type='text'>Unix Interview Questions</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;b&gt;&lt;span style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #444444; display: inline !important; float: none; font-family: Calibri, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 21.299999237060547px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;How to convert a ext2 file system to ext3 ?&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #444444; display: inline !important; float: none; font-family: Calibri, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 21.299999237060547px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;
&lt;span style=&quot;background-color: white; color: #444444; display: inline !important; float: none; font-family: Calibri, sans-serif; orphans: auto; text-align: start; text-indent: 0px; widows: auto;&quot;&gt;&lt;span style=&quot;font-size: 15px; line-height: 21.299999237060547px;&quot;&gt;What modprobe will do in&amp;nbsp;Linux&amp;nbsp;?&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #444444; display: inline !important; float: none; font-family: Calibri, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 21.299999237060547px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;
&lt;b&gt;&lt;span style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #444444; display: inline !important; float: none; font-family: Calibri, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 21.299999237060547px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;what is the use of kudzu ?&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #444444; display: inline !important; float: none; font-family: Calibri, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 21.299999237060547px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;
&lt;b&gt;&lt;span style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #444444; display: inline !important; float: none; font-family: Calibri, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 21.299999237060547px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;
&lt;b&gt;&lt;span style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #444444; display: inline !important; float: none; font-family: Calibri, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 21.299999237060547px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;
&lt;b&gt;&lt;span style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #444444; display: inline !important; float: none; font-family: Calibri, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 21.299999237060547px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;@@@@@@@@@@@@@@@@@@@@@@@@@@@&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #444444; display: inline !important; float: none; font-family: Calibri, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 21.299999237060547px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;@@@@@@@@@@@@@@@@@@@@@@@@@&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #444444; display: inline !important; float: none; font-family: Calibri, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 21.299999237060547px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;
&lt;b&gt;&lt;span style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #444444; display: inline !important; float: none; font-family: Calibri, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 21.299999237060547px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;How to print two files columwise in third file ?&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #444444; display: inline !important; float: none; font-family: Calibri, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 21.299999237060547px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;paste -d&#39; &#39; file1 file2&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #444444; display: inline !important; float: none; font-family: Calibri, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 21.299999237060547px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;How to check different error count in a log file ?&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #444444; display: inline !important; float: none; font-family: Calibri, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 21.299999237060547px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;Maintain error count record and if the error count is more than previous ignore. if the error count is less than previous reset the counters. &amp;nbsp; &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;How to reverse a string or check weather its a palindrome or not ?&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
string_new = rev string1 #### it gives the reverse of the string.&lt;br /&gt;
test string_new = string1; if [$? -eq 0] ;then do echo &quot;its a palindrome&quot;;fi&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #444444; display: inline !important; float: none; font-family: Calibri, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 21.299999237060547px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;########################################################3&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #444444; display: inline !important; float: none; font-family: Calibri, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 21.299999237060547px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;1) Tell me about yourself ?&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #444444; font-family: Calibri, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 21.299999237060547px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
&lt;br style=&quot;line-height: 21.299999237060547px;&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #444444; font-family: Calibri, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 21.299999237060547px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
2) tell me your day to day activities ?&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #444444; font-family: Calibri, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 21.299999237060547px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
&lt;br style=&quot;line-height: 21.299999237060547px;&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #444444; font-family: Calibri, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 21.299999237060547px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
3.) replacing a boot disk ?&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #444444; font-family: Calibri, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 21.299999237060547px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
&lt;br style=&quot;line-height: 21.299999237060547px;&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #444444; font-family: Calibri, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 21.299999237060547px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
4) patching HP-Ux ?&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #444444; font-family: Calibri, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 21.299999237060547px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
&lt;br style=&quot;line-height: 21.299999237060547px;&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #444444; font-family: Calibri, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 21.299999237060547px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
5) Hardware models you worked on ?&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #444444; font-family: Calibri, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 21.299999237060547px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
&lt;br style=&quot;line-height: 21.299999237060547px;&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #444444; font-family: Calibri, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 21.299999237060547px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
6) processor of Hp9000 series ?&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #444444; font-family: Calibri, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 21.299999237060547px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
&lt;br style=&quot;line-height: 21.299999237060547px;&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #444444; font-family: Calibri, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 21.299999237060547px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
7) How do you trouble shoot ?&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #444444; font-family: Calibri, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 21.299999237060547px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
&lt;br style=&quot;line-height: 21.299999237060547px;&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #444444; font-family: Calibri, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 21.299999237060547px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
8) script to cut a particular field ?&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #444444; font-family: Calibri, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 21.299999237060547px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
&lt;br style=&quot;line-height: 21.299999237060547px;&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #444444; font-family: Calibri, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 21.299999237060547px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
9) script to print a file reversely ?&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;tail -r myfile.txt &lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #444444; font-family: Calibri, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 21.299999237060547px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
&lt;br /&gt;
or&lt;br /&gt;
tac reverse of cat&lt;br /&gt;
&lt;br /&gt;
tac myfile.txt&lt;br /&gt;
&lt;br style=&quot;line-height: 21.299999237060547px;&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #444444; font-family: Calibri, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 21.299999237060547px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
10) perl scripting exp &amp;gt;. ?&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #444444; font-family: Calibri, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 21.299999237060547px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
&lt;br style=&quot;line-height: 21.299999237060547px;&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #444444; font-family: Calibri, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 21.299999237060547px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
11) &amp;nbsp;Disk addition ?&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #444444; font-family: Calibri, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 21.299999237060547px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
&lt;br style=&quot;line-height: 21.299999237060547px;&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #444444; font-family: Calibri, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 21.299999237060547px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
12) Disk addition in cluster ?&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #444444; font-family: Calibri, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 21.299999237060547px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
&lt;br style=&quot;line-height: 21.299999237060547px;&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #444444; font-family: Calibri, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 21.299999237060547px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
13) creating a software depot ?&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #444444; font-family: Calibri, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 21.299999237060547px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
&lt;br style=&quot;line-height: 21.299999237060547px;&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #444444; font-family: Calibri, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 21.299999237060547px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
14) checking model /&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #444444; font-family: Calibri, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 21.299999237060547px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
&lt;br style=&quot;line-height: 21.299999237060547px;&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #444444; font-family: Calibri, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 21.299999237060547px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
15) do you have any specific questions ?&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*************************************** &lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;Tell me about your work .. ?&lt;br /&gt;
&lt;br /&gt;
Rate yourself in Perl Scripting and Shell scripting ?&lt;br /&gt;
&lt;br /&gt;
How you write modules in puppet ?&lt;br /&gt;
&lt;br /&gt;
About exadata &amp;amp; Data Ontap ?&lt;br /&gt;
&lt;br /&gt;
Perl Scripting:&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;-- &amp;gt; Autoloader ?&lt;br /&gt;
&lt;br /&gt;
---&amp;gt; Difference between a module and package ?&lt;br /&gt;
&lt;br /&gt;
Tell me about your environment in puppet ?&lt;br /&gt;
&lt;br /&gt;
How to configure password less ssh ?&lt;br /&gt;
&lt;br /&gt;
Any Other Questions to Ask ?&lt;br /&gt;
&lt;br /&gt;
*************************************&lt;br /&gt;
*********************************** &lt;br /&gt;
Tell me about yourself?&lt;br /&gt;
&lt;br /&gt;
How do you rate on scale of 1-10?&lt;br /&gt;
&lt;br /&gt;
Hp Service Guard?&lt;br /&gt;
&amp;nbsp;How to configure a package?&lt;br /&gt;
&lt;br /&gt;
How do you mirror lv?&lt;br /&gt;
&lt;br /&gt;
How do you restore a failed disk?&lt;br /&gt;
&lt;br /&gt;
what is major number ? minor number ?&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
What are the contents of /etc/resolv.conf ?&lt;br /&gt;
&lt;br /&gt;
Significance of /etc/nsswitch.conf ?&lt;br /&gt;
&lt;br /&gt;
How do you check Newtwork interface speed ?&lt;br /&gt;
&lt;br /&gt;
How do you evoluate system performace ?&lt;br /&gt;
&lt;br /&gt;
Programming .. ?&lt;br /&gt;
&lt;br /&gt;
what is the o/p of &quot;echo $$&quot;?&lt;br /&gt;
&lt;br /&gt;
write a simple for loop ?&lt;br /&gt;
&lt;br /&gt;
Any idea on ldap ? How to configure ldap ?&lt;br /&gt;
&lt;br /&gt;
What are the backup tools present in your environment ?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;white-space: pre-wrap; word-wrap: break-word;&quot;&gt;                                                                     
                                                                     
                                                                     
                                             
� Is your current system more BSD or System IV based
and why?

� How do you boot into single user mode?

� What are the options for the shutdown command?

� What is the su du command used for?

� What is a super block?

� What command do you use to access the Super Block?

� What is the difference between a symbolic and hard
link? When would you use each?

� What directory holds file with the sticky bit and
when is it used?

� What command do you use to change file ownership and
privileges?

� What is another name for the kill command?

� What is the default value if you put no options on
the kill command?

� What is the letter equivalent of the -9 and -15
options?

� What are the nice and renice commands used for?

� What are the 7 fields in the /etc/passwd file? (on 1
line)

� What command do you use to create a device? What are
the 2 numbers associated with it?

� What are the termcap and terminfo commands used for?

� What is /etc/remote file used for?

� What command or tool do you use to format a disk?

� How do you create a mount point for a disk
partition?

� How do you create a file system on a new disk?

� Why wouldn&#39;t you use default options on mkfs?

� What it the lost+found directory and where does it
live?

� Name 3 tape mediums for backup

� What is a level 0 backup?  Level 1?  Level 2?

� Where is the backup info kept?

� Other than dump, name 2 other backup commands.

� What is SYSLOG? How does it work?

� What is a loadable kernel module?

� What is the difference between a classful and
classless IP address?

� What is the difference between the ARP and Reverse
ARP commands?

� What is a subnet mask?

� What is a default router? Where is used?

� What protocol does ping use?

� What is the difference between a hub, a switch, and
a router?

� What is the difference between DNS lookup and
reverse DNS lookup?

� What is PPP?

� Do you use USENET?  What version of Sendmail?

� Name 3 deamons on a UNIX system.

� What deamon is the system master deamon?

� What is the portmap deamon?

� What is the difference between x-server and
x-client?

1. What is the difference between .xinitrc and .xsession?




2. What is the difference between a gateway and a router?



3. Describe your experience with Microsoft Windows registry?



4. How many SCSI devices can be connected to a workstation with one single
   channel SCSI-2 controller?


5. Name the basic data types in PERL.


6. What must a text file begin with to be recognized as postscript code?


7. What does the UNIX gutinteg command do?



8.  What files, ownerships and permissions must be set for rsh to work without
    a password?



9.  How do you calculate the total number of blocks or sectors available on
    a disk?


10. If a SCSI hard drive was formatted on a SUN workstation and no data has
    yet been written to it, what needs to be do to use it on a non -SUN Linux 
    system?


11. Describe an SNMP application you have developed.




12. Describe the procedure for permanently modifying the initialization string
    on a modem connected to a Cisco termianl server.


13. In what subdirectory is the X windows hardware configuration file 
    XF86Config found on a system configured with Linux?


14. Describe some of the software project management tools you have used.



15. What is the path to the shutdown command on a DEC Alpha running OS/F?


16. Name the seven most important tools a System Administrator uses?





17. Describe methods you have used to assure completion of projects on 
    schedule. 



18. How would you set up cron entries for a non-priviledged account?


19. What is the path to the sendmail configuration file?


20. How would you remove all the core files on a filesystem.


21. What is the difference between Cnews and INN?


22. Briefly describe the sequence of events when printing a file under BSD..



23. What do the options 2755 mean to chmod?


24. What is RAID level 5? Level 0?


25. Describe the steps, tools and procedures you have used in project 
    management.




26. Describe the most complex client/server anomaly you have encountered and 
    how you solved it.




27. Describe your experience in forecasting server load and equipment 
    replacement.




28. What were your considerations in specifying a PC hardware standard?





Applicant Name:

Date:

how familiar are you with win32 programming/administration




how familiar are you with UNIX programming/administration




What do you consider good debugging techniques




What do you consider good system administration techniques




would you work better with set schedule or work on your own time




What classes/projects/experiences have you done that you think may help you




How comfortable are you ripping apart machines




Are you familiar with RAID/SCSI systems


1) What is the first line of defense in system security?




2) What should be used to maintain the /etc/shadow file?





3) What is the default shell for the &quot;root&quot; logonid?  What other shells
are acceptable for this logonid?





4) What is the function of the kernel?





5) Using the Bourne shell syntax, show the command that sets the PATH 
environment variable to look in /usr/bin first, /usr/local/bin second,
and the current directory last.





6) Show the command to search for any files or directories with question 
marks in their names.





7) Which of the following commands redirects output to a file?

 rd somefile &amp;gt; test
 cat somefile &amp;gt; test
 cat somefile &amp;gt;&amp;gt; test
 cat somefile | test


8) You are using &quot;vi&quot; to edit a file with multiple pages.  Which command
will take you down one page the fastest?





9) What command do you use to quit &quot;vi&quot; without saving changes?





10) Which command do you use to display a directory listing of files, 
including the file type?





11) What is the command to display on-line help for a unix command?





12) To display a list of all manual pages containing the keyword &quot;date&quot;, what
command would you type?





13) What command will display the first 10 lines of a file called &quot;junk&quot;?





14) What file will tell you where system log files are being written (if any)?




15) What command diplays a full listing of processes, including headers?





16) How do you terminate a process?





17) Using symbolic mode, add group write permissions to the file &quot;junk&quot;.
 Do the same using octal mode.





18) In the following, where does the output for standard error go?

 /usr/lib/sendmail -OQueueSortOrder=host -oQ/var/spool/mqueue-8h \
    -q &amp;gt;&amp;gt; /var/adm/log/mqueue-8h 2&amp;gt;&amp;amp;1





19) What is the command to check the available free disk space on all local
filesystems?  Which operating environment does the syntax used apply to?





20) You have need to configure a new network client and have been given the IP
&lt;span class=&quot;skype_c2c_print_container&quot;&gt;128.194.49.48&lt;/span&gt;&lt;span class=&quot;skype_c2c_container&quot; dir=&quot;ltr&quot; onmouseout=&quot;SkypeClick2Call.MenuInjectionHandler.hideMenu(event)&quot; onmouseover=&quot;SkypeClick2Call.MenuInjectionHandler.showMenu(this, event)&quot; skype_menu_props=&quot;{&amp;quot;numberToCall&amp;quot;:&amp;quot;+911281944948&amp;quot;,&amp;quot;isFreecall&amp;quot;:false,&amp;quot;isMobile&amp;quot;:false,&amp;quot;isRtl&amp;quot;:false}&quot; tabindex=&quot;-1&quot;&gt;&lt;span class=&quot;skype_c2c_highlighting_inactive_common&quot; dir=&quot;ltr&quot; skypeaction=&quot;skype_dropdown&quot;&gt;&lt;span class=&quot;skype_c2c_textarea_span&quot;&gt;&lt;img class=&quot;skype_c2c_logo_img&quot; src=&quot;resource://skype_ff_extension-at-jetpack/skype_ff_extension/data/call_skype_logo.png&quot; /&gt;&lt;span class=&quot;skype_c2c_text_span&quot;&gt;128.194.49.48&lt;/span&gt;&lt;span class=&quot;skype_c2c_free_text_span&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; in the 128.194.48.0/23 subnet.  You configure the machine
with that IP and set the default router as you were told but are not
getting packets or response to pings.  What is probably wrong?






21) Describe the X Window system client/server model.









22) Please list and describe 2 or more authentication mechanisms when displaying
X applications on remote displays.  Which one is &quot;better&quot; in terms of
security?





23) You added a line to /etc/aliases, but it doesn&#39;t seem to be working.  Why?




24) You commented out a server in inetd.conf, but it&#39;s still active. Why?





25) What&#39;s a process? What&#39;s an inode? Describe the difference between a
symlink and a hard link.





26) Name as many shells as you can.





27) How do you plan to document changes to this environment?





28) You have a problem and you don&#39;t know how to solve it.  Name all the
resources you can think of that you might consult.





29) What have you done recently that you particularly liked, or are proud of?





30) I have a file named &#39;dash fr&#39; (-fr); how do I get rid of it?





31) Why did I just ask that question?





32) What&#39;s the difference between a library function and system call?





33) The command to see who is on the system is:

  who
  what
  why
  where


34) Which commercial UNIX platform dominated the computer industry?

  FreeBSD
  Microsoft McUnix
  Solaris
  HP-UX
  Linux


35) In which file is the default router address kept?

  /etc/resolv.conf
  /etc/nsswitch.conf
  /etc/hosts
  /etc/defaultrouter


36) The first field field in an /etc/passwd entry is:

  The uid
  The name
  The gid
  The home directory.


37) According to POSIX.2, which of the following tests to see if file foo 
exists and is readable?

  test -f foo
  test -r foo
  test -w foo
  test -x foo


38) According to POSIX.2, which option tells sort to compare the keys in a
case-insensitive manner?
  
  -c
  -f
  -i
  -v


39) The renice command may alter the priority of:

  A single process
  All process in a process group
  All processes owned by a user
  All of the above


40) To setup a master/slave NIS system such that the slave takes over lookup
requests when the master crashes:

  run ypserv on the master; ypbind on the slave
  run ypserv,ypbind on the master; ypset on the slave
  run ypserv,ypbind on the master; ypserv,ypbind on the slave
  run ypserv on the master; ypserv -s on the slave


41) You boot a client machine and attempt to mount an NFS drive from the
server.  The NFS mount worked yesterday, and neither the server nor its NFS
export list has been modified since then.  The mount command just hangs.
Where do you look for the problem?





42) Acceptable levels of bad nfs calls fall under what percentages?

  10-15%
  1-2%
  45-55%
  anything under 90%


43) When debugging a core in gdb, what does the command &quot;bt&quot; give?

  the core memory
  heap usage
  the calling stack


44) Please describe the complete boot process for a Unix system (your choice,
but preferably Sun if known).  Start at the moment the power switch is
turned on.












 
45) What is the main negative aspect of telnet/rshell/rlogin with respect to
security?  Please list 2 or more mechanisms of overcoming that aspect.








46) How many devices can be attached to a SCSI/SCSI-2 bus?  A &quot;wide&quot; SCSI bus?





47) A user performed a &quot;cd;chmod 644 .&quot; before logging out.  What problem
occurs when they log in the next time, and what level of priviledge is
required to correct the problem?





48) Please describe the path and types of programs that handle an e-mail message
starting from when a system receives the first packet of information until
the recipient reads it.










49) A customer has created a web page and complains that attempts to view
it result in &quot;forbidden&quot; messages.  What is the main problem?  Directory
listing is as follows:

# ls -al
total 240
drwxr-xr-x   2 joeuser   other        8192 Apr 19 17:54 .
drwx------  57 joeuser   other        8192 Apr 16 14:13 ..
-rw-------   1 joeuser   other        6311 Apr 19 17:50 back.xbm
-rw-------   1 joeuser   other        9650 Apr 19 17:50 daemon.gif
-rw-------   1 joeuser   other       11230 Apr 19 17:50 ferret.jpg
-rw-------   1 joeuser   other       11925 Apr 19 17:50 giraffe.gif
-rw-------   1 joeuser   other       32760 Apr 19 17:50 help.gif
-rw-r--r--   1 joeuser   other         967 Apr 19 17:46 index.html
-rw-------   1 joeuser   other        3871 Apr 19 17:50 kewl.jpg
-rw-------   1 joeuser   other        9018 Apr 19 17:50 luser.jpg
-rw-------   1 joeuser   other        2143 Apr 19 17:50 news.gif
-rw-------   1 joeuser   other        9055 Apr 19 17:50 noms.gif
-rw-------   1 joeuser   other        3071 Apr 19 17:50 race.gif
-rw-------   1 joeuser   other        3301 Apr 19 17:50 sailbot.jpg
-rw-------   1 joeuser   other       10511 Apr 19 17:50 tamu.gif
-rw-------   1 joeuser   other       19696 Apr 19 17:50 tsip.jpg
-rw-------   1 joeuser   other        6376 Apr 19 17:50 unix.gif
-rw-------   1 joeuser   other        2267 Apr 19 17:50 xray.gif
-rw-------   1 joeuser   other        3858 Apr 19 17:50 zoom.jpg






50) What happens when you issue the following commands (as root):

 # kill -1 1


 # kill -1 -1


 # init 0


 # sync


 # rm /dev/console




&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;skype_c2c_menu_container&quot; id=&quot;skype_c2c_menu_container&quot; onmouseout=&quot;SkypeClick2Call.MenuInjectionHandler.hideMenu(event)&quot; onmouseover=&quot;SkypeClick2Call.MenuInjectionHandler.showMenu(this, event)&quot; style=&quot;display: none;&quot;&gt;
&lt;div class=&quot;skype_c2c_menu_click2call&quot;&gt;
&lt;a class=&quot;skype_c2c_menu_click2call_action&quot; href=&quot;https://www.blogger.com/null&quot; id=&quot;skype_c2c_menu_click2call_action&quot;&gt;Call&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;skype_c2c_menu_click2sms&quot;&gt;
&lt;a class=&quot;skype_c2c_menu_click2sms_action&quot; href=&quot;https://www.blogger.com/null&quot; id=&quot;skype_c2c_menu_click2sms_action&quot;&gt;Send SMS&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;skype_c2c_menu_add2skype&quot;&gt;
&lt;a class=&quot;skype_c2c_menu_add2skype_text&quot; href=&quot;https://www.blogger.com/null&quot; id=&quot;skype_c2c_menu_add2skype_text&quot;&gt;Add to Skype&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;skype_c2c_menu_toll_info&quot;&gt;
&lt;span class=&quot;skype_c2c_menu_toll_callcredit&quot;&gt;You&#39;ll need Skype Credit&lt;/span&gt;&lt;span class=&quot;skype_c2c_menu_toll_free&quot;&gt;Free via Skype&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://novice2linux.blogspot.com/feeds/5967719467396605808/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://novice2linux.blogspot.com/2013/01/unix-interview-questions.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/968083310990733862/posts/default/5967719467396605808'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/968083310990733862/posts/default/5967719467396605808'/><link rel='alternate' type='text/html' href='http://novice2linux.blogspot.com/2013/01/unix-interview-questions.html' title='Unix Interview Questions'/><author><name>pavan</name><uri>http://www.blogger.com/profile/15584902418083594456</uri><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-968083310990733862.post-3773692774402470296</id><published>2013-01-12T01:53:00.000-08:00</published><updated>2013-01-25T20:58:07.132-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Data"/><title type='text'>Useful links</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;background-color: white; font-family: Calibri, sans-serif; font-size: 16px;&quot;&gt;
&lt;b&gt;Redhat LVM&lt;/b&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;background-color: white; font-family: Calibri, sans-serif; font-size: 16px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;background-color: white; font-family: Calibri, sans-serif; font-size: 16px;&quot;&gt;
&lt;a href=&quot;https://access.redhat.com/knowledge/docs/en-US/Red_Hat_Enterprise_Linux/5/html-single/Logical_Volume_Manager_Administration/index.html&quot;&gt;https://access.redhat.com/knowledge/docs/en-US/Red_Hat_Enterprise_Linux/5/html-single/Logical_Volume_Manager_Administration/index.html&lt;/a&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;background-color: white; font-family: Calibri, sans-serif; font-size: 16px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;background-color: white; font-family: Calibri, sans-serif; font-size: 16px;&quot;&gt;
&lt;a href=&quot;https://access.redhat.com/knowledge/docs/en-US/Red_Hat_Enterprise_Linux/4/html/System_Administration_Guide/s1-rescuemode-booting-single.html&quot;&gt;https://access.redhat.com/knowledge/docs/en-US/Red_Hat_Enterprise_Linux/4/html/System_Administration_Guide/s1-rescuemode-booting-single.html&lt;/a&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;background-color: white; font-family: Calibri, sans-serif; font-size: 16px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;background-color: white; font-family: Calibri, sans-serif; font-size: 16px;&quot;&gt;
&lt;b&gt;Linux SAN and devices:&lt;/b&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;background-color: white; font-family: Calibri, sans-serif; font-size: 16px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;background-color: white; font-family: Calibri, sans-serif; font-size: 16px;&quot;&gt;
&lt;a href=&quot;http://www.swissunixsupport.com/tips/linuxsan&quot;&gt;http://www.swissunixsupport.com/tips/linuxsan&lt;/a&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;background-color: white; font-family: Calibri, sans-serif; font-size: 16px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;background-color: white; font-family: Calibri, sans-serif; font-size: 16px;&quot;&gt;
&lt;b&gt;Solaris file system:&lt;/b&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;background-color: white; font-family: Calibri, sans-serif; font-size: 16px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;background-color: white; font-family: Calibri, sans-serif; font-size: 16px;&quot;&gt;
&lt;a href=&quot;http://www.hyborian.demon.co.uk/notes/vx_cli.html&quot;&gt;http://www.hyborian.demon.co.uk/notes/vx_cli.html&lt;/a&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;background-color: white; font-family: Calibri, sans-serif; font-size: 16px;&quot;&gt;
&lt;a href=&quot;http://www.tek-tips.com/viewthread.cfm?qid=323113&quot;&gt;http://www.tek-tips.com/viewthread.cfm?qid=323113&lt;/a&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;background-color: white; font-family: Calibri, sans-serif; font-size: 16px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;background-color: white; font-family: Calibri, sans-serif; font-size: 16px;&quot;&gt;
&lt;b&gt;Hpux Bad disk:&lt;/b&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;background-color: white; font-family: Calibri, sans-serif; font-size: 16px;&quot;&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;background-color: white; font-family: Calibri, sans-serif; font-size: 16px;&quot;&gt;
&lt;a href=&quot;http://bizsupport2.austin.hp.com/bc/docs/support/SupportManual/c01911837/c01911837.pdf&quot;&gt;http://bizsupport2.austin.hp.com/bc/docs/support/SupportManual/c01911837/c01911837.pdf&lt;/a&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;background-color: white; font-family: Calibri, sans-serif; font-size: 16px;&quot;&gt;
&lt;a href=&quot;http://kmit4u.blogspot.dk/2010/06/unix-hp-ux-how-to-check-bad-disk.html&quot;&gt;http://kmit4u.blogspot.dk/2010/06/unix-hp-ux-how-to-check-bad-disk.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Hpux upgrade:&lt;/b&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;background-color: white; font-family: Calibri, sans-serif; font-size: 16px;&quot;&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;background-color: white; font-family: Calibri, sans-serif; font-size: 16px;&quot;&gt;
&lt;a href=&quot;http://h71028.www7.hp.com/enterprise/downloads/5667-Henderson_transcript.pdf&quot;&gt;http://h71028.www7.hp.com/enterprise/downloads/5667-Henderson_transcript.pdf&lt;/a&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;background-color: white; font-family: Calibri, sans-serif; font-size: 16px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;background-color: white; font-family: Calibri, sans-serif; font-size: 16px;&quot;&gt;
&lt;b&gt;Hp Service Guard Cluster:&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;http://www.pearsonhighered.com/samplechapter/0131463969.pdf&quot; target=&quot;_blank&quot;&gt;http://www.pearsonhighered.com/samplechapter/0131463969.pdf&lt;/a&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;background-color: white; font-family: Calibri, sans-serif; font-size: 16px;&quot;&gt;
&lt;a href=&quot;http://mailsinto.blogspot.dk/p/cluster-commands.html&quot;&gt;http://mailsinto.blogspot.dk/p/cluster-commands.html&lt;/a&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;background-color: white; font-family: Calibri, sans-serif; font-size: 16px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;background-color: white; font-family: Calibri, sans-serif; font-size: 16px;&quot;&gt;
&lt;a href=&quot;http://ktkb.wordpress.com/category/hp-ux/&quot;&gt;http://ktkb.wordpress.com/category/hp-ux/&lt;/a&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;background-color: white; font-family: Calibri, sans-serif; font-size: 16px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;background-color: white; font-family: Calibri, sans-serif; font-size: 16px;&quot;&gt;
&lt;a href=&quot;http://docstore.mik.ua/manuals/hp-ux/en/B3936-90122/ch07s01.html&quot;&gt;http://docstore.mik.ua/manuals/hp-ux/en/B3936-90122/ch07s01.html&lt;/a&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;background-color: white; font-family: Calibri, sans-serif; font-size: 16px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;background-color: white; font-family: Calibri, sans-serif; font-size: 16px;&quot;&gt;
&lt;b&gt;Hp Ux Troubleshooting:&lt;/b&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;background-color: white; font-family: Calibri, sans-serif; font-size: 16px;&quot;&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;background-color: white; font-family: Calibri, sans-serif; font-size: 16px;&quot;&gt;
&lt;a href=&quot;http://bizsupport1.austin.hp.com/bc/docs/support/SupportManual/c01942679/c01942679.pdf&quot;&gt;http://bizsupport1.austin.hp.com/bc/docs/support/SupportManual/c01942679/c01942679.pdf&lt;/a&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;background-color: white; font-family: Calibri, sans-serif; font-size: 16px;&quot;&gt;
&lt;a href=&quot;http://h20000.www2.hp.com/bizsupport/TechSupport/SupportTaskIndex.jsp?lang=en&amp;amp;cc=us&amp;amp;taskId=110&amp;amp;prodTypeId=18964&amp;amp;prodSeriesId=5103987&quot;&gt;http://h20000.www2.hp.com/bizsupport/TechSupport/SupportTaskIndex.jsp?lang=en&amp;amp;cc=us&amp;amp;taskId=110&amp;amp;prodTypeId=18964&amp;amp;prodSeriesId=5103987&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Hp Ux Network Speed:&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;http://www.symantec.com/business/support/index?page=content&amp;amp;id=TECH15108&quot; target=&quot;_blank&quot;&gt;http://www.symantec.com/business/support/index?page=content&amp;amp;id=TECH15108&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;http://h30499.www3.hp.com/t5/System-Administration/How-to-check-the-speed-of-network-interface-in-HP-Unix-server/td-p/3900628&quot; target=&quot;_blank&quot;&gt;http://h30499.www3.hp.com/t5/System-Administration/How-to-check-the-speed-of-network-interface-in-HP-Unix-server/td-p/3900628&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;background-color: white; font-family: Calibri, sans-serif; font-size: 16px;&quot;&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://novice2linux.blogspot.com/feeds/3773692774402470296/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://novice2linux.blogspot.com/2013/01/useful-links.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/968083310990733862/posts/default/3773692774402470296'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/968083310990733862/posts/default/3773692774402470296'/><link rel='alternate' type='text/html' href='http://novice2linux.blogspot.com/2013/01/useful-links.html' title='Useful links'/><author><name>pavan</name><uri>http://www.blogger.com/profile/15584902418083594456</uri><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-968083310990733862.post-4730142485984474385</id><published>2012-09-09T09:09:00.000-07:00</published><updated>2013-01-25T20:38:49.396-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Data"/><title type='text'>Capacity Request for LVM (Hp ux and Redhat)</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Types:&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Linux Normal&lt;/b&gt;::&lt;br /&gt;
&lt;br /&gt;
1. discover new disk by scanning hbas (vendor specific scripts ) or echo &quot;- - -&quot;&lt;br /&gt;
2. then use fdisk &lt;br /&gt;
3.pvcreate /dev/rdsk/C0t1d23&lt;br /&gt;
4.mknod&lt;br /&gt;
5.vgcreate&lt;br /&gt;
6.lvcreate&lt;br /&gt;
&amp;nbsp; &amp;nbsp;b.) makefs&lt;br /&gt;
7.mount&lt;br /&gt;
&lt;br /&gt;
##################for existing lv ##########&lt;br /&gt;
vgextend&lt;br /&gt;
lvextend&lt;br /&gt;
extend2fs &amp;nbsp;or resize2fs depending on the version which supports&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Linux Cluster&lt;/b&gt;::&lt;br /&gt;
&lt;br /&gt;
For Cluster follow the same procedure ..&lt;br /&gt;
&lt;br /&gt;
we have to restart cluster service in other node&lt;br /&gt;
service cmcld stop/start&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Hp-Ux Normal:&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
1.) take ioscan out put to one file &amp;amp; then do insf -c disk to discover the disk&lt;br /&gt;
2.) take ioscan out put and compare to find new disks&lt;br /&gt;
3.) pvcreate /dev/rdsk/cxtydz&lt;br /&gt;
4.)vgcreate&lt;br /&gt;
5.)lvcreate&lt;br /&gt;
6.)makefs&lt;br /&gt;
7.)mount&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;br /&gt;
##################for existing lv ##########&lt;br /&gt;
vgextend&lt;br /&gt;
lvextend&lt;br /&gt;
fsadm or extendfs depending on the version which supports&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b&gt;Hp-Ux Cluster:&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
Follow the above steps . &amp;nbsp;. if extended vg then we have to do vgexport in&amp;nbsp;preview&amp;nbsp;mode and &amp;nbsp;in other node we to export the vg and we have to import again with new map file.&lt;br /&gt;
&lt;br /&gt;
Node 1: (active)&lt;br /&gt;
vgexport -p -v -s -m old.dsk old.map /dev/testvg&lt;br /&gt;
scp old.map node2:/&lt;br /&gt;
&lt;br /&gt;
Node 2:&lt;br /&gt;
vgexport /dev/testvg&lt;br /&gt;
vgimport -m old.map -s /dev/testvg&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b&gt;Hp-Ux BCV / GBCV :&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
We have to mask the corresponding BCV / GBCV luns&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b&gt;Common Problems::&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
1.) File system is 100%&amp;nbsp;utilized..&lt;br /&gt;
&amp;nbsp;a) then we have to extend small amount&lt;br /&gt;
&amp;nbsp;b) Free up some space to write&lt;br /&gt;
2.) Number of free PE s completed&lt;br /&gt;
3.) Need to defragment the file system&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://novice2linux.blogspot.com/feeds/4730142485984474385/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://novice2linux.blogspot.com/2012/09/capacity-request-for-lvm.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/968083310990733862/posts/default/4730142485984474385'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/968083310990733862/posts/default/4730142485984474385'/><link rel='alternate' type='text/html' href='http://novice2linux.blogspot.com/2012/09/capacity-request-for-lvm.html' title='Capacity Request for LVM (Hp ux and Redhat)'/><author><name>pavan</name><uri>http://www.blogger.com/profile/15584902418083594456</uri><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-968083310990733862.post-8710216895063228767</id><published>2012-04-04T22:36:00.001-07:00</published><updated>2012-04-04T22:40:33.669-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Script"/><title type='text'>grep -r in Hp-Ux // Recursive grep in Hp-Ux</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;We can use the below script to search recursively in hp-ux. We can added this to path. so that we can run it directly any time.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;#!/usr/bin/sh&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;typeset DIR=$1&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;typeset PAT=$2&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;find ${DIR} -xdev -type f | while read FILE&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;do&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;[ `file ${FILE} | grep -c ascii` -eq 0 ] &amp;amp;&amp;amp; continue&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;grep &quot;$PAT&quot; ${FILE} /dev/null&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;done&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;exit 0&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
&lt;span style=&quot;color: #0b5394;&quot;&gt;...run as:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #0b5394;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #0b5394;&quot;&gt;# ./temp /path pattern&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://novice2linux.blogspot.com/feeds/8710216895063228767/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://novice2linux.blogspot.com/2012/04/grep-r-in-hp-ux-recursive-searching-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/968083310990733862/posts/default/8710216895063228767'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/968083310990733862/posts/default/8710216895063228767'/><link rel='alternate' type='text/html' href='http://novice2linux.blogspot.com/2012/04/grep-r-in-hp-ux-recursive-searching-in.html' title='grep -r in Hp-Ux // Recursive grep in Hp-Ux'/><author><name>pavan</name><uri>http://www.blogger.com/profile/15584902418083594456</uri><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-968083310990733862.post-6928067873461765102</id><published>2011-12-20T22:44:00.000-08:00</published><updated>2011-12-20T22:46:08.459-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="command"/><title type='text'>Send large files to email from linux box</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;color: #38761d;&quot;&gt;
&lt;b&gt;uuencode&lt;/b&gt;:&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;color: #0b5394;&quot;&gt;
we can send large files to email from linux box using this command.&lt;/div&gt;
&lt;div style=&quot;color: #0b5394;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: black;&quot;&gt;
&lt;b&gt;Syntax:&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;color: black;&quot;&gt;
uuencode file-name file-name|sendmail -v mailid@mail.com&lt;/div&gt;
&lt;div style=&quot;color: black;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: black;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; or&lt;/div&gt;
&lt;div style=&quot;color: black;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;color: #0b5394;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;uuencode file-name file-name|mailx -s &quot;some-file&quot; mailid@mail.com&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://novice2linux.blogspot.com/feeds/6928067873461765102/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://novice2linux.blogspot.com/2011/12/send-large-files-to-email-from-linux.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/968083310990733862/posts/default/6928067873461765102'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/968083310990733862/posts/default/6928067873461765102'/><link rel='alternate' type='text/html' href='http://novice2linux.blogspot.com/2011/12/send-large-files-to-email-from-linux.html' title='Send large files to email from linux box'/><author><name>pavan</name><uri>http://www.blogger.com/profile/15584902418083594456</uri><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-968083310990733862.post-5173121101774584574</id><published>2011-06-13T06:11:00.000-07:00</published><updated>2011-06-13T06:12:49.316-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Data"/><title type='text'>UNIX95</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;
################################################################################&lt;br /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;UNIX95&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
UNIX95= ps -eo pid,user,sz,vsz,args|sort -nbk3|tail -20 &amp;nbsp;(it will sort according to third field i.e sz)&lt;br /&gt;
&lt;br /&gt;
UNIX95= ps -ef -o pid,ruser,vsz,args|sort -nrk3&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;UNIX95= ps -eo pid,user,sz,vsz,pcpu,args|sort -nbk5 | tail -10&amp;nbsp; (for cpu)&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;UNIX95= ps -eo pid,user,sz,vsz,args|sort -nbk3|tail -20&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;UNIX95= ps -eo pid,user,sz,vsz,args|sort -nbk3|grep -i &#39;LOCAL=NO&#39;|wc -l&lt;/div&gt;&lt;br /&gt;
&amp;nbsp;#################################################################&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://novice2linux.blogspot.com/feeds/5173121101774584574/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://novice2linux.blogspot.com/2011/06/unix95.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/968083310990733862/posts/default/5173121101774584574'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/968083310990733862/posts/default/5173121101774584574'/><link rel='alternate' type='text/html' href='http://novice2linux.blogspot.com/2011/06/unix95.html' title='UNIX95'/><author><name>pavan</name><uri>http://www.blogger.com/profile/15584902418083594456</uri><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-968083310990733862.post-2088790025745352002</id><published>2011-06-13T06:09:00.000-07:00</published><updated>2012-04-04T22:42:14.269-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="issue"/><title type='text'>GBL_MI_LOST_PROC is greater than zero.</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;br /&gt;
#view /var/opt/perf/status.scope&lt;br /&gt;
GBL_MI_LOST_PROC is greater than zero:&lt;br /&gt;
**** 06/11/11 00:35:00 ****&lt;br /&gt;
Server collector startup completed, beginning data collection.&lt;br /&gt;
Collection intervals: Process = 60&amp;nbsp;&amp;nbsp; Global = 300&lt;br /&gt;
Warning: GBL_MI_LOST_PROC is greater than zero.&lt;br /&gt;
**** /opt/perf/bin/scopeux : 06/11/11 23:30:00 ****&lt;br /&gt;
Start of /var/opt/perf/datafiles/logproc file roll&lt;br /&gt;
**** /opt/perf/bin/scopeux : 06/11/11 23:30:24 ****&lt;br /&gt;
Successfully rolled /var/opt/perf/datafiles/logproc.&lt;br /&gt;
@@@@@@@@@@@&lt;br /&gt;
ref: &lt;br /&gt;
GBL_MI_LOST_PROC:-&lt;br /&gt;
The number of processes the measurement layer has lost the ability to update during the interval. This is an indication the &lt;br /&gt;
system activity might require the midaemon be restarted with a larger process count. See the midaemon man page for additional &lt;br /&gt;
information on the -pids parameter.&lt;br /&gt;
man midaemon&lt;br /&gt;
18:root [/var/opt/perf] file status.mi&lt;br /&gt;
status.mi:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ascii text&lt;br /&gt;
18:root [/var/opt/perf] cat status.mi|tail -30&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
&lt;a href=&quot;http://forums11.itrc.hp.com/service/forums/questionanswer.do?admit=109447626+1307944817619+28353475&amp;amp;threadId=1174457&quot;&gt;http://forums11.itrc.hp.com/service/forums/questionanswer.do?admit=109447626+1307944817619+28353475&amp;amp;threadId=1174457&lt;/a&gt;&lt;br /&gt;
##################################################################################&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://novice2linux.blogspot.com/feeds/2088790025745352002/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://novice2linux.blogspot.com/2011/06/gblmilostproc-is-greater-than-zero.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/968083310990733862/posts/default/2088790025745352002'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/968083310990733862/posts/default/2088790025745352002'/><link rel='alternate' type='text/html' href='http://novice2linux.blogspot.com/2011/06/gblmilostproc-is-greater-than-zero.html' title='GBL_MI_LOST_PROC is greater than zero.'/><author><name>pavan</name><uri>http://www.blogger.com/profile/15584902418083594456</uri><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-968083310990733862.post-4184870842061193722</id><published>2011-06-10T19:57:00.001-07:00</published><updated>2012-04-04T22:41:22.661-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Data"/><title type='text'>BCV(Business Continuity Volume)</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: separate; color: black; font-family: &#39;Times New Roman&#39;; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Geneva, sans-serif; font-size: 13px;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-top: 0px;&quot;&gt;
&lt;span style=&quot;color: #000055;&quot;&gt;&lt;b&gt;EMC&amp;nbsp;for DBA&#39;s&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-top: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-top: 0px;&quot;&gt;
&lt;span style=&quot;color: #000055;&quot;&gt;&lt;span style=&quot;color: #000055;&quot;&gt;Symmetrix refers to the EMC disk devices, disks within thid symmetix can be divided into various sized logical volumes, these logical volumes can be logicaly joined together and presented to a server.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-top: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-top: 0px;&quot;&gt;
&lt;span style=&quot;color: #000055;&quot;&gt;&lt;span style=&quot;color: #000055;&quot;&gt;&lt;span style=&quot;color: #000071;&quot;&gt;There are 2 types of logical volume:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-top: 0px;&quot;&gt;
&lt;span style=&quot;color: #000055;&quot;&gt;&lt;span style=&quot;color: #000055;&quot;&gt;&lt;span style=&quot;color: #000071;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-top: 0px;&quot;&gt;
&lt;span style=&quot;color: #000055;&quot;&gt;&lt;span style=&quot;color: #000055;&quot;&gt;&lt;span style=&quot;color: #000071;&quot;&gt;&lt;b&gt;Hypervolumes&lt;/b&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;- range of continuos&amp;nbsp;space on a single disk. A single disk can be divided into 128 parts or hypervolumes this is refered to as slicing or splitting. These now form the basis to create metavolumes.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-top: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-top: 0px;&quot;&gt;
&lt;span style=&quot;color: #000055;&quot;&gt;&lt;span style=&quot;color: #000055;&quot;&gt;&lt;span style=&quot;color: #000071;&quot;&gt;&lt;span style=&quot;color: #000071;&quot;&gt;&lt;b&gt;Metavolumes&lt;/b&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;- A group of hypervolumes of the same size grouped together, this is then presented to a server. Once part of a metavolume, only the whole meta can be presented to the server not single disks.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-top: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-top: 0px;&quot;&gt;
&lt;span style=&quot;color: #000055;&quot;&gt;&lt;span style=&quot;color: #000055;&quot;&gt;&lt;span style=&quot;color: #000071;&quot;&gt;&lt;span style=&quot;color: #000071;&quot;&gt;&lt;span style=&quot;color: #000071;&quot;&gt;&lt;b&gt;Meta Head and Tail&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-top: 0px;&quot;&gt;
&lt;span style=&quot;color: #000055;&quot;&gt;&lt;span style=&quot;color: #000055;&quot;&gt;&lt;span style=&quot;color: #000071;&quot;&gt;&lt;span style=&quot;color: #000071;&quot;&gt;&lt;span style=&quot;color: #000071;&quot;&gt;When hypervolumes are added to a metavolume they are given a sequence, the first hyper being the head and last being the tail. Data is written to Meta from head to tail.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-top: 0px;&quot;&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-top: 0px;&quot;&gt;
&lt;span style=&quot;color: #000055;&quot;&gt;&lt;span style=&quot;color: #000055;&quot;&gt;&lt;span style=&quot;color: #000071;&quot;&gt;&lt;span style=&quot;color: #000071;&quot;&gt;&lt;span style=&quot;color: #000055;&quot;&gt;&lt;span style=&quot;color: #000055;&quot;&gt;&lt;b&gt;Concatenated Metavolume&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-top: 0px;&quot;&gt;
&lt;span style=&quot;color: #000055;&quot;&gt;&lt;span style=&quot;color: #000055;&quot;&gt;&lt;span style=&quot;color: #000071;&quot;&gt;&lt;span style=&quot;color: #000071;&quot;&gt;&lt;span style=&quot;color: #000055;&quot;&gt;&lt;span style=&quot;color: #000055;&quot;&gt;Writes data to one hypervolume at time until it becomes full, then moves onto the next&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-top: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-top: 0px;&quot;&gt;
&lt;span style=&quot;color: #000055;&quot;&gt;&lt;span style=&quot;color: #000055;&quot;&gt;&lt;span style=&quot;color: #000071;&quot;&gt;&lt;span style=&quot;color: #000071;&quot;&gt;&lt;span style=&quot;color: #000055;&quot;&gt;&lt;span style=&quot;color: #000055;&quot;&gt;&lt;span style=&quot;color: #000055;&quot;&gt;&lt;b&gt;Striped Metavolume&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-top: 0px;&quot;&gt;
&lt;span style=&quot;color: #000055;&quot;&gt;&lt;span style=&quot;color: #000055;&quot;&gt;&lt;span style=&quot;color: #000071;&quot;&gt;&lt;span style=&quot;color: #000071;&quot;&gt;&lt;span style=&quot;color: #000055;&quot;&gt;&lt;span style=&quot;color: #000055;&quot;&gt;&lt;span style=&quot;color: #000055;&quot;&gt;Data is written to metavolume in multiples of cylinder size. The first write will go to first meta (head), then the next write to the next meta and so on. Amount of data written to the hypervolume depends on the stripe size. The stripe size is based on being a minimum of 2 cylinders. A cylinder is 480K so minimium stripe size is 960K.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-top: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-top: 0px;&quot;&gt;
&lt;span style=&quot;color: #000055;&quot;&gt;&lt;span style=&quot;color: #000055;&quot;&gt;&lt;span style=&quot;color: #000071;&quot;&gt;&lt;span style=&quot;color: #000071;&quot;&gt;&lt;span style=&quot;color: #000055;&quot;&gt;&lt;span style=&quot;color: #000055;&quot;&gt;&lt;span style=&quot;color: #000055;&quot;&gt;&lt;span style=&quot;color: #000055;&quot;&gt;Server disks in&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;b&gt;EMC are usually refered to as R1 disks&lt;/b&gt;, copies of these disks will be known as&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;b&gt;R1 BCV&lt;/b&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;disks. Remote disks kept in sync with SRDF would be called R2 disks.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-top: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-top: 0px;&quot;&gt;
&lt;span style=&quot;color: #000055;&quot;&gt;&lt;span style=&quot;color: #000055;&quot;&gt;&lt;span style=&quot;color: #000071;&quot;&gt;&lt;span style=&quot;color: #000071;&quot;&gt;&lt;span style=&quot;color: #000055;&quot;&gt;&lt;span style=&quot;color: #000055;&quot;&gt;&lt;span style=&quot;color: #000055;&quot;&gt;&lt;span style=&quot;color: #000055;&quot;&gt;&lt;span style=&quot;color: #000055;&quot;&gt;&lt;b&gt;BCV&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-top: 0px;&quot;&gt;
&lt;span style=&quot;color: #000055;&quot;&gt;&lt;span style=&quot;color: #000055;&quot;&gt;&lt;span style=&quot;color: #000071;&quot;&gt;&lt;span style=&quot;color: #000071;&quot;&gt;&lt;span style=&quot;color: #000055;&quot;&gt;&lt;span style=&quot;color: #000055;&quot;&gt;&lt;span style=&quot;color: #000055;&quot;&gt;&lt;span style=&quot;color: #000055;&quot;&gt;&lt;span style=&quot;color: #000055;&quot;&gt;A BCV (Business Continuity Volume) is a mirrored on demand set of disks. This is usually used for backup purposes to capture a copy of a database. With a cold BCV backup the Oracle database would be shutdown first. With a hot backup 2 disk volumes assocated with the BCV would be defined. The database would be put in backup mode the a snapshot of disk volume 1 would be taken that contained all the datafiles. After this a log switch would occur then a snap shot of the second disk volume that contained all the archive logs would be taken.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-top: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-top: 0px;&quot;&gt;
&lt;span style=&quot;color: #000055;&quot;&gt;&lt;span style=&quot;color: #000055;&quot;&gt;&lt;span style=&quot;color: #000071;&quot;&gt;&lt;span style=&quot;color: #000071;&quot;&gt;&lt;span style=&quot;color: #000055;&quot;&gt;&lt;span style=&quot;color: #000055;&quot;&gt;&lt;span style=&quot;color: #000055;&quot;&gt;&lt;span style=&quot;color: #000055;&quot;&gt;&lt;span style=&quot;color: #000055;&quot;&gt;&lt;span style=&quot;color: #000055;&quot;&gt;&lt;b&gt;SRDF&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-top: 0px;&quot;&gt;
&lt;span style=&quot;color: #000055;&quot;&gt;&lt;span style=&quot;color: #000055;&quot;&gt;&lt;span style=&quot;color: #000071;&quot;&gt;&lt;span style=&quot;color: #000071;&quot;&gt;&lt;span style=&quot;color: #000055;&quot;&gt;&lt;span style=&quot;color: #000055;&quot;&gt;&lt;span style=&quot;color: #000055;&quot;&gt;&lt;span style=&quot;color: #000055;&quot;&gt;&lt;span style=&quot;color: #000055;&quot;&gt;&lt;span style=&quot;color: #000055;&quot;&gt;This is a remote in sync/async copy of a servers disk, usually used for DR purposes, so if a production site was lost, the data would be upto data at another site (The emc version of dataguard/standby)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://novice2linux.blogspot.com/feeds/4184870842061193722/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://novice2linux.blogspot.com/2011/06/bcvbusiness-continuity-volume.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/968083310990733862/posts/default/4184870842061193722'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/968083310990733862/posts/default/4184870842061193722'/><link rel='alternate' type='text/html' href='http://novice2linux.blogspot.com/2011/06/bcvbusiness-continuity-volume.html' title='BCV(Business Continuity Volume)'/><author><name>pavan</name><uri>http://www.blogger.com/profile/15584902418083594456</uri><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-968083310990733862.post-8707800061927098112</id><published>2011-06-10T19:56:00.000-07:00</published><updated>2013-07-09T06:20:15.981-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="issue"/><title type='text'>Priner issues .. trouble shooting</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: separate; color: black; font-family: &#39;Times New Roman&#39;; font-size: x-small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
#cd /etc/lp/interface&amp;nbsp;&amp;nbsp; &lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;
#ll|grep -i printname &lt;/div&gt;
&lt;div&gt;
#lpstat -vprintname&amp;nbsp; (printer details)&lt;/div&gt;
&lt;div&gt;
#lpstat -oprintname (printer queue status)&lt;/div&gt;
&lt;div&gt;
#lpstat -pprintname (printer status)&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;
#w&lt;br /&gt;
#cd&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;
#telnet ip portno&lt;/div&gt;
&lt;div&gt;
#echo &quot;TEST PRINT&quot;|lp -d printname (sending a test print)&lt;/div&gt;
&lt;div&gt;
&lt;/div&gt;
&lt;div&gt;
#echo &quot;TEST PRINT&quot;|lp -d printname&lt;/div&gt;
&lt;div&gt;
#lpstat -ojprintname (cheking weather it got fired from the queue)&lt;br /&gt;
&lt;br /&gt;
LP printer Creation:&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #444444; font-family: Calibri, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 21px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
lpadmin -p&lt;qname&gt; -orm&lt;print server=&quot;&quot;&gt; -orp&lt;windows printer=&quot;&quot;&gt; -mrmodel -v/dev/null -orc -ocmrcmodel -osmrsmodel&lt;/windows&gt;&lt;/print&gt;&lt;/qname&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #444444; font-family: Calibri, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 21px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
&lt;br style=&quot;line-height: 21px;&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #444444; font-family: Calibri, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 21px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
lpadmin -p143_zb1 -ormAUABGN-PRN2 -orp143_zb1 -mrmodel -v/dev/null -orc -ocmrcmodel -osmrsmodel&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://novice2linux.blogspot.com/feeds/8707800061927098112/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://novice2linux.blogspot.com/2011/06/priner-issues-trouble-shooting.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/968083310990733862/posts/default/8707800061927098112'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/968083310990733862/posts/default/8707800061927098112'/><link rel='alternate' type='text/html' href='http://novice2linux.blogspot.com/2011/06/priner-issues-trouble-shooting.html' title='Priner issues .. trouble shooting'/><author><name>pavan</name><uri>http://www.blogger.com/profile/15584902418083594456</uri><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-968083310990733862.post-314558047382707898</id><published>2011-04-25T21:26:00.001-07:00</published><updated>2013-07-09T06:18:59.224-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Data"/><title type='text'>Some useful commands.</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: arial, verdana, helvetica, lucida, sans-serif;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-family: arial, sans-serif; font-size: 13px;&quot; valign=&quot;top&quot;&gt;&lt;a href=&quot;http://www.blogger.com/post-edit.g?blogID=968083310990733862&amp;amp;postID=314558047382707898&quot; name=&quot;NDRai5goQlo-q6Pgl&quot;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;div class=&quot;PubNote&quot; style=&quot;border-bottom-color: rgb(136, 136, 136); border-bottom-style: solid; border-bottom-width: 2px; border-left-color: rgb(187, 187, 187); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(187, 187, 187); border-right-style: solid; border-right-width: 2px; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; margin-bottom: 15px; margin-left: 30px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 5px; width: 594px;&quot;&gt;
&lt;div class=&quot;PubNoteContentArea&quot; style=&quot;margin-bottom: 5px; margin-left: 10px; margin-right: 10px; margin-top: 5px;&quot;&gt;
&lt;div&gt;
&lt;b&gt;lsof&lt;/b&gt;&amp;nbsp;is a command meaning &quot;list open files&quot;, which is used in many Unix-like&lt;br /&gt;
systems to report a list of all open files and the processes that opened them&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;a href=&quot;http://www.blogger.com/post-edit.g?blogID=968083310990733862&amp;amp;postID=314558047382707898&quot; name=&quot;NDcKP3goQ_rCv5fgl&quot;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;div class=&quot;PubNote&quot; style=&quot;border-bottom-color: rgb(136, 136, 136); border-bottom-style: solid; border-bottom-width: 2px; border-left-color: rgb(187, 187, 187); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(187, 187, 187); border-right-style: solid; border-right-width: 2px; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; margin-bottom: 15px; margin-left: 30px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 5px; width: 594px;&quot;&gt;
&lt;div class=&quot;PubNoteContentArea&quot; style=&quot;margin-bottom: 5px; margin-left: 10px; margin-right: 10px; margin-top: 5px;&quot;&gt;
&lt;b&gt;Dmidecode&lt;/b&gt;&amp;nbsp;reports information about your system&#39;s hardware as described in your&lt;br /&gt;
system BIOS according to the SMBIOS/DMI standard.(Linux)&lt;/div&gt;
&lt;/div&gt;
&lt;a href=&quot;http://www.blogger.com/post-edit.g?blogID=968083310990733862&amp;amp;postID=314558047382707898&quot; name=&quot;NDYdR3goQ2dm25fgl&quot;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;div class=&quot;PubNote&quot; style=&quot;border-bottom-color: rgb(136, 136, 136); border-bottom-style: solid; border-bottom-width: 2px; border-left-color: rgb(187, 187, 187); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(187, 187, 187); border-right-style: solid; border-right-width: 2px; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; margin-bottom: 15px; margin-left: 30px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 5px; width: 594px;&quot;&gt;
&lt;div class=&quot;PubNoteContentArea&quot; style=&quot;margin-bottom: 5px; margin-left: 10px; margin-right: 10px; margin-top: 5px;&quot;&gt;
&lt;div&gt;
&lt;b&gt;Memory &amp;amp; Cpu utilization&lt;/b&gt;&amp;nbsp;:&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
Top (linux)&lt;/div&gt;
&lt;div&gt;
Glance(unix)&lt;/div&gt;
&lt;div&gt;
UNIX95=&lt;/div&gt;
&lt;div&gt;
swapinfo -tm&lt;/div&gt;
&lt;div&gt;
cat /proc/meminfo&lt;/div&gt;
&lt;div&gt;
free -tml (t-total,m-megabites,l-diff b/w low high)&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;a href=&quot;http://www.blogger.com/post-edit.g?blogID=968083310990733862&amp;amp;postID=314558047382707898&quot; name=&quot;NDYLY5goQxJfH5fgl&quot;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;div class=&quot;PubNote&quot; style=&quot;border-bottom-color: rgb(136, 136, 136); border-bottom-style: solid; border-bottom-width: 2px; border-left-color: rgb(187, 187, 187); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(187, 187, 187); border-right-style: solid; border-right-width: 2px; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; margin-bottom: 15px; margin-left: 30px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 5px; width: 594px;&quot;&gt;
&lt;div class=&quot;PubNoteContentArea&quot; style=&quot;margin-bottom: 5px; margin-left: 10px; margin-right: 10px; margin-top: 5px;&quot;&gt;
&lt;div&gt;
&lt;b&gt;File system utilization:&lt;/b&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
du -sk * (individually)&lt;/div&gt;
&lt;div&gt;
du -sk .(collectively)&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;a href=&quot;http://www.blogger.com/post-edit.g?blogID=968083310990733862&amp;amp;postID=314558047382707898&quot; name=&quot;NDRVh5goQ2OvK5fgl&quot;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;div class=&quot;PubNote&quot; style=&quot;border-bottom-color: rgb(136, 136, 136); border-bottom-style: solid; border-bottom-width: 2px; border-left-color: rgb(187, 187, 187); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(187, 187, 187); border-right-style: solid; border-right-width: 2px; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; margin-bottom: 15px; margin-left: 30px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 5px; width: 594px;&quot;&gt;
&lt;div class=&quot;PubNoteContentArea&quot; style=&quot;margin-bottom: 5px; margin-left: 10px; margin-right: 10px; margin-top: 5px;&quot;&gt;
&lt;b&gt;Timex&amp;nbsp;:&amp;nbsp;&amp;nbsp;&lt;/b&gt;we know time taken by different users to run a command.&lt;/div&gt;
&lt;/div&gt;
&lt;a href=&quot;http://www.blogger.com/post-edit.g?blogID=968083310990733862&amp;amp;postID=314558047382707898&quot; name=&quot;NDcSR5goQmrjX5_gl&quot;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;div class=&quot;PubNote&quot; style=&quot;border-bottom-color: rgb(136, 136, 136); border-bottom-style: solid; border-bottom-width: 2px; border-left-color: rgb(187, 187, 187); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(187, 187, 187); border-right-style: solid; border-right-width: 2px; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; margin-bottom: 15px; margin-left: 30px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 5px; width: 594px;&quot;&gt;
&lt;div class=&quot;PubNoteContentArea&quot; style=&quot;margin-bottom: 5px; margin-left: 10px; margin-right: 10px; margin-top: 5px;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;b&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;h1 style=&quot;font-family: arial, helvetica, verdana, lucida, sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;b&gt;Unix Nohup: Run a Command or Shell-Script Even after You Logout&lt;/b&gt;&lt;/span&gt;&lt;/h1&gt;
&lt;div style=&quot;font-family: arial, verdana, helvetica, lucida, sans-serif; font-size: 11px; margin-left: 3px; margin-top: 3px;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;b&gt;When you execute a Unix job in the background ( using &amp;amp;, bg command), and logout from the session, your process will get killed. You can avoid this using several methods — executing the job with nohup, or making it as batch job using at, batch or cron command.&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;b&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;b&gt;This quick tip is for beginners. If you’ve been using nohup for a while, leave us a comment and tell us under what situations you use nohup.&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;font-family: arial, verdana, helvetica, lucida, sans-serif; font-size: 11px; margin-left: 3px; margin-top: 3px;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;b&gt;In this quick tip, let us review how to make your process running even after you logout, using nohup.&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: arial, verdana, helvetica, lucida, sans-serif; font-size: 11px; margin-left: 3px; margin-top: 3px;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;b&gt;Nohup stands for no hang up, which can be executed as shown below.&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: arial, verdana, helvetica, lucida, sans-serif; font-size: 11px; margin-left: 3px; margin-top: 3px;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;b&gt;nohup syntax:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;pre&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;b&gt;# nohup command-with-options &amp;amp;
&lt;/b&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;div style=&quot;font-family: arial, verdana, helvetica, lucida, sans-serif; font-size: 11px; margin-left: 3px; margin-top: 3px;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;b&gt;Nohup is very helpful when you have to execute a shell-script or command that take a long time to finish. In that case, you don’t want to be connected to the shell and waiting for the command to complete. Instead, execute it with nohup, exit the shell and continue with your other work.&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h3 style=&quot;color: #444444; font-family: arial, helvetica, verdana, lucida, sans-serif; font-size: 13px;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;b&gt;Explanation about nohup.out file&lt;/b&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;div style=&quot;font-family: arial, verdana, helvetica, lucida, sans-serif; font-size: 11px; margin-left: 3px; margin-top: 3px;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;b&gt;By default, the standard output will be redirected to nohup.out file in the current directory. And the standard error will be redirected to stdout, thus it will also go to nohup.out. So, your nohup.out will contain both standard output and error messages from the script that you’ve executed using nohup command.&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: arial, verdana, helvetica, lucida, sans-serif; font-size: 11px; margin-left: 3px; margin-top: 3px;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;b&gt;Instead of using nohup.out, you can also redirect the output to a file using the normal shell redirections.&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h3 style=&quot;color: #444444; font-family: arial, helvetica, verdana, lucida, sans-serif; font-size: 13px;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;b&gt;Example: Printing lines to both standard output &amp;amp; standard error&lt;/b&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;pre&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;b&gt;while(true)
do
echo &quot;standard output&quot;
echo &quot;standard error&quot; 1&amp;gt;&amp;amp;2
sleep 1;
done
&lt;/b&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;h3 style=&quot;color: #444444; font-family: arial, helvetica, verdana, lucida, sans-serif; font-size: 13px;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;b&gt;Execute the script without redirection&lt;/b&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;pre&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;b&gt;$ nohup sh custom-script.sh &amp;amp;
[1] 12034
$ nohup: ignoring input and appending output to `nohup.out&#39;

$ tail -f nohup.out
standard output
standard error
standard output
standard error
..
&lt;/b&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;h3 style=&quot;color: #444444; font-family: arial, helvetica, verdana, lucida, sans-serif; font-size: 13px;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;b&gt;Execute the script with redirection&lt;/b&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;pre&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;b&gt;$ nohup sh custom-script.sh &amp;gt; custom-out.log &amp;amp;
[1] 11069
$ nohup: ignoring input and redirecting stderr to stdout

$ tail -f custom-out.log
standard output
standard error
standard output
standard error
..
&lt;/b&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;div style=&quot;font-family: arial, verdana, helvetica, lucida, sans-serif; font-size: 11px; margin-left: 3px; margin-top: 3px;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;b&gt;If you log-out of the shell and login again, you’ll still see the custom-script.sh running in the background.&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;pre&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;b&gt;$ ps aux | grep sathiya
sathiya  12034  0.0  0.1   4912  1080 pts/2    S    14:10   0:00 sh custom&lt;/b&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;a href=&quot;http://www.blogger.com/post-edit.g?blogID=968083310990733862&amp;amp;postID=314558047382707898&quot; name=&quot;NDcsN3goQn9md6Pgl&quot;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;div class=&quot;PubNote&quot; style=&quot;border-bottom-color: rgb(136, 136, 136); border-bottom-style: solid; border-bottom-width: 2px; border-left-color: rgb(187, 187, 187); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(187, 187, 187); border-right-style: solid; border-right-width: 2px; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; margin-bottom: 15px; margin-left: 30px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 5px; width: 594px;&quot;&gt;
&lt;div class=&quot;PubNoteContentArea&quot; style=&quot;margin-bottom: 5px; margin-left: 10px; margin-right: 10px; margin-top: 5px;&quot;&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;b&gt;nice&lt;/b&gt;&amp;nbsp;- run a program with modified scheduling priority&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;http://www.blogger.com/post-edit.g?blogID=968083310990733862&amp;amp;postID=314558047382707898&quot; name=&quot;lbAC&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;b&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;/div&gt;
&lt;div&gt;
Run COMMAND with an adjusted scheduling priority. With no COMMAND, print the current scheduling priority. ADJUST is 10 by default. Range goes from&amp;nbsp;&lt;b&gt;-20&lt;/b&gt;&amp;nbsp;(highest priority) to 19 (lowest).&lt;/div&gt;
&lt;dl compact=&quot;&quot;&gt;
&lt;dt&gt;&lt;b&gt;-n&lt;/b&gt;,&amp;nbsp;&lt;b&gt;--adjustment&lt;/b&gt;=&lt;i&gt;ADJUST&lt;/i&gt;&lt;/dt&gt;
&lt;dd&gt;increment priority by ADJUST first&amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
vgreduce -t ( This will run vgreduce in test mode)&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
&lt;span style=&quot;white-space: pre-wrap;&quot;&gt; &lt;/span&gt;&lt;b&gt;buffer I/O error&lt;/b&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;main reason is difference in I/O timings with storage lun.&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
&lt;span style=&quot;white-space: pre-wrap;&quot;&gt;  &lt;/span&gt;[root@d scsi_device]# cat /sys/block/sdab/device/timeout&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
&lt;span style=&quot;white-space: pre-wrap;&quot;&gt;  &lt;/span&gt;30&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
&lt;span style=&quot;white-space: pre-wrap;&quot;&gt;  &lt;/span&gt;[root@d scsi_device]#&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
&lt;span style=&quot;white-space: pre-wrap;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;https://access.redhat.com/knowledge/solutions/29737&quot; style=&quot;color: #1155cc;&quot; target=&quot;_blank&quot;&gt;https://access.redhat.com/&lt;wbr&gt;&lt;/wbr&gt;knowledge/solutions/29737&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
&lt;b&gt;Aix commands to check kernel parameters&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
&lt;div&gt;
lsattr -E -l sys0&lt;/div&gt;
&lt;div&gt;
topas&lt;/div&gt;
&lt;div&gt;
startsrc -s sshd&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Sed command to extract data b/w two words in a file&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
sed -n &#39;/langham/,/langport/p&#39; linux_workout&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
&lt;b&gt;Mount error&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
mount: special device &amp;nbsp;does not exist&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
(re activate the vg ) or check vg activation status&lt;/div&gt;
&lt;/dd&gt;&lt;/dl&gt;
&lt;div style=&quot;font-family: arial, verdana, helvetica, lucida, sans-serif; font-size: 11px; margin-left: 3px; margin-top: 3px;&quot;&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://novice2linux.blogspot.com/feeds/314558047382707898/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://novice2linux.blogspot.com/2011/04/some-useful-commands.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/968083310990733862/posts/default/314558047382707898'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/968083310990733862/posts/default/314558047382707898'/><link rel='alternate' type='text/html' href='http://novice2linux.blogspot.com/2011/04/some-useful-commands.html' title='Some useful commands.'/><author><name>pavan</name><uri>http://www.blogger.com/profile/15584902418083594456</uri><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-968083310990733862.post-7193363189373129750</id><published>2010-01-21T01:01:00.000-08:00</published><updated>2011-06-13T06:14:50.884-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Data"/><title type='text'>mounting linux drives on windows</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;Ext2 IFS is used to mount linux drives on windows.&lt;br /&gt;
&lt;br /&gt;
you can download the software from...&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://www.fs-driver.org/&quot;&gt;http://www.fs-driver.org/&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://novice2linux.blogspot.com/feeds/7193363189373129750/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://novice2linux.blogspot.com/2010/01/mounting-linux-drives-on-windows.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/968083310990733862/posts/default/7193363189373129750'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/968083310990733862/posts/default/7193363189373129750'/><link rel='alternate' type='text/html' href='http://novice2linux.blogspot.com/2010/01/mounting-linux-drives-on-windows.html' title='mounting linux drives on windows'/><author><name>pavan</name><uri>http://www.blogger.com/profile/15584902418083594456</uri><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-968083310990733862.post-4224858210907658469</id><published>2009-12-10T05:22:00.001-08:00</published><updated>2011-06-13T06:15:03.551-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Data"/><title type='text'>mounting windows drives on linux</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;We can mount windows drives on linux by using NTFS-3g(Linux -NTFS).&lt;br /&gt;
The goals of the Linux-NTFS project are to develop reliable and full feature access to NTFS by the Linux kernel driver, and by a user space filesystem (ntfsmount), and to provide a wide collection of NTFS utilities (ntfsprogs) and a developer&#39;s library (libntfs) for other GPLed programs. We have achieved already a lot, with high quality results.&lt;br /&gt;
&lt;br /&gt;
How to access NTFS from Linux&lt;br /&gt;
Choose one of the following three options:&lt;br /&gt;
&lt;br /&gt;
1) Linux has an integrated kernel driver. It allows reading of files, and rewriting existing files. It does not support creation of new files or deletion of existing files. . &lt;br /&gt;
&lt;br /&gt;
2) ntfsprogs includes an improved driver, ntfsmount, which provides the same functionality as the kernel driver. Additionally it also supports basic cases of directory, symlink, device and FIFO file creation, deletion and renaming. &lt;b&gt;Note&lt;/b&gt;: That doesn&#39;t mean it always succeeds, it is still experimental and might just as well refuse to complete an operation in order to prevent corruption. See the ntfsmount page for more details.&lt;br /&gt;
&lt;br /&gt;
The beta version of the ntfs-3g driver can be downloaded from &lt;a href=&quot;http://www.ntfs-3g.org/&quot;&gt;http://www.ntfs-3g.org&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://novice2linux.blogspot.com/feeds/4224858210907658469/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://novice2linux.blogspot.com/2009/12/mounting-windows-drives-on-linux.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/968083310990733862/posts/default/4224858210907658469'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/968083310990733862/posts/default/4224858210907658469'/><link rel='alternate' type='text/html' href='http://novice2linux.blogspot.com/2009/12/mounting-windows-drives-on-linux.html' title='mounting windows drives on linux'/><author><name>pavan</name><uri>http://www.blogger.com/profile/15584902418083594456</uri><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-968083310990733862.post-7220354178566744207</id><published>2009-12-10T05:21:00.000-08:00</published><updated>2011-06-13T06:15:15.317-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Data"/><title type='text'>partitioning hardisk</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;As outlined in the General Information section, the most common way to install Linux is to allocate a part of your hard disk for Linux. Most computers come with one hard disk, and that hard disk is usually setup to have just one partition which uses all of the space on the hard disk. If this is the case with your computer, then you will need to either add a new hard disk for Linux, or shrink your existing partition to make space for Linux. &lt;br /&gt;
&lt;br /&gt;
Each partition not only creates a separate independent space on the hard disk but it also associates a method of reading and writing information to the drive, the format of the drive. Linux has a number of different formats it can use for sections of the hard disk, the most popular being ext2 and ext3 (others include reiserfs, xfs and jfs). Normally you will not have to worry much about the formats of Linux partitions, the installation program will make appropriate suggestions. One other type of partition format for Linux which is worthy of mention is swap. A swap partition is used to effectively extend your memory onto the hard disk, so if your computer wants to use more memory then it has, it will &quot;swap&quot; information in memory which it doesn&#39;t need at the time onto the hard disk. It is possible to use a large file on a normal partition for swap however this is much slower. Unless you measure your memory in Gigabytes, you should probably use a swap partition at least the size of your memory, and if you have less then 256Megabytes of ram then you may want a partition 2 or 3 times it. &lt;br /&gt;
&lt;br /&gt;
If you are in the common situation of having to shrink the only Windows partition on your hard disk, the first thing to be aware of is that your access to the information on the Windows partition will depend on its format. There are two main types of partition formats for Windows, FAT and NTFS. Generally computers with the Windows 95/98/ME systems will have FAT partitions and Windows NT/2000/XP will have NTFS partitions, though the NT/2000/XP family can also use FAT. &lt;br /&gt;
&lt;br /&gt;
The critical difference between FAT and NTFS as far as Linux is concerned, is that while reading information from either system is perfectly safe under Linux, writing information to an NTFS partition is currently regarded as potentially unsafe so you wouldn&#39;t be able to edit these files from Linux and access the changes directly under Windows. Linux is perfectly reliable sharing FAT partitions with other operating systems (if your feeling lost, perhaps telling you that when you format a floppy you are actually making a FAT filesystem on it will help put things in perspective). Windows has no native method of reading Linux formatted partitions, but the Free explore2fs program allows you to read and copy information from ext2 and ext3 Linux partitions while you are running Windows. There is now also a file-system driver from the same source called ext2ifs which allows your ext2 and ext3 partitions to appear as extra drives in Windows NT4/2000/XP (still read only). &lt;br /&gt;
&lt;br /&gt;
There are numerous methods for shrinking Windows partitions to make space for Linux (and I would recommend simply making the space and using the installer to create the partitions and format them). No matter what method you use to do this, you should backup all your data before you begin, in fact you should always keep backups of all your important information as a hard disk could fail at any time. Another tip is to defragment your drive in windows before you begin which makes it much easier for the software which has to do the shrinking. The tried and true method for shrinking a partition is a commercial program called Partition Magic ($69.95 as of Sept 2004). You can also do this with Free software such as parted (or the graphical front-end QTparted) or often as part of the installer itself. Check the installation documentation for the system you plan on installing to see if it&#39;s now supports resizing/shrinking ntfs partitions. &lt;br /&gt;
&lt;br /&gt;
Whatever scenario you start in, when you begin to install Linux you need to know where you have space to put it. It may be a new hard disk or free space on an existing hard disk. For a modern desktop Linux system you would want to allocate an absolute minimum of 2GB of hard disk space, 5GB would be far better and if you have plenty of space (or if you plan to install lots of large pieces of software, perhaps games) 10GB+ is perfectly reasonable. If you have enough free space the installation program may suggest creating more than one Linux partition, if so it is well worthwhile creating a separate partition for your files, the /home partition. Amongst other things you can reinstall your system or install a new system without having to make an additional backup of your files (remember again you do always keep backups of everything important).&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://novice2linux.blogspot.com/feeds/7220354178566744207/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://novice2linux.blogspot.com/2009/12/partitioning-hardisk.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/968083310990733862/posts/default/7220354178566744207'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/968083310990733862/posts/default/7220354178566744207'/><link rel='alternate' type='text/html' href='http://novice2linux.blogspot.com/2009/12/partitioning-hardisk.html' title='partitioning hardisk'/><author><name>pavan</name><uri>http://www.blogger.com/profile/15584902418083594456</uri><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-968083310990733862.post-2052057625254573418</id><published>2009-12-10T05:19:00.000-08:00</published><updated>2011-06-13T06:15:28.046-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Data"/><title type='text'>hierarchy of file system</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&amp;lt; / &amp;gt;&lt;br /&gt;
&lt;br /&gt;
The root directory. The starting point of your directory structure. This is where the Linux system begins. Every other file and directory on your system is under the root directory. Usually the root directory contains only subdirectories, so it&#39;s a bad idea to store single files directly under root.&lt;br /&gt;
&lt;br /&gt;
Don&#39;t confuse the root directory with the root user account, root password (which obviously is the root user&#39;s password) or root user&#39;s home directory.&lt;br /&gt;
&lt;br /&gt;
&amp;lt; /boot &amp;gt;&lt;br /&gt;
&lt;br /&gt;
As the name suggests, this is the place where Linux keeps information that it needs when booting up. For example, this is where the Linux kernel is kept. If you list the contents of /boot, you&#39;ll see a file called vmlinuz - that&#39;s the kernel.&lt;br /&gt;
&lt;br /&gt;
&amp;lt; /etc &amp;gt;&lt;br /&gt;
&lt;br /&gt;
The configuration files for the Linux system. Most of these files are text files and can be edited by hand. Some interesting stuff in this directory:&lt;br /&gt;
&lt;br /&gt;
/etc/inittab&lt;br /&gt;
&lt;br /&gt;
A text file that describes what processes are started at system bootup and during normal operation. For example, here you can determine if you want the X Window System to start automatically at bootup, and configure what happens when a user presses Ctrl+Alt+Del.&lt;br /&gt;
&lt;br /&gt;
/etc/fstab&lt;br /&gt;
&lt;br /&gt;
This file contains descriptive information about the various file systems and their mount points, like floppies, cdroms, and so on.&lt;br /&gt;
&lt;br /&gt;
/etc/passwd&lt;br /&gt;
&lt;br /&gt;
A file that contains various pieces of information for each user account. This is where the users are defined.&lt;br /&gt;
&lt;br /&gt;
&amp;lt; /bin, /usr/bin &amp;gt;&lt;br /&gt;
&lt;br /&gt;
These two directories contain a lot of programs (binaries, hence the directory&#39;s name) for the system. The /bin directory contains the most important programs that the system needs to operate, such as the shells, ls, grep, and other essential things. /usr/bin in turn contains applications for the system&#39;s users. However, in some cases it really doesn&#39;t make much difference if you put the program in /bin or /usr/bin.&lt;br /&gt;
&lt;br /&gt;
&amp;lt; /sbin, /usr/sbin &amp;gt;&lt;br /&gt;
&lt;br /&gt;
Most system administration programs are stored in these directories. In many cases you must run these programs as the root user.&lt;br /&gt;
&lt;br /&gt;
&amp;lt; /usr &amp;gt;&lt;br /&gt;
&lt;br /&gt;
This directory contains user applications and a variety of other things for them, like their source codes, and pictures, docs, or config files they use. /usr is the largest directory on a Linux system, and some people like to have it on a separate partition. Some interesting stuff in /usr:&lt;br /&gt;
&lt;br /&gt;
/usr/doc&lt;br /&gt;
&lt;br /&gt;
Documentation for the user apps, in many file formats.&lt;br /&gt;
&lt;br /&gt;
/usr/share&lt;br /&gt;
&lt;br /&gt;
Config files and graphics for many user apps.&lt;br /&gt;
&lt;br /&gt;
/usr/src&lt;br /&gt;
&lt;br /&gt;
Source code files for the system&#39;s software, including the Linux kernel.&lt;br /&gt;
&lt;br /&gt;
/usr/include&lt;br /&gt;
&lt;br /&gt;
Header files for the C compiler. The header files define structures and constants that are needed for building most standard programs. A subdirectory under /usr/include contains headers for the C++ compiler.&lt;br /&gt;
&lt;br /&gt;
/usr/X11R6&lt;br /&gt;
&lt;br /&gt;
The X Window System and things for it. The subdirectories under /usr/X11R6 may contain some X binaries themselves, as well as documentation, header files, config files, icons, sounds, and other things related to the graphical programs.&lt;br /&gt;
&lt;br /&gt;
&amp;lt; /usr/local &amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is where you install apps and other files for use on the local machine. If your machine is a part of a network, the /usr directory may physically be on another machine and can be shared by many networked Linux workstations. On this kind of a network, the /usr/local directory contains only stuff that is not supposed to be used on many machines and is intended for use at the local machine only.&lt;br /&gt;
&lt;br /&gt;
Most likely your machine isn&#39;t a part of a network like this, but it doesn&#39;t mean that /usr/local is useless. If you find interesting apps that aren&#39;t officially a part of your distro, you should install them in /usr/local. For example, if the app would normally go to /usr/bin but it isn&#39;t a part of your distro, you should install it in /usr/local/bin instead. When you keep your own programs away from the programs that are included in your distro, you&#39;ll avoid confusion and keep things nice and clean.&lt;br /&gt;
&lt;br /&gt;
&amp;lt; /lib &amp;gt;&lt;br /&gt;
&lt;br /&gt;
The shared libraries for programs that are dynamically linked. The shared libraries are similar to DLL&#39;s on Winblows.&lt;br /&gt;
&lt;br /&gt;
&amp;lt; /home &amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is where users keep their personal files. Every user has their own directory under /home, and usually it&#39;s the only place where normal users are allowed to write files. You can configure a Linux system so that normal users can&#39;t even list the contents of other users&#39; home directories. This means that if your family members have their own user accounts on your Linux system, they won&#39;t see all the w4r3z you keep in your home directory. ;-)&lt;br /&gt;
&lt;br /&gt;
&amp;lt; /root &amp;gt;&lt;br /&gt;
&lt;br /&gt;
The superuser&#39;s (root&#39;s) home directory. Don&#39;t confuse this with the root directory (/) of a Linux system.&lt;br /&gt;
&lt;br /&gt;
&amp;lt; /var &amp;gt;&lt;br /&gt;
&lt;br /&gt;
This directory contains variable data that changes constantly when the system is running. Some interesting subdirectories:&lt;br /&gt;
&lt;br /&gt;
/var/log&lt;br /&gt;
&lt;br /&gt;
A directory that contains system log files. They&#39;re updated when the system runs, and checking them out can give you valuable info about the health of your system. If something in your system suddenly goes wrong, the log files may contain some info about the situation.&lt;br /&gt;
&lt;br /&gt;
/var/mail&lt;br /&gt;
&lt;br /&gt;
Incoming and outgoing mail is stored in this directory.&lt;br /&gt;
&lt;br /&gt;
/var/spool&lt;br /&gt;
&lt;br /&gt;
This directory holds files that are queued for some process, like printing.&lt;br /&gt;
&lt;br /&gt;
&amp;lt; /tmp &amp;gt;&lt;br /&gt;
&lt;br /&gt;
Programs can write their temporary files here.&lt;br /&gt;
&lt;br /&gt;
&amp;lt; /dev &amp;gt;&lt;br /&gt;
&lt;br /&gt;
The devices that are available to a Linux system. Remember that in Linux, devices are treated like files and you can read and write devices like they were files. For example, /dev/fd0 is your first floppy drive, /dev/cdrom is your CD drive, /dev/hda is the first IDE hard drive, and so on. All the devices that a Linux kernel can understand are located under /dev, and that&#39;s why it contains hundreds of entries.&lt;br /&gt;
&lt;br /&gt;
&amp;lt; /mnt &amp;gt;&lt;br /&gt;
&lt;br /&gt;
This directory is used for mount points. The different physical storage devices (like the hard disk drives, floppies, CD-ROM&#39;s) must be attached to some directory in the file system tree before they can be accessed. This attaching is called mounting, and the directory where the device is attached is called the mount point.&lt;br /&gt;
&lt;br /&gt;
The /mnt directory contains mount points for different devices, like /mnt/floppy for the floppy drive, /mnt/cdrom for the CD-ROM, and so on. However, you&#39;re not forced to use the /mnt directory for this purpose, you can use whatever directory you wish. Actually in some distros, like Debian and SuSE, the default is to use /floppy and /cdrom as mount points instead of directories under /mnt.&lt;br /&gt;
&lt;br /&gt;
&amp;lt; /proc &amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is a special directory. Well, actually /proc is just a virtual directory, because it doesn&#39;t exist at all! It contains some info about the kernel itself. There&#39;s a bunch of numbered entries that correspond to all processes running on the system, and there are also named entries that permit access to the current configuration of the system. Many of these entries can be viewed.&lt;br /&gt;
&lt;br /&gt;
&amp;lt; /lost+found &amp;gt;&lt;br /&gt;
&lt;br /&gt;
Here Linux keeps the files that it restores after a system crash or when a partition hasn&#39;t been unmounted before a system shutdown. This way you can recover files that would otherwise have been lost.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://novice2linux.blogspot.com/feeds/2052057625254573418/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://novice2linux.blogspot.com/2009/12/hierarchy-of-file-system.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/968083310990733862/posts/default/2052057625254573418'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/968083310990733862/posts/default/2052057625254573418'/><link rel='alternate' type='text/html' href='http://novice2linux.blogspot.com/2009/12/hierarchy-of-file-system.html' title='hierarchy of file system'/><author><name>pavan</name><uri>http://www.blogger.com/profile/15584902418083594456</uri><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-968083310990733862.post-3162376993297342157</id><published>2009-12-10T05:17:00.001-08:00</published><updated>2011-06-13T06:15:47.694-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Data"/><title type='text'>dual booting linux and windows on same machine</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;Windows and Linux can live comfortably on the same the same machine, even the same harddrive. The choice of operating systems can be made at the boot-up sequence when you thro the power switch. This configuration is known as the &quot;dual-boot&quot; configuration. This is how most linux users start off. Unless you&#39;re a BOFH of course *grin*. &lt;br /&gt;
FAT32 Support Requirements&lt;br /&gt;
To have access to your Win partition from Linux (file sharing between Linux and Win), which is useful, think of all those MP3s... you will also need a version 2.0.34 of the Linux kernel or higher. Below is a list of recent Linux distros and the kernel build versions (2.0.34 or higher!) that support FAT32. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If your kernel version doesn&#39;t support Fat32 you will have to upgrade the kernel. I&#39;m not too hot on kernel upgrades, so I&#39;m not going to say too much on that. As ever RTFM! &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Distributions with FAT32 support (kernel 2.0.34 or higher) Distribution:&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; Earliest Version with FAT32 Support&lt;br /&gt;
Red Hat&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; Version 5.1 (with kernel 2.0.34)&lt;br /&gt;
&lt;br /&gt;
Red Hat&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; Version 6.0 (with kernel 2.0.36)&lt;br /&gt;
&lt;br /&gt;
SuSE&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; Version 5.3 (with kernel 2.0.35)&lt;br /&gt;
&lt;br /&gt;
SuSE&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; Version 6.0 (with kernel 2.0.36)&lt;br /&gt;
&lt;br /&gt;
Debian GNU/Linux&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; Version 2.0 (with kernel 2.0.34)&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://novice2linux.blogspot.com/feeds/3162376993297342157/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://novice2linux.blogspot.com/2009/12/dual-booting-linux-and-windows-on-same.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/968083310990733862/posts/default/3162376993297342157'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/968083310990733862/posts/default/3162376993297342157'/><link rel='alternate' type='text/html' href='http://novice2linux.blogspot.com/2009/12/dual-booting-linux-and-windows-on-same.html' title='dual booting linux and windows on same machine'/><author><name>pavan</name><uri>http://www.blogger.com/profile/15584902418083594456</uri><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>