<?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-4374684981300349204</id><updated>2026-08-14T18:09:27.269+05:30</updated><category term="linux"/><category term="unix"/><category term="awk"/><category term="sed"/><category term="shell"/><category term="solaris"/><category term="perl"/><category term="for loop in unix"/><category term="linux. solaris"/><category term="UNIX interview questions"/><category term="awk oneliners"/><category term="mount"/><category term="UNIX best practices."/><category term="centOS"/><category term="find"/><category term="grep"/><category term="print lines before and after pattern match using awk"/><category term="xargs"/><category term="Automation"/><category term="Changing extension of all .txt to .sh"/><category term="Command to covert decimal to binary in shell. UNIX"/><category term="Configure/change IP in CentOS/Linux"/><category term="Count the number of files in each directory recursively"/><category term="Count the number of occurances of a pattern in a file using awk"/><category term="DHCP"/><category term="Data Science"/><category term="Device eth0 does not seem to be present"/><category term="Extract rpm jar tar iso in Windows 7. 7-zip"/><category term="Find files  which are older than 15 minutes in Linux and Solaris"/><category term="GHOST: glibc vulnerability (CVE-2015-0235)"/><category term="GMT+24"/><category term="GRANT ALL PRIVILEGES mysql"/><category term="GRANT REPLICATION SLAVE"/><category term="HIVE"/><category term="How to compare the values of a column in awk in a same file and consecutive lines.."/><category term="How to create DB replication in MySql"/><category term="IP"/><category term="Ipad"/><category term="January 19 2038"/><category term="Joining two files parallely using awk"/><category term="Machine Learning"/><category term="Mount ISO image in Linux"/><category term="ORS"/><category term="PIG"/><category term="Print lines of file 1 which are not present in file 2. Also second field of file 2 may be different from file 1."/><category term="Print paragraph between semicolons containing a pattern"/><category term="Python"/><category term="QMole"/><category term="RESET MASTER"/><category term="Removing a particular pattern from a file name using sed."/><category term="Removing a particular prefix from filenames."/><category term="Robotics"/><category term="Run fsck on a filesystem to repair it"/><category term="SCALA"/><category term="SHOW MASTER STATUS"/><category term="SPARK"/><category term="SQOOP"/><category term="START SLAVE"/><category term="STOP SLAVE"/><category term="TZ"/><category term="WhatsApp Voice Calling"/><category term="WhatsApp voice calling activated"/><category term="WhatsApp voice calling beta testing"/><category term="WhatsApp voice calling testing"/><category term="Whatsapp"/><category term="add 30 days in solaris unix"/><category term="add 30 days using perl"/><category term="amin"/><category term="bc"/><category term="big data"/><category term="binary"/><category term="check update"/><category term="commands"/><category term="cp"/><category term="cron"/><category term="crontab"/><category term="data analytics"/><category term="date"/><category term="decimal"/><category term="define"/><category term="delaying initialization"/><category term="df"/><category term="do"/><category term="done"/><category term="echo"/><category term="ethernet"/><category term="file"/><category term="filesystem"/><category term="fsck"/><category term="ftp in unix"/><category term="function"/><category term="fuser"/><category term="fuser and pfiles: lsof equivalent in Solaris"/><category term="gateway"/><category term="grant"/><category term="hadoop"/><category term="how to use yum for installing package in CentOS"/><category term="ibase"/><category term="if"/><category term="ifcfg-eth"/><category term="ifup"/><category term="install"/><category term="invisible password"/><category term="ip -o link"/><category term="iso"/><category term="java heap dump"/><category term="java heap dump and thread dump in linux from command line"/><category term="java memory leaks"/><category term="java process tuning"/><category term="java thread dump"/><category term="job scheduling"/><category term="less"/><category term="loop"/><category term="lost+found"/><category term="lsof"/><category term="make unix password invisible."/><category term="map reduce"/><category term="mmin"/><category term="mnt"/><category term="mount -o loop"/><category term="mv"/><category term="mysql"/><category term="mysql replication"/><category term="networking"/><category term="newer"/><category term="obase"/><category term="open compressed files in Windows"/><category term="open unix files in windows"/><category term="package"/><category term="patter match"/><category term="pfiles"/><category term="pipe"/><category term="print 1 line before pattern match"/><category term="print 3 lines before pattern match"/><category term="print every nth line using awk"/><category term="print next 7 lines after pattern match using sed"/><category term="ps"/><category term="recover"/><category term="regex"/><category term="regular expression"/><category term="remove"/><category term="repair"/><category term="restore"/><category term="reverse a file using awk sed."/><category term="search"/><category term="sed command line options"/><category term="sed oneliners"/><category term="service network"/><category term="sleep"/><category term="sort"/><category term="sort a delimited file on the basis of column."/><category term="sudo"/><category term="sysconfig"/><category term="touch"/><category term="umount"/><category term="uname"/><category term="unix time stamp"/><category term="use config file in shell script."/><category term="use of sed in unix"/><category term="useful sed commands"/><category term="vlookup equivalent in unix awk shell linux"/><category term="vlookup in shell"/><category term="vlookup in unix"/><category term="vlookup using awk"/><category term="while"/><category term="xargs with cp"/><category term="xargs with mv command"/><category term="ypwhich"/><category term="yum"/><title type='text'>UNIX Best Practices : SHELL, PERL, AWK, SED, GREP, VI etc</title><subtitle type='html'>UNIX/Linux problem solving blog, Good for beginners and experts. UNIX interview preparation guide. Top Unix interview questions and answers. awk,sed,vi shell,perl solutions of Unix problems.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://manutechie.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4374684981300349204/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://manutechie.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/4374684981300349204/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Manu Swami</name><uri>http://www.blogger.com/profile/02517029897671405269</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>52</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-4374684981300349204.post-4641862100036419924</id><published>2018-11-16T12:13:00.001+05:30</published><updated>2018-11-16T12:14:31.621+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="vlookup equivalent in unix awk shell linux"/><category scheme="http://www.blogger.com/atom/ns#" term="vlookup in shell"/><category scheme="http://www.blogger.com/atom/ns#" term="vlookup in unix"/><category scheme="http://www.blogger.com/atom/ns#" term="vlookup using awk"/><title type='text'>Vlookup equivalent in awk: Reader&#39;s request</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;u&gt;Objective:&lt;/u&gt;&lt;/b&gt;Print the value of field 1 and 3 from file b.txt based on the content of field 4 in a.txt&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;a.txt&lt;/u&gt;&lt;/b&gt;1,2,3,DELHI,4,5&lt;br /&gt;
4,2,1,MUMBAI,8,2&lt;br /&gt;
12,11,54,PUNE,11,2&lt;br /&gt;
7,12,8,GOA,9,3&lt;br /&gt;
9,2,1,BANGALORE,2,3&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;b.txt&lt;/u&gt;&lt;/b&gt;PUNE,13,10000&lt;br /&gt;
MUMBAI,100,20000&lt;br /&gt;
GOA,9,4000&lt;br /&gt;
NOIDA,43,9000&lt;br /&gt;
DELHI,7,3000&lt;br /&gt;
GURGAON,8,800&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;Solution:&lt;/u&gt;&lt;/b&gt;awk -F &#39;,&#39; &#39;FNR == NR {array[$4]; next} {if ($1 in array) print $1 &quot;,&quot; $3}&#39; a.txt b.txt&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;Example:&lt;/u&gt;&lt;/b&gt;[user@server ~]$ awk -F &#39;,&#39; &#39;FNR == NR {array[$4]; next} {if ($1 in array) print $1 &quot;,&quot; $3}&#39; a.txt b.txt&lt;br /&gt;
PUNE,10000&lt;br /&gt;
MUMBAI,20000&lt;br /&gt;
GOA,4000&lt;br /&gt;
DELHI,3000&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://manutechie.blogspot.com/feeds/4641862100036419924/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4374684981300349204/4641862100036419924' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4374684981300349204/posts/default/4641862100036419924'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4374684981300349204/posts/default/4641862100036419924'/><link rel='alternate' type='text/html' href='http://manutechie.blogspot.com/2018/11/vlookup-equivalent-in-awk-readers.html' title='Vlookup equivalent in awk: Reader&#39;s request'/><author><name>Manu Swami</name><uri>http://www.blogger.com/profile/02517029897671405269</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-4374684981300349204.post-5462667379733641516</id><published>2017-05-19T11:03:00.000+05:30</published><updated>2017-05-19T11:03:28.307+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Automation"/><category scheme="http://www.blogger.com/atom/ns#" term="big data"/><category scheme="http://www.blogger.com/atom/ns#" term="data analytics"/><category scheme="http://www.blogger.com/atom/ns#" term="Data Science"/><category scheme="http://www.blogger.com/atom/ns#" term="hadoop"/><category scheme="http://www.blogger.com/atom/ns#" term="HIVE"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="Machine Learning"/><category scheme="http://www.blogger.com/atom/ns#" term="map reduce"/><category scheme="http://www.blogger.com/atom/ns#" term="PIG"/><category scheme="http://www.blogger.com/atom/ns#" term="Python"/><category scheme="http://www.blogger.com/atom/ns#" term="Robotics"/><category scheme="http://www.blogger.com/atom/ns#" term="SCALA"/><category scheme="http://www.blogger.com/atom/ns#" term="SPARK"/><category scheme="http://www.blogger.com/atom/ns#" term="SQOOP"/><title type='text'>Turning up the Big data curtain!</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;br /&gt;Its been a long time since we have posted. There is a reason for that. Please keep reading.&lt;br /&gt;Change is inevitable. Let your glorious past be cherished by others. Let it remain in your memories. Let it add value to your profession. Let it give confidence to you. But do not let it ruin your future plans.&lt;br /&gt;&lt;br /&gt;Technology is the prime. One can stand out from the crowd only by showing the logical decision makings. As per NASSCOM, 40% of IT professionals are unskilled and unprepared to deal with upcoming IT models. My view is, out of these 40% there are 30% who knows about this but still showing no dissent towards it. People keep discussing it and losing time very fast. &lt;br /&gt;&lt;br /&gt;Its already late if we have not upgraded ourselves yet. With a lot of study we have done about next-gen technologies, we could figure out that the IT industry is running towards automation and the jobs are on stake. Time to pulll up socks and take guard. &lt;br /&gt;&lt;br /&gt;Based on several trends, we could reach to the following things:&lt;br /&gt;&lt;br /&gt;1. Big Data and analytics related technologies are need of hour. Its time to analyze trends and make predictive models.&lt;br /&gt;2. Virtualization is mandatory in Big companies for internal infrastructure or even for products point of view.&lt;br /&gt;3. Virtualization is via Cloud now. Be it Infrastructure as a service (IAAS), Software as a service (SAAS), Platform as a service (PAAS), Data as a service (DAAS) etc.&lt;br /&gt;&lt;br /&gt;This is just a beginning. &lt;br /&gt;&lt;br /&gt;I personally want to make a one year plan for myself with expertise in a particular order.&lt;br /&gt;&lt;br /&gt;Big Data and Hadoop --&amp;gt; Map Reduce --&amp;gt; Data Analytics using various tools --&amp;gt; Data Science --&amp;gt; Machine Learning -&amp;gt; Robotics for automation&lt;br /&gt;&lt;br /&gt;Its measurable and time bounded and of course one year of dedicated hard work. But this is how we do for ourselves.&lt;br /&gt;&lt;br /&gt;Yes, there can be more points and many more points but above is what which we have studied. Now need to take the things in our own way. Lets start fresh. &lt;br /&gt;&lt;br /&gt;This blog will be more about Big data and other stuff from now onwards. We have got great testimonials from Unix/Linux professionals about our blog but now we hope to keep up with the pace of next-gen technologies. We are starting with Big data. It will be as it comes basis. The more we read, the more we post. The more queries we get, the more we answer. Lets make it a combined effort to engage ourselves in some self investment for our own benefits.&lt;br /&gt;&lt;br /&gt;Keep studying, you are in IT!&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://manutechie.blogspot.com/feeds/5462667379733641516/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4374684981300349204/5462667379733641516' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4374684981300349204/posts/default/5462667379733641516'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4374684981300349204/posts/default/5462667379733641516'/><link rel='alternate' type='text/html' href='http://manutechie.blogspot.com/2017/05/turning-up-big-data-curtain.html' title='Turning up the Big data curtain!'/><author><name>Manu Swami</name><uri>http://www.blogger.com/profile/02517029897671405269</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-4374684981300349204.post-3708280640234588123</id><published>2015-03-16T11:43:00.002+05:30</published><updated>2015-03-16T11:44:14.630+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Whatsapp"/><category scheme="http://www.blogger.com/atom/ns#" term="WhatsApp Voice Calling"/><category scheme="http://www.blogger.com/atom/ns#" term="WhatsApp voice calling activated"/><category scheme="http://www.blogger.com/atom/ns#" term="WhatsApp voice calling beta testing"/><category scheme="http://www.blogger.com/atom/ns#" term="WhatsApp voice calling testing"/><title type='text'>WhatsApp voice-calling comes to all Android users</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;u&gt;Minimum WhatsApp version required :&lt;/u&gt; 2.11.528&lt;br /&gt;&lt;br /&gt;&lt;u&gt;How to activate:&lt;/u&gt; The voice-calling can be activated by receiving a call from someone whose voice-calling is already activated. After you get the call, you need to close and then reopen the app. After that, instead of seeing the most recent chats, you will get three tabs namely Calls, Chats and Contacts. The call tab shows incoming, outgoing and missed calls at the precise times.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;Beta testing is going on for the feature and this time WhatsApp has decided to provide a bigger invite-only window.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;Try your luck!!&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://manutechie.blogspot.com/feeds/3708280640234588123/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4374684981300349204/3708280640234588123' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4374684981300349204/posts/default/3708280640234588123'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4374684981300349204/posts/default/3708280640234588123'/><link rel='alternate' type='text/html' href='http://manutechie.blogspot.com/2015/03/whatsapp-voice-calling-comes-to-all.html' title='WhatsApp voice-calling comes to all Android users'/><author><name>Manu Swami</name><uri>http://www.blogger.com/profile/02517029897671405269</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-4374684981300349204.post-9192108861840435023</id><published>2015-02-27T17:06:00.000+05:30</published><updated>2015-02-27T17:06:08.961+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="delaying initialization"/><category scheme="http://www.blogger.com/atom/ns#" term="Device eth0 does not seem to be present"/><category scheme="http://www.blogger.com/atom/ns#" term="ethernet"/><category scheme="http://www.blogger.com/atom/ns#" term="ifcfg-eth"/><category scheme="http://www.blogger.com/atom/ns#" term="ifup"/><category scheme="http://www.blogger.com/atom/ns#" term="ip -o link"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><title type='text'>How To Fix “Device eth0 does not seem to be present, delaying initialization” Error!!</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;br /&gt;&lt;u&gt;&lt;b&gt;Try to start Eth0 device:&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;# ifup eth0&lt;br /&gt;Device eth0 does not seem to be present, delaying initialisation&lt;br /&gt;&lt;br /&gt;&lt;u&gt;&lt;b&gt;First step – check the MAC Addresses are set correctly:-&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;[root@centOS network-scripts]#&amp;nbsp;&amp;nbsp;&amp;nbsp; cat ifcfg-eth0 | grep HWA&lt;br /&gt;&lt;br /&gt;HWADDR=”08:00:27:FC:73:2A”&lt;br /&gt;&lt;br /&gt;[root@centOS network-scripts]#&amp;nbsp;&amp;nbsp;&amp;nbsp; cat ifcfg-eth1 | grep HWA&lt;br /&gt;&lt;br /&gt;HWADDR=”08:00:27:09:E1:75?&lt;br /&gt;&lt;br /&gt;[root@centOS network-scripts]#&amp;nbsp;&amp;nbsp;&amp;nbsp; cat ifcfg-eth2 | grep HWA&lt;br /&gt;&lt;br /&gt;HWADDR=”08:00:27:31:2D:D6?&lt;br /&gt;&lt;br /&gt;[root@centOS network-scripts]# ip -o link&lt;br /&gt;&lt;br /&gt;1: lo: &lt;loopback&gt; mtu 16436 qdisc noqueue state&amp;nbsp;&amp;nbsp; UNKNOWN \&amp;nbsp;&amp;nbsp;&amp;nbsp; link/loopback&amp;nbsp;&amp;nbsp; 00:00:00:00:00:00 brd 00:00:00:00:00:00&lt;br /&gt;&lt;br /&gt;2: eth0: &lt;broadcast&gt; mtu 1500 qdisc&amp;nbsp;&amp;nbsp; pfifo_fast state UP qlen 1000\&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; link/ether 08:00:27:fc:73:2a brd ff:ff:ff:ff:ff:ff&lt;br /&gt;&lt;br /&gt;3: eth8: &lt;broadcast&gt; mtu 1500 qdisc&amp;nbsp;&amp;nbsp; pfifo_fast state UP qlen 1000\&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; link/ether 08:00:27:09:e1:75 brd ff:ff:ff:ff:ff:ff&lt;br /&gt;&lt;br /&gt;4: eth2: &lt;broadcast&gt; mtu 1500 qdisc&amp;nbsp;&amp;nbsp; pfifo_fast state UP qlen 1000\&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; link/ether 08:00:27:31:2d:d6 brd ff:ff:ff:ff:ff:ff&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Theres no eth1 but there is an eth8. Lets check what is there in dmesg:&lt;/b&gt;&lt;br /&gt;root@centOS network-scripts]# dmesg | grep eth1&lt;br /&gt;&lt;br /&gt;e1000 0000:00:08.0: eth1: (PCI:33MHz:32-bit) 08:00:27:09:e1:75&lt;br /&gt;&lt;br /&gt;e1000 0000:00:08.0: eth1: Intel(R) PRO/1000 Network Connection&lt;br /&gt;&lt;br /&gt;udev: renamed network interface eth1 to eth8.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;So udev decided to rename my interface, Why is this? A little look at /etc/udev/rules.d/70-persistent-net.rules revealed the answer:-&lt;/b&gt;&lt;br /&gt;[root@centOS ~]# cat /etc/udev/rules.d/70-persistent-net.rules |&amp;nbsp;&amp;nbsp; grep “08:00:27:09:e1:75?&lt;br /&gt;&lt;br /&gt;SUBSYSTEM==”net”, ACTION==”add”,&amp;nbsp;&amp;nbsp; DRIVERS==”?*”, ATTR{address}==”08:00:27:09:e1:75?,&amp;nbsp;&amp;nbsp; ATTR{dev_id}==”0x0?, ATTR{type}==”1?,&amp;nbsp;&amp;nbsp; KERNEL==”eth*”, NAME=”eth1?&lt;br /&gt;&lt;br /&gt;SUBSYSTEM==”net”, ACTION==”add”,&amp;nbsp;&amp;nbsp; DRIVERS==”?*”, ATTR{address}==”08:00:27:09:e1:75?,&amp;nbsp;&amp;nbsp; ATTR{dev_id}==”0x0?, ATTR{type}==”1?,&amp;nbsp;&amp;nbsp; KERNEL==”eth*”, NAME=”eth8?&lt;br /&gt;&lt;br /&gt;Looks like there are mulitple entries for the same MAC address. Removed the incorrect entry and restart the interface using below command.&lt;/broadcast&gt;&lt;/broadcast&gt;&lt;/broadcast&gt;&lt;/loopback&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;# ifup eth0&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;Thats it.. &lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://manutechie.blogspot.com/feeds/9192108861840435023/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4374684981300349204/9192108861840435023' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4374684981300349204/posts/default/9192108861840435023'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4374684981300349204/posts/default/9192108861840435023'/><link rel='alternate' type='text/html' href='http://manutechie.blogspot.com/2015/02/how-to-fix-device-eth0-does-not-seem-to.html' title='How To Fix “Device eth0 does not seem to be present, delaying initialization” Error!!'/><author><name>Manu Swami</name><uri>http://www.blogger.com/profile/02517029897671405269</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-4374684981300349204.post-2262737463411799196</id><published>2015-02-21T18:12:00.001+05:30</published><updated>2015-02-21T18:13:31.084+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="cron"/><category scheme="http://www.blogger.com/atom/ns#" term="crontab"/><category scheme="http://www.blogger.com/atom/ns#" term="job scheduling"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="unix"/><category scheme="http://www.blogger.com/atom/ns#" term="UNIX best practices."/><category scheme="http://www.blogger.com/atom/ns#" term="UNIX interview questions"/><title type='text'>Cron</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;The software utility Cron is a time-based job scheduler in Unix-like computer operating systems. People who set up and maintain software environments use cron to schedule jobs (commands or shell scripts) to run periodically at fixed times, dates, or intervals. It typically automates system maintenance or administration—though its general-purpose nature makes it useful for things like connecting to the Internet and downloading email at regular intervals. &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;Cron is driven by a crontab (cron table) file, a configuration file that specifies shell commands to run periodically on a given schedule. The crontab files are stored where the lists of jobs and other instructions to the cron daemon are kept. Users can have their own individual crontab files and often there is a system wide crontab file (usually in /etc or a subdirectory of /etc) that only system administrators can edit.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh2fpSMPRG-D_xYnbrUy2NlXUxKlgL7cYgdqhQ3ODOt9MqTSsMV64E8THyN7aAju5QXHXDh__Y3f-Kar1xbv96ANhXFVW7x9gPyGad6TGUid9BB5RSnBJEUi9bveWXFcg0Pm_yFcAIsvh34/s1600/crontab-syntax.gif&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh2fpSMPRG-D_xYnbrUy2NlXUxKlgL7cYgdqhQ3ODOt9MqTSsMV64E8THyN7aAju5QXHXDh__Y3f-Kar1xbv96ANhXFVW7x9gPyGad6TGUid9BB5RSnBJEUi9bveWXFcg0Pm_yFcAIsvh34/s1600/crontab-syntax.gif&quot; height=&quot;129&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;h3&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;
For Scheduling Repetitive Jobs: crontab&lt;/span&gt;&lt;/h3&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;You can schedule routine system administration tasks to execute daily, weekly, or monthly
by using the crontab command. &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;SYSADV1SYSADV1sysresconcepts-ix2003&quot;&gt;&lt;/a&gt;&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;SYSADV1sysresconcepts-ix2003&quot;&gt;&lt;/a&gt;&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;SYSADV1sysresconcepts-ix2003&quot;&gt;&lt;/a&gt;&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;sysresconcepts-ix2003&quot;&gt;&lt;/a&gt;&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;SYSADV1SYSADV1sysresconcepts-ix2004&quot;&gt;&lt;/a&gt;&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;SYSADV1sysresconcepts-ix2004&quot;&gt;&lt;/a&gt;&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;SYSADV1sysresconcepts-ix2004&quot;&gt;&lt;/a&gt;&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;sysresconcepts-ix2004&quot;&gt;&lt;/a&gt;&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;SYSADV1SYSADV1indexterm-245&quot;&gt;&lt;/a&gt;&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;SYSADV1indexterm-245&quot;&gt;&lt;/a&gt;&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;SYSADV1indexterm-245&quot;&gt;&lt;/a&gt;&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;indexterm-245&quot;&gt;&lt;/a&gt;&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;SYSADV1SYSADV1indexterm-246&quot;&gt;&lt;/a&gt;&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;SYSADV1indexterm-246&quot;&gt;&lt;/a&gt;&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;SYSADV1indexterm-246&quot;&gt;&lt;/a&gt;&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;indexterm-246&quot;&gt;&lt;/a&gt;&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;SYSADV1SYSADV1indexterm-247&quot;&gt;&lt;/a&gt;&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;SYSADV1indexterm-247&quot;&gt;&lt;/a&gt;&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;SYSADV1indexterm-247&quot;&gt;&lt;/a&gt;&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;indexterm-247&quot;&gt;&lt;/a&gt;&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;SYSADV1SYSADV1indexterm-248&quot;&gt;&lt;/a&gt;&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;SYSADV1indexterm-248&quot;&gt;&lt;/a&gt;&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;SYSADV1indexterm-248&quot;&gt;&lt;/a&gt;&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;indexterm-248&quot;&gt;&lt;/a&gt;Daily crontab system administration tasks might include the following:&lt;/span&gt;&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;

Removing files more than a few days old from temporary directories&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;

Executing accounting summary commands&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;

Taking snapshots of the system by using the df and ps commands&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;

Performing daily security monitoring&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;

Running system backups&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;SYSADV1SYSADV1sysresconcepts-ix2005&quot;&gt;&lt;/a&gt;&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;SYSADV1sysresconcepts-ix2005&quot;&gt;&lt;/a&gt;&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;SYSADV1sysresconcepts-ix2005&quot;&gt;&lt;/a&gt;&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;sysresconcepts-ix2005&quot;&gt;&lt;/a&gt;Weekly crontab system administration tasks might include the following:&lt;/span&gt;&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;

Rebuilding the catman database for use by the man -k command &lt;/span&gt;&lt;/li&gt;
&lt;li&gt;

&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;SYSADV1SYSADV1sysresconcepts-ix2007&quot;&gt;&lt;/a&gt;&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;SYSADV1sysresconcepts-ix2007&quot;&gt;&lt;/a&gt;&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;SYSADV1sysresconcepts-ix2007&quot;&gt;&lt;/a&gt;&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;sysresconcepts-ix2007&quot;&gt;&lt;/a&gt;Running the fsck -n command to list any disk problems &lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;SYSADV1SYSADV1sysresconcepts-ix2008&quot;&gt;&lt;/a&gt;&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;SYSADV1sysresconcepts-ix2008&quot;&gt;&lt;/a&gt;&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;SYSADV1sysresconcepts-ix2008&quot;&gt;&lt;/a&gt;&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;sysresconcepts-ix2008&quot;&gt;&lt;/a&gt;Monthly crontab system administration tasks might include the following:&lt;/span&gt;&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;

Listing files not used during a specific month&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;

Producing monthly accounting reports&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;
Controlling Access to the crontab Command&lt;/span&gt;&lt;/h2&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;SYSADV1SYSADV1sysrescron-ix2565&quot;&gt;&lt;/a&gt;&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;SYSADV1sysrescron-ix2565&quot;&gt;&lt;/a&gt;&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;SYSADV1sysrescron-ix2565&quot;&gt;&lt;/a&gt;&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;sysrescron-ix2565&quot;&gt;&lt;/a&gt;&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;SYSADV1SYSADV1sysrescron-ix2566&quot;&gt;&lt;/a&gt;&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;SYSADV1sysrescron-ix2566&quot;&gt;&lt;/a&gt;&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;SYSADV1sysrescron-ix2566&quot;&gt;&lt;/a&gt;&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;sysrescron-ix2566&quot;&gt;&lt;/a&gt;&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;SYSADV1SYSADV1sysrescron-ix2567&quot;&gt;&lt;/a&gt;&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;SYSADV1sysrescron-ix2567&quot;&gt;&lt;/a&gt;&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;SYSADV1sysrescron-ix2567&quot;&gt;&lt;/a&gt;&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;sysrescron-ix2567&quot;&gt;&lt;/a&gt;&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;SYSADV1SYSADV1sysrescron-ix2569&quot;&gt;&lt;/a&gt;&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;SYSADV1sysrescron-ix2569&quot;&gt;&lt;/a&gt;&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;SYSADV1sysrescron-ix2569&quot;&gt;&lt;/a&gt;&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;sysrescron-ix2569&quot;&gt;&lt;/a&gt;&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;SYSADV1SYSADV1sysrescron-ix2570&quot;&gt;&lt;/a&gt;&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;SYSADV1sysrescron-ix2570&quot;&gt;&lt;/a&gt;&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;SYSADV1sysrescron-ix2570&quot;&gt;&lt;/a&gt;&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;sysrescron-ix2570&quot;&gt;&lt;/a&gt;&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;SYSADV1SYSADV1sysrescron-ix2571&quot;&gt;&lt;/a&gt;&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;SYSADV1sysrescron-ix2571&quot;&gt;&lt;/a&gt;&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;SYSADV1sysrescron-ix2571&quot;&gt;&lt;/a&gt;&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;sysrescron-ix2571&quot;&gt;&lt;/a&gt;&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;SYSADV1SYSADV1sysrescron-ix2572&quot;&gt;&lt;/a&gt;&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;SYSADV1sysrescron-ix2572&quot;&gt;&lt;/a&gt;&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;SYSADV1sysrescron-ix2572&quot;&gt;&lt;/a&gt;&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;sysrescron-ix2572&quot;&gt;&lt;/a&gt;You can control access to the crontab command by using two files in
the /etc/cron.d directory: cron.deny and cron.allow. These files permit only specified users to
perform crontab command tasks such as creating, editing, displaying, or removing their own
crontab files.       &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;The cron.deny and cron.allow files consist of a list of user names, one
user name per line. &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;These access control files work together as follows:&lt;/span&gt;&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;

&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;SYSADV1SYSADV1sysrescron-ix2573&quot;&gt;&lt;/a&gt;&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;SYSADV1sysrescron-ix2573&quot;&gt;&lt;/a&gt;&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;SYSADV1sysrescron-ix2573&quot;&gt;&lt;/a&gt;&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;sysrescron-ix2573&quot;&gt;&lt;/a&gt;If cron.allow exists, only the users who are listed in this file can create, edit, display, or remove crontab files. &lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;

If cron.allow does not exist, all users can submit crontab files, except for users who are listed in cron.deny. &lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;

If neither cron.allow nor cron.deny exists, superuser privileges are required to run the crontab command.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;Superuser privileges are required to edit or create the cron.deny and cron.allow
files.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;b&gt;Note:&lt;/b&gt;&lt;/span&gt; &lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;Check for the job errors in /var/spool/mail/username file.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;Escape percent (%) sign with backslash in command line while scheduling a job. &lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://manutechie.blogspot.com/feeds/2262737463411799196/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4374684981300349204/2262737463411799196' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4374684981300349204/posts/default/2262737463411799196'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4374684981300349204/posts/default/2262737463411799196'/><link rel='alternate' type='text/html' href='http://manutechie.blogspot.com/2015/02/cron.html' title='Cron'/><author><name>Manu Swami</name><uri>http://www.blogger.com/profile/02517029897671405269</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><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh2fpSMPRG-D_xYnbrUy2NlXUxKlgL7cYgdqhQ3ODOt9MqTSsMV64E8THyN7aAju5QXHXDh__Y3f-Kar1xbv96ANhXFVW7x9gPyGad6TGUid9BB5RSnBJEUi9bveWXFcg0Pm_yFcAIsvh34/s72-c/crontab-syntax.gif" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4374684981300349204.post-160516331520109075</id><published>2015-02-07T01:44:00.000+05:30</published><updated>2015-02-07T01:44:15.961+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="January 19 2038"/><category scheme="http://www.blogger.com/atom/ns#" term="unix time stamp"/><title type='text'>January 19, 2038</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h2&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;What will happen on January 19, 2038?&lt;/span&gt;&lt;/h2&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;
    &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;On this date the Unix Time Stamp 
      will cease to work due to a 32-bit overflow. Before this moment 
millions of applications will need to either adopt a new convention for 
time stamps or be migrated to 64-bit systems which will buy the time 
stamp a &quot;bit&quot; more time. &lt;/span&gt;&lt;br /&gt;
&lt;h2&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&amp;nbsp;What is the unix time stamp?&lt;/span&gt;&lt;/h2&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;
    &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;The unix time stamp is a way to 
      track time as a running total of seconds. This count starts at the
 Unix 
      Epoch on January 1st, 1970 at UTC. Therefore, the unix time stamp 
is merely the 
      number of seconds between a particular date and the Unix Epoch. It
 should also be pointed out
   (thanks to the comments from visitors to this site) that this point 
in time technically does not
   change no matter where you are located on the globe.  This is very 
useful to computer systems for tracking and sorting dated information 
      in dynamic and distributed applications both online and client 
side.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://manutechie.blogspot.com/feeds/160516331520109075/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4374684981300349204/160516331520109075' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4374684981300349204/posts/default/160516331520109075'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4374684981300349204/posts/default/160516331520109075'/><link rel='alternate' type='text/html' href='http://manutechie.blogspot.com/2015/02/january-19-2038.html' title='January 19, 2038'/><author><name>Manu Swami</name><uri>http://www.blogger.com/profile/02517029897671405269</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-4374684981300349204.post-3720852754624508211</id><published>2015-02-04T10:46:00.002+05:30</published><updated>2015-02-04T10:46:48.911+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="GHOST: glibc vulnerability (CVE-2015-0235)"/><title type='text'>GHOST: glibc vulnerability (CVE-2015-0235): Release Date:2015-01-27</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;A very serious security problem has been found in the GNU C Library (Glibc) called GHOST. How can I fix GHOST vulnerability and protect my Linux server against the attack? How do I verify that my server has been fixed against the Glibc GHOST vulnerability? And what is this all about?&lt;br /&gt;&lt;br /&gt;A heap-based buffer overflow was found in glibc&#39;s __nss_hostname_digits_dots() function, which is used by the gethostbyname() and gethostbyname2() glibc function calls. A remote attacker able to make an application call either of these functions could use this flaw to execute arbitrary code with the permissions of the user running the application.&lt;br /&gt;See more information about CVE-2015-0235 from &lt;a href=&quot;http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2015-0235&quot;&gt;MITRE CVE&lt;/a&gt; dictionary and &lt;a href=&quot;http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2015-0235&quot;&gt;NIST NVD&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Link to download patch for Oracle Linux:&lt;/b&gt;&lt;br /&gt;http://linux.oracle.com/cve/CVE-2015-0235.html&lt;br /&gt;Link to download patch for RHEL:&lt;br /&gt;https://access.redhat.com/articles/1332213&lt;br /&gt;&lt;br /&gt;&lt;b&gt;An easy way to fix the GHOST vulnerability on a CentOS/RHEL/Fedora/Scientific Linux:&lt;/b&gt;&lt;br /&gt;sudo yum clean all&lt;br /&gt;sudo yum update&lt;br /&gt;&lt;br /&gt;&lt;b&gt;An easy way to fix the GHOST vulnerability on a Ubuntu/Debian Linux:&lt;/b&gt;&lt;br /&gt;sudo apt-get clean&lt;br /&gt;sudo apt-get update&lt;br /&gt;sudo apt-get upgrade&lt;br /&gt;&lt;br /&gt;&lt;b&gt;An easy way to fix the GHOST vulnerability on a SUSE Linux Enterprise:&lt;/b&gt;&lt;br /&gt;&lt;u&gt;SUSE Linux Enterprise Software Development Kit 11 SP3&lt;/u&gt;&lt;br /&gt;&lt;br /&gt;zypper in -t patch sdksp3-glibc-10206&lt;br /&gt;&lt;br /&gt;&lt;u&gt;SUSE Linux Enterprise Server 11 SP3 for VMware&lt;/u&gt;&lt;br /&gt;&lt;br /&gt;zypper in -t patch slessp3-glibc-10206&lt;br /&gt;&lt;br /&gt;&lt;u&gt;SUSE Linux Enterprise Server 11 SP3&lt;/u&gt;&lt;br /&gt;&lt;br /&gt;zypper in -t patch slessp3-glibc-10206&lt;br /&gt;&lt;br /&gt;&lt;u&gt;SUSE Linux Enterprise Server 11 SP2 LTSS&lt;/u&gt;&lt;br /&gt;&lt;br /&gt;zypper in -t patch slessp2-glibc-10204&lt;br /&gt;&lt;br /&gt;&lt;u&gt;SUSE Linux Enterprise Server 11 SP1 LTSS&lt;/u&gt;&lt;br /&gt;&lt;br /&gt;zypper in -t patch slessp1-glibc-10202&lt;br /&gt;&lt;br /&gt;&lt;u&gt;SUSE Linux Enterprise Desktop 11 SP3&lt;/u&gt;&lt;br /&gt;&lt;br /&gt;zypper in -t patch sledsp3-glibc-10206&lt;br /&gt;&lt;br /&gt;&lt;u&gt;Finally run for all SUSE linux version to bring your system up-to-date:&lt;/u&gt;&lt;br /&gt;&lt;br /&gt;zypper patch&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Fix the GHOST vulnerability on a OpenSUSE Linux:&lt;/b&gt;&lt;br /&gt;zypper lu&lt;br /&gt;zypper up&lt;br /&gt;&lt;br /&gt;Note: Reboot will be required after update for all Linux.&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://manutechie.blogspot.com/feeds/3720852754624508211/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4374684981300349204/3720852754624508211' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4374684981300349204/posts/default/3720852754624508211'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4374684981300349204/posts/default/3720852754624508211'/><link rel='alternate' type='text/html' href='http://manutechie.blogspot.com/2015/02/ghost-glibc-vulnerability-cve-2015-0235.html' title='GHOST: glibc vulnerability (CVE-2015-0235): Release Date:2015-01-27'/><author><name>Manu Swami</name><uri>http://www.blogger.com/profile/02517029897671405269</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-4374684981300349204.post-5666377925769372284</id><published>2015-01-28T12:35:00.002+05:30</published><updated>2015-01-28T12:35:57.195+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Ipad"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="QMole"/><title type='text'>QMole – The World of Linux on an IPad Near You</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;Have you noticed that many stock applications which are free on Linux require payment on the IPhoneTM&amp;nbsp; and IPad TM? Don’t want to re-implement Linux software on IOSTM ?&amp;nbsp; QMole is the answer. QMole is a new desktop system allowing the free operation of software ported from the world of Linux on the IPad. The technology enables retaining a touch screen operation of stock GTK Linux applications without requiring their redesign or reimplementation. Unlike remote desktop solutions that require a network connection, QMole requires none. All “Linux” applications execute locally on iPad TM, just like native IOS TM applications. &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;http://youtu.be/ofk0M1LjdtU&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://manutechie.blogspot.com/feeds/5666377925769372284/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4374684981300349204/5666377925769372284' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4374684981300349204/posts/default/5666377925769372284'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4374684981300349204/posts/default/5666377925769372284'/><link rel='alternate' type='text/html' href='http://manutechie.blogspot.com/2015/01/qmole-world-of-linux-on-ipad-near-you.html' title='QMole – The World of Linux on an IPad Near You'/><author><name>Manu Swami</name><uri>http://www.blogger.com/profile/02517029897671405269</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-4374684981300349204.post-2393500554282531967</id><published>2015-01-27T17:08:00.000+05:30</published><updated>2015-01-27T17:13:47.042+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="grant"/><category scheme="http://www.blogger.com/atom/ns#" term="GRANT ALL PRIVILEGES mysql"/><category scheme="http://www.blogger.com/atom/ns#" term="GRANT REPLICATION SLAVE"/><category scheme="http://www.blogger.com/atom/ns#" term="How to create DB replication in MySql"/><category scheme="http://www.blogger.com/atom/ns#" term="mysql"/><category scheme="http://www.blogger.com/atom/ns#" term="mysql replication"/><category scheme="http://www.blogger.com/atom/ns#" term="RESET MASTER"/><category scheme="http://www.blogger.com/atom/ns#" term="SHOW MASTER STATUS"/><category scheme="http://www.blogger.com/atom/ns#" term="START SLAVE"/><category scheme="http://www.blogger.com/atom/ns#" term="STOP SLAVE"/><title type='text'>How to create DB replication in MySql from command line</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;Make sure you have entries for both primary and standby servers in /etc/hosts files in both primary and standby machines.&lt;br /&gt;&lt;br /&gt;[root@primaryhostname bin]# cat /etc/hosts&lt;br /&gt;# Do not remove the following line, or various programs&lt;br /&gt;# that require network functionality will fail.&lt;br /&gt;127.0.0.1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; localhost&lt;br /&gt;::1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; localhost6.localdomain6 localhost6&lt;br /&gt;10.64.30.8 primaryhostname&lt;br /&gt;10.64.30.9 standbyhostname&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;[root@&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;standbyhostname&lt;/span&gt;bin]# cat /etc/hosts&lt;br /&gt;# Do not remove the following line, or various programs&lt;br /&gt;# that require network functionality will fail.&lt;br /&gt;127.0.0.1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; localhost&lt;br /&gt;::1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; localhost6.localdomain6 localhost6&lt;br /&gt;10.64.30.8 primaryhostname&lt;br /&gt;10.64.30.9 standbyhostname&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;Run on primary server:&lt;br /&gt;======================&lt;br /&gt;GRANT ALL PRIVILEGES ON *.* TO root@&#39;primaryhostname&#39; IDENTIFIED BY &#39;&lt;mysql for=&quot;&quot; password=&quot;&quot; root=&quot;&quot; user=&quot;&quot;&gt;&#39;;&lt;br /&gt;GRANT ALL PRIVILEGES ON *.* TO root@&#39;standbyhostname&#39; IDENTIFIED BY &#39;&lt;mysql for=&quot;&quot; password=&quot;&quot; root=&quot;&quot; user=&quot;&quot;&gt;&#39;;&lt;br /&gt;CREATE USER &#39;repl&#39;@&#39;primaryhostname&#39; IDENTIFIED BY &#39;&lt;password for=&quot;&quot; replication=&quot;&quot; user=&quot;&quot;&gt;&#39;;&lt;br /&gt;GRANT REPLICATION SLAVE ON *.* TO &#39;repl@&#39;standbyhostname&#39; IDENTIFIED BY &#39;&lt;password for=&quot;&quot; replication=&quot;&quot; user=&quot;&quot;&gt;&#39;;&lt;br /&gt;FLUSH PRIVILEGES;&lt;br /&gt;show master status;&lt;br /&gt;mysql&amp;gt; show master status;&lt;br /&gt;+----------------+----------+--------------+------------------+&lt;br /&gt;| File&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | Position | Binlog_Do_DB | Binlog_Ignore_DB |&lt;br /&gt;+----------------+----------+--------------+------------------+&lt;br /&gt;| log-bin.000001 |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 98| ManuAppl&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | mysql&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;1 row in set (0.00 sec)&lt;br /&gt;(Note down the File and Position)&lt;br /&gt;&lt;br /&gt;Run on standby server:&lt;br /&gt;======================&lt;br /&gt;GRANT ALL PRIVILEGES ON *.* TO root@&#39;primaryhostname&#39; IDENTIFIED BY &#39;&lt;mysql for=&quot;&quot; of=&quot;&quot; password=&quot;&quot; primary=&quot;&quot; root=&quot;&quot; user=&quot;&quot;&gt;&#39;;&lt;br /&gt;GRANT ALL PRIVILEGES ON *.* TO root@&#39;standbyhostname&#39; IDENTIFIED BY &#39;&lt;mysql for=&quot;&quot; of=&quot;&quot; password=&quot;&quot; primary=&quot;&quot; root=&quot;&quot; user=&quot;&quot;&gt;&#39;;&lt;br /&gt;CREATE USER &#39;repl&#39;@&#39;standbyhostname&#39; IDENTIFIED BY &#39;&lt;password for=&quot;&quot; replication=&quot;&quot; user=&quot;&quot;&gt;&#39;;&lt;br /&gt;GRANT REPLICATION SLAVE ON *.* TO &#39;repl&#39;@&#39;primaryhostname&#39; IDENTIFIED BY &#39;&lt;password for=&quot;&quot; replication=&quot;&quot; user=&quot;&quot;&gt;&#39;;&lt;br /&gt;FLUSH PRIVILEGES;&lt;br /&gt;show master status;&lt;br /&gt;(Note down the File and Position)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Run on primary server:&lt;br /&gt;======================&lt;br /&gt;&lt;br /&gt;CHANGE MASTER TO MASTER_HOST=&#39;standbyhostname&#39;, MASTER_PORT=3306, MASTER_USER=&#39;repl&#39;, MASTER_PASSWORD=&#39;&lt;password for=&quot;&quot; replication=&quot;&quot; user=&quot;&quot;&gt;&#39;, MASTER_LOG_POS=98&lt;standbylogposition&gt;, MASTER_LOG_FILE=&#39;&lt;/standbylogposition&gt;&lt;/password&gt;&lt;/password&gt;&lt;/password&gt;&lt;/mysql&gt;&lt;/mysql&gt;&lt;/password&gt;&lt;/password&gt;&lt;/mysql&gt;&lt;/mysql&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;log-bin.000001&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;mysql for=&quot;&quot; password=&quot;&quot; root=&quot;&quot; user=&quot;&quot;&gt;&lt;mysql for=&quot;&quot; password=&quot;&quot; root=&quot;&quot; user=&quot;&quot;&gt;&lt;password for=&quot;&quot; replication=&quot;&quot; user=&quot;&quot;&gt;&lt;password for=&quot;&quot; replication=&quot;&quot; user=&quot;&quot;&gt;&lt;mysql for=&quot;&quot; of=&quot;&quot; password=&quot;&quot; primary=&quot;&quot; root=&quot;&quot; user=&quot;&quot;&gt;&lt;mysql for=&quot;&quot; of=&quot;&quot; password=&quot;&quot; primary=&quot;&quot; root=&quot;&quot; user=&quot;&quot;&gt;&lt;password for=&quot;&quot; replication=&quot;&quot; user=&quot;&quot;&gt;&lt;password for=&quot;&quot; replication=&quot;&quot; user=&quot;&quot;&gt;&lt;password for=&quot;&quot; replication=&quot;&quot; user=&quot;&quot;&gt;&lt;standbylogposition&gt;&lt;standbylogfile&gt;&#39;;&lt;br /&gt;START SLAVE;&lt;br /&gt;&lt;br /&gt;Run on standby server:&lt;br /&gt;======================&lt;br /&gt;CHANGE MASTER TO MASTER_HOST=&#39;primaryhostname&#39;, MASTER_PORT=3306, MASTER_USER=&#39;repl&#39;, MASTER_PASSWORD=&#39;&lt;password for=&quot;&quot; replication=&quot;&quot; user=&quot;&quot;&gt;&#39;, MASTER_LOG_POS=98&lt;primarylogposition&gt;, MASTER_LOG_FILE=&#39;&lt;/primarylogposition&gt;&lt;/password&gt;&lt;/standbylogfile&gt;&lt;/standbylogposition&gt;&lt;/password&gt;&lt;/password&gt;&lt;/password&gt;&lt;/mysql&gt;&lt;/mysql&gt;&lt;/password&gt;&lt;/password&gt;&lt;/mysql&gt;&lt;/mysql&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;log-bin.000001&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;mysql for=&quot;&quot; password=&quot;&quot; root=&quot;&quot; user=&quot;&quot;&gt;&lt;mysql for=&quot;&quot; password=&quot;&quot; root=&quot;&quot; user=&quot;&quot;&gt;&lt;password for=&quot;&quot; replication=&quot;&quot; user=&quot;&quot;&gt;&lt;password for=&quot;&quot; replication=&quot;&quot; user=&quot;&quot;&gt;&lt;mysql for=&quot;&quot; of=&quot;&quot; password=&quot;&quot; primary=&quot;&quot; root=&quot;&quot; user=&quot;&quot;&gt;&lt;mysql for=&quot;&quot; of=&quot;&quot; password=&quot;&quot; primary=&quot;&quot; root=&quot;&quot; user=&quot;&quot;&gt;&lt;password for=&quot;&quot; replication=&quot;&quot; user=&quot;&quot;&gt;&lt;password for=&quot;&quot; replication=&quot;&quot; user=&quot;&quot;&gt;&lt;password for=&quot;&quot; replication=&quot;&quot; user=&quot;&quot;&gt;&lt;standbylogposition&gt;&lt;standbylogfile&gt;&lt;password for=&quot;&quot; replication=&quot;&quot; user=&quot;&quot;&gt;&lt;primarylogposition&gt;&lt;primarylogfile&gt;&#39;;&lt;br /&gt;START SLAVE;&lt;/primarylogfile&gt;&lt;/primarylogposition&gt;&lt;/password&gt;&lt;/standbylogfile&gt;&lt;/standbylogposition&gt;&lt;/password&gt;&lt;/password&gt;&lt;/password&gt;&lt;/mysql&gt;&lt;/mysql&gt;&lt;/password&gt;&lt;/password&gt;&lt;/mysql&gt;&lt;/mysql&gt;&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://manutechie.blogspot.com/feeds/2393500554282531967/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4374684981300349204/2393500554282531967' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4374684981300349204/posts/default/2393500554282531967'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4374684981300349204/posts/default/2393500554282531967'/><link rel='alternate' type='text/html' href='http://manutechie.blogspot.com/2015/01/how-to-create-db-replication-in-mysql.html' title='How to create DB replication in MySql from command line'/><author><name>Manu Swami</name><uri>http://www.blogger.com/profile/02517029897671405269</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-4374684981300349204.post-6141633061726298296</id><published>2015-01-11T00:18:00.003+05:30</published><updated>2015-01-11T00:29:49.183+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="java heap dump"/><category scheme="http://www.blogger.com/atom/ns#" term="java heap dump and thread dump in linux from command line"/><category scheme="http://www.blogger.com/atom/ns#" term="java memory leaks"/><category scheme="http://www.blogger.com/atom/ns#" term="java process tuning"/><category scheme="http://www.blogger.com/atom/ns#" term="java thread dump"/><title type='text'>Taking java heap dump and thread dump in linux from command line</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif; font-size: small;&quot;&gt;Taking java heap dump:&lt;br /&gt;======================&lt;br /&gt;jmap -dump:format=b,file=output_file.bin PID_of_process&lt;output file=&quot;&quot;&gt; &lt;pid&gt;&lt;br /&gt;Example:&amp;nbsp;&amp;nbsp; /usr/java/jdk1.7.0_55/bin/jmap -dump:format=b,file=/tmp/heapdump_PID_15034.bin 15034&lt;br /&gt;&lt;br /&gt;Taking java thread dump:&lt;br /&gt;========================&lt;br /&gt;jstack -l &lt;pid&gt; &amp;gt;output_file.txt&lt;br /&gt;Example:&amp;nbsp;&amp;nbsp; /usr/java/jdk1.7.0_55/bin/jstack -l 15034 &amp;gt;/tmp/threaddump.txt&lt;/pid&gt;&lt;/pid&gt;&lt;/output&gt;&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://manutechie.blogspot.com/feeds/6141633061726298296/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4374684981300349204/6141633061726298296' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4374684981300349204/posts/default/6141633061726298296'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4374684981300349204/posts/default/6141633061726298296'/><link rel='alternate' type='text/html' href='http://manutechie.blogspot.com/2015/01/taking-java-heap-dump-and-thread-dump.html' title='Taking java heap dump and thread dump in linux from command line'/><author><name>Manu Swami</name><uri>http://www.blogger.com/profile/02517029897671405269</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-4374684981300349204.post-7486783784796108693</id><published>2014-09-16T21:08:00.000+05:30</published><updated>2014-09-16T21:08:09.085+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="awk"/><category scheme="http://www.blogger.com/atom/ns#" term="function"/><category scheme="http://www.blogger.com/atom/ns#" term="if"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="ORS"/><category scheme="http://www.blogger.com/atom/ns#" term="patter match"/><category scheme="http://www.blogger.com/atom/ns#" term="print lines before and after pattern match using awk"/><category scheme="http://www.blogger.com/atom/ns#" term="Print paragraph between semicolons containing a pattern"/><category scheme="http://www.blogger.com/atom/ns#" term="regex"/><category scheme="http://www.blogger.com/atom/ns#" term="regular expression"/><category scheme="http://www.blogger.com/atom/ns#" term="unix"/><title type='text'>Print paragraph between semicolons containing a pattern</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;Below two awk snippets can do this for you:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;pre class=&quot;alt2&quot; style=&quot;border: 1px inset; margin: 0px; overflow: auto; padding: 6px;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;awk &#39;function dothis(){ if(v &amp;amp;&amp;amp; s==2){ print p} if(s==2)s=v=p=&quot;&quot; }{ dothis(); s += /;/ ; v += /XXXX/; s ? p = length(p) ? p ORS $0 : $0 : &quot;&quot; }END{dothis()}&#39; &lt;b&gt;file&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;pre class=&quot;alt2&quot; style=&quot;border: 1px inset; margin: 0px; overflow: auto; padding: 6px;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;awk &#39;($0 ~ /;/){set++;} set{v=v?v ORS $0:$0} (v ~ /XXXX/){value=1} {if(set&amp;gt;1 &amp;amp;&amp;amp; value==1){print v;v=&quot;&quot;;value=&quot;&quot;;set=&quot;&quot;}}&#39;  filename &lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://manutechie.blogspot.com/feeds/7486783784796108693/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4374684981300349204/7486783784796108693' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4374684981300349204/posts/default/7486783784796108693'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4374684981300349204/posts/default/7486783784796108693'/><link rel='alternate' type='text/html' href='http://manutechie.blogspot.com/2014/09/print-paragraph-between-semicolons.html' title='Print paragraph between semicolons containing a pattern'/><author><name>Manu Swami</name><uri>http://www.blogger.com/profile/02517029897671405269</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-4374684981300349204.post-115758763513798557</id><published>2014-07-03T23:34:00.000+05:30</published><updated>2014-07-03T23:42:08.786+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="centOS"/><category scheme="http://www.blogger.com/atom/ns#" term="Configure/change IP in CentOS/Linux"/><category scheme="http://www.blogger.com/atom/ns#" term="define"/><category scheme="http://www.blogger.com/atom/ns#" term="DHCP"/><category scheme="http://www.blogger.com/atom/ns#" term="file"/><category scheme="http://www.blogger.com/atom/ns#" term="gateway"/><category scheme="http://www.blogger.com/atom/ns#" term="IP"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="networking"/><category scheme="http://www.blogger.com/atom/ns#" term="service network"/><category scheme="http://www.blogger.com/atom/ns#" term="sysconfig"/><title type='text'>Configure/change IP in CentOS/Linux</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;From command line run following command:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;ifconfig &lt;ip address=&quot;&quot;&gt; &lt;ethernet port=&quot;&quot;&gt;&lt;/ethernet&gt;&lt;/ip&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;e.g. ifconfig 10.10.10.10 eth0&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;This will immediately assign the IP to the system. But this will be removed after reboot.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;To make it permanent, edit below file:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt; /etc/sysconfig/network-scripts/ifcfg-eth0 &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;pre class=&quot;ini&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;DEVICE=eth0
BOOTPROTO=static
DHCPCLASS=yes
IPADDR=10.10.10.10
NETMASK=255.255.255.0
ONBOOT=yes&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;.....&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;Now define gateway in file:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt; /etc/sysconfig/network&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;ini&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;NETWORKING=yes
HOSTNAME=manutablet
GATEWAY=192.168.1.254&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&amp;nbsp;..&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;Once these are defined, restart network services:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;service network restart&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;Note: Do not stop/start service. Only restart it otherwise after stop you will lose your connection and you will need to go to the server and start the services from console. &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://manutechie.blogspot.com/feeds/115758763513798557/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4374684981300349204/115758763513798557' title='7 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4374684981300349204/posts/default/115758763513798557'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4374684981300349204/posts/default/115758763513798557'/><link rel='alternate' type='text/html' href='http://manutechie.blogspot.com/2014/07/configurechange-ip-in-centoslinux.html' title='Configure/change IP in CentOS/Linux'/><author><name>Manu Swami</name><uri>http://www.blogger.com/profile/02517029897671405269</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>7</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4374684981300349204.post-694422752459329479</id><published>2013-09-18T15:14:00.000+05:30</published><updated>2013-09-24T12:36:07.683+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="centOS"/><category scheme="http://www.blogger.com/atom/ns#" term="check update"/><category scheme="http://www.blogger.com/atom/ns#" term="how to use yum for installing package in CentOS"/><category scheme="http://www.blogger.com/atom/ns#" term="install"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="package"/><category scheme="http://www.blogger.com/atom/ns#" term="remove"/><category scheme="http://www.blogger.com/atom/ns#" term="search"/><category scheme="http://www.blogger.com/atom/ns#" term="yum"/><title type='text'>Yummy yum for CentOSians </title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Lets say someone wants to install a package, or update a package or just wanted to check if there is any update of a package. The command &quot;yum&quot; would be pretty helpful for them. The basic syntax for yum would be like below:&lt;br /&gt;
&lt;br /&gt;
yum install &lt;package name=&quot;&quot; s=&quot;&quot;&gt;&lt;/package&gt;&lt;br /&gt;
Used to install the latest version of a package or group of packages.&lt;br /&gt;
&lt;br /&gt;
yum update &lt;package name=&quot;&quot; s=&quot;&quot;&gt;&lt;/package&gt;&lt;br /&gt;
Used to update the specified packages to the latest available version.&lt;br /&gt;
&lt;br /&gt;
yum update stuck due to broken package: (Lets say due to firefox and java packages)&lt;br /&gt;
&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; vi /etc/yum.conf --&amp;gt; In main section add below line:&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; exclude=firefox* java*&lt;br /&gt;
&lt;br /&gt;
Then run the update again like below:&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; yum update --skip-broken&lt;br /&gt;
&lt;br /&gt;
yum check-update&lt;br /&gt;
This command allows you to determine whether any updates are available for your installed packages. yum returns a list of all package updates from all repositories if any are available.&lt;br /&gt;
&lt;br /&gt;
yum localinstall &lt;absolute name=&quot;&quot; package=&quot;&quot; path=&quot;&quot; s=&quot;&quot; to=&quot;&quot;&gt;&lt;/absolute&gt;&lt;br /&gt;
Used when using yum to install a package located locally in the machine&lt;br /&gt;
&lt;br /&gt;
yum provides &lt;file name=&quot;&quot;&gt;&lt;/file&gt;&lt;br /&gt;
Used to determine which packages provide a specific file or feature.&lt;br /&gt;
&lt;br /&gt;
yum search &lt;keyword&gt;&lt;/keyword&gt;&lt;br /&gt;
This command is used to find any packages containing the specified keyword in the description, summary, packager and package name fields of RPMs in all repositories.&lt;br /&gt;
&lt;br /&gt;
To search for a specific package by name, use the list function. To search for the package tsclient, use the command: (provide root&#39;s password when prompts)&lt;br /&gt;
&lt;br /&gt;
su -c &#39;yum list tsclient&#39;&lt;br /&gt;
&lt;br /&gt;
What about uninstalling a package? Yes yum will again help you in this regard.&lt;br /&gt;
&lt;br /&gt;
yum remove &lt;package name=&quot;&quot; s=&quot;&quot;&gt;&lt;/package&gt;&lt;br /&gt;
Used to remove specified packages, along with any other packages dependent on the packages being removed.&lt;br /&gt;
&lt;br /&gt;
By default, yum is configured through /etc/yum.conf.&lt;br /&gt;
&lt;br /&gt;
cat /etc/yum.conf&lt;br /&gt;
&lt;br /&gt;
[main]&lt;br /&gt;
cachedir=/var/cache/yum&lt;br /&gt;
keepcache=0&lt;br /&gt;
debuglevel=2&lt;br /&gt;
logfile=/var/log/yum.log&lt;br /&gt;
pkgpolicy=newest&lt;br /&gt;
distroverpkg=redhat-release&lt;br /&gt;
tolerant=1&lt;br /&gt;
exactarch=1&lt;br /&gt;
obsoletes=1&lt;br /&gt;
gpgcheck=1&lt;br /&gt;
plugins=1&lt;br /&gt;
metadata_expire=1800&lt;br /&gt;
&lt;br /&gt;
[myrepo]&lt;br /&gt;
name=RHEL 5 $releasever - $basearch&lt;br /&gt;
baseurl=http://local/path/to/yum/repository/&lt;br /&gt;
enabled=1&lt;br /&gt;
A typical /etc/yum.conf file is made up of two types of sections: a [main] section, and a repository section. There can only be one [main] section, but you can specify multiple repositories in a single /etc/yum.conf.&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://manutechie.blogspot.com/feeds/694422752459329479/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4374684981300349204/694422752459329479' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4374684981300349204/posts/default/694422752459329479'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4374684981300349204/posts/default/694422752459329479'/><link rel='alternate' type='text/html' href='http://manutechie.blogspot.com/2013/09/yummy-yum-for-centosians.html' title='Yummy yum for CentOSians '/><author><name>Manu Swami</name><uri>http://www.blogger.com/profile/02517029897671405269</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>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4374684981300349204.post-5079871493495246414</id><published>2013-08-20T13:01:00.000+05:30</published><updated>2013-08-20T13:01:18.920+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Extract rpm jar tar iso in Windows 7. 7-zip"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="open compressed files in Windows"/><category scheme="http://www.blogger.com/atom/ns#" term="open unix files in windows"/><category scheme="http://www.blogger.com/atom/ns#" term="solaris"/><category scheme="http://www.blogger.com/atom/ns#" term="unix"/><title type='text'>Extract rpm/jar/tar/iso in Windows 7</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;float: right; margin-left: 1em; text-align: right;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;clear: right; margin-bottom: 1em; margin-left: auto; margin-right: auto;&quot;&gt;&lt;a href=&quot;http://www.7-zip.org/download.html&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;78&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj02e1J6xTowDgYuc_1UrKJYmRU0cniHKqd9Q7c-AjOf1VbPwUiKpBjLuw6JIoB4SEhxG91C-Hywvlg3JKuhaBz4SLFY6NgSSIa3P9Y04v_FtE3rKubKpiLiJidSDEnqR-VvsURn2lJVAkN/s200/7.png&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;http://www.7-zip.org/download.html&quot;&gt;Windows 7-Zip from All Programs Menu&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
How about extracting .rpm/iso/tar/jar files on windows 7 machine?&lt;br /&gt;
&lt;br /&gt;
Once of the best utilities i have come across in recent years in 7-Zip. I was particularly interested in jar, tar, iso and rpm files extraction. Other than these four &amp;nbsp;extensions, 7-Zip supports a number of other compression and non-compression archive formats (both for packing and unpacking) including 7z, ZIP, GZip, bzip2, xz and WIM. The utility also supports unpacking APM, ARJ, CHM, cpio, DEB, FLV, JAR, LHA/LZH, LZMA, MSLZ, onepkg, RAR, RPM, smzip, SWF, XAR and Z archives and CramFS, DMG, FAT, HFS, ISO, MBR, NTFS, SquashFS, UDF and VHD disk images.&lt;br /&gt;
&lt;br /&gt;
7-Zip can open some MSI files, allowing access to the meta-files within along with the main contents. Some Microsoft CAB (LZX compression) and NSIS (LZMA) installer formats can be opened. Similarly, some Microsoft executable programs (.EXEs) which are self-extracting archives or otherwise contain archived content (e.g., some setup files) may be opened as archives.&lt;br /&gt;
&lt;br /&gt;
The utility can be downloaded from here:&lt;br /&gt;
&lt;a href=&quot;http://www.7-zip.org/download.html&quot;&gt;http://www.7-zip.org/download.html&lt;/a&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://manutechie.blogspot.com/feeds/5079871493495246414/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4374684981300349204/5079871493495246414' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4374684981300349204/posts/default/5079871493495246414'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4374684981300349204/posts/default/5079871493495246414'/><link rel='alternate' type='text/html' href='http://manutechie.blogspot.com/2013/08/extract-rpmjartariso-in-windows-7.html' title='Extract rpm/jar/tar/iso in Windows 7'/><author><name>Manu Swami</name><uri>http://www.blogger.com/profile/02517029897671405269</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><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj02e1J6xTowDgYuc_1UrKJYmRU0cniHKqd9Q7c-AjOf1VbPwUiKpBjLuw6JIoB4SEhxG91C-Hywvlg3JKuhaBz4SLFY6NgSSIa3P9Y04v_FtE3rKubKpiLiJidSDEnqR-VvsURn2lJVAkN/s72-c/7.png" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4374684981300349204.post-5190692227960835319</id><published>2013-08-12T22:29:00.000+05:30</published><updated>2013-08-13T15:50:50.779+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="awk"/><category scheme="http://www.blogger.com/atom/ns#" term="fuser"/><category scheme="http://www.blogger.com/atom/ns#" term="fuser and pfiles: lsof equivalent in Solaris"/><category scheme="http://www.blogger.com/atom/ns#" term="less"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="lsof"/><category scheme="http://www.blogger.com/atom/ns#" term="pfiles"/><category scheme="http://www.blogger.com/atom/ns#" term="pipe"/><category scheme="http://www.blogger.com/atom/ns#" term="solaris"/><category scheme="http://www.blogger.com/atom/ns#" term="sudo"/><category scheme="http://www.blogger.com/atom/ns#" term="unix"/><title type='text'>fuser and pfiles: lsof equivalent in Solaris</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;Lets talk about lsof. It displays information about files which are opened by running(active) processes. An open file may be a regular file like text file or any script, directory, NFS file, block special file, character special file, shared library, regular pipe, named pipe, symbolic link, socket, anything. In Unix, we consider everything is a file, so you can think of how incredibly smart utility lsof is. Generally it is supplied with Linux.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;But the question is, what is its Solaris equivalent?&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;After some hit and misses i have managed to run an equivalent command. fuser. The fuser syntax that worked for me is :&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;sudo fuser -vm / 2&amp;gt;&amp;amp;1 | awk &#39;$3 ~ /f|F/&#39; | less&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;Another one is pfiles. It is not necessarily supplied with the default package.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;pfiles /proc/*&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://manutechie.blogspot.com/feeds/5190692227960835319/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4374684981300349204/5190692227960835319' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4374684981300349204/posts/default/5190692227960835319'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4374684981300349204/posts/default/5190692227960835319'/><link rel='alternate' type='text/html' href='http://manutechie.blogspot.com/2013/08/fuser-and-pfiles-lsof-equivalent-in.html' title='fuser and pfiles: lsof equivalent in Solaris'/><author><name>Manu Swami</name><uri>http://www.blogger.com/profile/02517029897671405269</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>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4374684981300349204.post-6132261732422556839</id><published>2013-07-28T21:50:00.002+05:30</published><updated>2013-07-28T22:02:01.345+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="filesystem"/><category scheme="http://www.blogger.com/atom/ns#" term="fsck"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="lost+found"/><category scheme="http://www.blogger.com/atom/ns#" term="mount"/><category scheme="http://www.blogger.com/atom/ns#" term="recover"/><category scheme="http://www.blogger.com/atom/ns#" term="repair"/><category scheme="http://www.blogger.com/atom/ns#" term="restore"/><category scheme="http://www.blogger.com/atom/ns#" term="Run fsck on a filesystem to repair it"/><category scheme="http://www.blogger.com/atom/ns#" term="solaris"/><category scheme="http://www.blogger.com/atom/ns#" term="umount"/><category scheme="http://www.blogger.com/atom/ns#" term="unix"/><title type='text'>Run fsck on a filesystem to repair it..</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;fsck -y -o b=32 /filesystem&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;This will repair the corrupted file system to its best and restore the data in /filesystem/lost+found directory. Data in this directory will have &quot;#inode name&quot; nomenclature. From there the data can be copied back to the filesystem. Ofcourse the techie who is repairing the FS must have prior knowledge about the directory structure in filesystem otherwise he would not be able to decide where to copy which file from lost+found directory.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;Note: This is system administrator&#39;s work, so please do not run mount/umount/fsck sort of commands with minimal knowledge. The fsck command can have other parameters as well. So depending on the need of the work, one can decide the exact fsck command. Above fsck command is most generic one i came across and applied while **working on real time issues**. Also please keep in mind that the filesystem has to be unmounted first (umount /filesystem) then run fsck and then mount (mount /filesystem /mountpoint) the filesystem back if properly repaired. Then only you will be able to see the files for restore in /lost+found directory.&lt;/span&gt;&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://manutechie.blogspot.com/feeds/6132261732422556839/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4374684981300349204/6132261732422556839' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4374684981300349204/posts/default/6132261732422556839'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4374684981300349204/posts/default/6132261732422556839'/><link rel='alternate' type='text/html' href='http://manutechie.blogspot.com/2013/07/run-fsck-on-filesystem-to-repair-it.html' title='Run fsck on a filesystem to repair it..'/><author><name>Manu Swami</name><uri>http://www.blogger.com/profile/02517029897671405269</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-4374684981300349204.post-468052597097108699</id><published>2013-07-17T11:47:00.000+05:30</published><updated>2013-07-17T11:47:39.518+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="iso"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="linux. solaris"/><category scheme="http://www.blogger.com/atom/ns#" term="loop"/><category scheme="http://www.blogger.com/atom/ns#" term="mnt"/><category scheme="http://www.blogger.com/atom/ns#" term="mount"/><category scheme="http://www.blogger.com/atom/ns#" term="mount -o loop"/><category scheme="http://www.blogger.com/atom/ns#" term="Mount ISO image in Linux"/><category scheme="http://www.blogger.com/atom/ns#" term="unix"/><title type='text'>Mount ISO image in Linux</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Getting a lot of emails regarding mounting ISOs in linux. Please use the following steps in order to mount the image to FS.&lt;br /&gt;
&lt;br /&gt;
Procedure to mount ISO images in Linux.&lt;br /&gt;
&lt;br /&gt;
1) Login as a root user:&lt;br /&gt;
$ su -&lt;br /&gt;
&lt;br /&gt;
2) Create a mount point:&lt;br /&gt;
# mkdir -p /mnt/disk&lt;br /&gt;
&lt;br /&gt;
3) Mount iso file called mountthisdisk.iso:&lt;br /&gt;
# mount -o loop mountthisdisk.iso /mnt/disk&lt;br /&gt;
&lt;br /&gt;
4) Verify it:&lt;br /&gt;
# cd /mnt/disk&lt;br /&gt;
# ls -l&lt;br /&gt;
&lt;br /&gt;
In case you have not noticed &quot;loop&quot; in the mount command, let me tell you that A loop device is a pseudo-device that makes a file accessible as a block device. Loop devices are often used for CD ISO images and floppy disc images. Mounting a file containing a filesystem via such a loop mount makes the files within that filesystem accessible. They appear in the mount point directory using above commands.&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://manutechie.blogspot.com/feeds/468052597097108699/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4374684981300349204/468052597097108699' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4374684981300349204/posts/default/468052597097108699'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4374684981300349204/posts/default/468052597097108699'/><link rel='alternate' type='text/html' href='http://manutechie.blogspot.com/2013/07/mount-iso-image-in-linux.html' title='Mount ISO image in Linux'/><author><name>Manu Swami</name><uri>http://www.blogger.com/profile/02517029897671405269</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-4374684981300349204.post-3469797625778114370</id><published>2013-03-25T12:59:00.001+05:30</published><updated>2013-03-25T13:00:43.349+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="bc"/><category scheme="http://www.blogger.com/atom/ns#" term="binary"/><category scheme="http://www.blogger.com/atom/ns#" term="Command to covert decimal to binary in shell. UNIX"/><category scheme="http://www.blogger.com/atom/ns#" term="decimal"/><category scheme="http://www.blogger.com/atom/ns#" term="echo"/><category scheme="http://www.blogger.com/atom/ns#" term="ibase"/><category scheme="http://www.blogger.com/atom/ns#" term="linux. solaris"/><category scheme="http://www.blogger.com/atom/ns#" term="obase"/><title type='text'>Command to covert decimal to binary in shell:</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
echo &quot;ibase=10;obase=2;128&quot; | bc&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://manutechie.blogspot.com/feeds/3469797625778114370/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4374684981300349204/3469797625778114370' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4374684981300349204/posts/default/3469797625778114370'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4374684981300349204/posts/default/3469797625778114370'/><link rel='alternate' type='text/html' href='http://manutechie.blogspot.com/2013/03/command-to-covert-decimal-to-binary-in.html' title='Command to covert decimal to binary in shell:'/><author><name>Manu Swami</name><uri>http://www.blogger.com/profile/02517029897671405269</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>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4374684981300349204.post-6522845639844111774</id><published>2013-02-18T13:46:00.000+05:30</published><updated>2013-02-18T13:47:37.114+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="amin"/><category scheme="http://www.blogger.com/atom/ns#" term="find"/><category scheme="http://www.blogger.com/atom/ns#" term="Find files  which are older than 15 minutes in Linux and Solaris"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="mmin"/><category scheme="http://www.blogger.com/atom/ns#" term="newer"/><category scheme="http://www.blogger.com/atom/ns#" term="sleep"/><category scheme="http://www.blogger.com/atom/ns#" term="solaris"/><category scheme="http://www.blogger.com/atom/ns#" term="touch"/><category scheme="http://www.blogger.com/atom/ns#" term="xargs"/><title type='text'>Find files  which are older than 15 minutes in Linux and Solaris..</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
The below example is for moving (mv) files, same can be changes easily for rm, ls, cp etc. One has to make change in xargs paramaeter.&lt;br /&gt;
&lt;br /&gt;
In LINUX:&lt;br /&gt;
=========&lt;br /&gt;
&lt;br /&gt;
find /path_to_directory/ -name &quot;*.rpt&quot; -type f -mmin +15 | xargs -I {} mv {} /target_directory_path/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In Solaris:&lt;br /&gt;
===========&lt;br /&gt;
&lt;br /&gt;
#! /usr/bin/sh&lt;br /&gt;
&lt;br /&gt;
#### Create a reference file minute_test&lt;br /&gt;
touch /path_to_directory/minute_test&lt;br /&gt;
&lt;br /&gt;
#### Make minute_test 15 minutes old&lt;br /&gt;
sleep 900&lt;br /&gt;
&lt;br /&gt;
#### Move all .rpt files to some other directory which are older than reference file minute_test&lt;br /&gt;
find /path_to_directory/ -name &quot;*.rpt&quot; -type f -newer minute_test | xargs -I {} mv {} /target_directory_path/&lt;br /&gt;
&lt;br /&gt;
#### Remove reference file&lt;br /&gt;
rm -f /path_to_directory/minute_test&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://manutechie.blogspot.com/feeds/6522845639844111774/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4374684981300349204/6522845639844111774' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4374684981300349204/posts/default/6522845639844111774'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4374684981300349204/posts/default/6522845639844111774'/><link rel='alternate' type='text/html' href='http://manutechie.blogspot.com/2013/02/find-files-which-are-older-than-15.html' title='Find files  which are older than 15 minutes in Linux and Solaris..'/><author><name>Manu Swami</name><uri>http://www.blogger.com/profile/02517029897671405269</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>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4374684981300349204.post-6083709917192408736</id><published>2012-12-10T13:13:00.000+05:30</published><updated>2012-12-10T13:13:28.291+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="cp"/><category scheme="http://www.blogger.com/atom/ns#" term="linux. solaris"/><category scheme="http://www.blogger.com/atom/ns#" term="mv"/><category scheme="http://www.blogger.com/atom/ns#" term="unix"/><category scheme="http://www.blogger.com/atom/ns#" term="UNIX interview questions"/><category scheme="http://www.blogger.com/atom/ns#" term="xargs"/><category scheme="http://www.blogger.com/atom/ns#" term="xargs with cp"/><category scheme="http://www.blogger.com/atom/ns#" term="xargs with mv command"/><title type='text'>xargs with cp and xargs with mv command</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
Find with xargs and mv and cp, On public demand :)&lt;br /&gt;
=======================================&lt;br /&gt;
find . -type f &amp;nbsp;| xargs -I {} mv {} /target_directory_path/&lt;br /&gt;
find . -type f &amp;nbsp;| xargs -I {} cp -p {} /target_directory_path/&lt;br /&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://manutechie.blogspot.com/feeds/6083709917192408736/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4374684981300349204/6083709917192408736' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4374684981300349204/posts/default/6083709917192408736'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4374684981300349204/posts/default/6083709917192408736'/><link rel='alternate' type='text/html' href='http://manutechie.blogspot.com/2012/12/xargs-with-cp-and-xargs-with-mv-command.html' title='xargs with cp and xargs with mv command'/><author><name>Manu Swami</name><uri>http://www.blogger.com/profile/02517029897671405269</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>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4374684981300349204.post-4426287521295567485</id><published>2012-12-10T13:00:00.000+05:30</published><updated>2012-12-10T13:00:53.650+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="perl"/><category scheme="http://www.blogger.com/atom/ns#" term="Print lines of file 1 which are not present in file 2. Also second field of file 2 may be different from file 1."/><title type='text'>Print lines of file 1 which are not present in file 2. Also second field of file 2 may be different from file 1.</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/perl -w&lt;br /&gt;
use strict;&lt;br /&gt;
use English qw(-no_match_vars);&lt;br /&gt;
die &quot;Manadatory Parameter missing!Exiting...&quot; if @ARGV &amp;lt; 2;&lt;br /&gt;
my ($file1, $file2) = @ARGV;&lt;br /&gt;
open my $file_handle1, &quot;&amp;lt;&quot;, $file1 || die &quot;Error opening $file1 - $OS_ERROR&quot;;&lt;br /&gt;
open my $file_handle2, &quot;&amp;lt;&quot;, $file2 || die &quot;Error opening $file2 - $OS_ERROR&quot;;&lt;br /&gt;
while (&amp;lt;$file_handle1&amp;gt;) {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; my $file1_line = $_;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; my $file1_id &amp;nbsp; = ($file1_line =~ /^(.+?)\;/) [0];&lt;br /&gt;
&amp;nbsp; &amp;nbsp; my $match_found;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; while (&amp;lt;$file_handle2&amp;gt;) {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; my $file2_line = $_;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; my $file2_id &amp;nbsp; = ($file2_line =~ /^(.+?)\;/) [0];&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if ($file1_id == $file2_id) {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $match_found = 1;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; last;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; seek $file_handle2, 0, 0;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; print $file1_line if ! $match_found;&lt;br /&gt;
&lt;br /&gt;
}&lt;br /&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://manutechie.blogspot.com/feeds/4426287521295567485/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4374684981300349204/4426287521295567485' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4374684981300349204/posts/default/4426287521295567485'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4374684981300349204/posts/default/4426287521295567485'/><link rel='alternate' type='text/html' href='http://manutechie.blogspot.com/2012/12/print-lines-of-file-1-which-are-not.html' title='Print lines of file 1 which are not present in file 2. Also second field of file 2 may be different from file 1.'/><author><name>Manu Swami</name><uri>http://www.blogger.com/profile/02517029897671405269</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>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4374684981300349204.post-2199979533776539403</id><published>2012-04-10T21:03:00.001+05:30</published><updated>2012-10-27T00:08:19.180+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="awk"/><category scheme="http://www.blogger.com/atom/ns#" term="awk oneliners"/><category scheme="http://www.blogger.com/atom/ns#" term="Count the number of occurances of a pattern in a file using awk"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="solaris"/><category scheme="http://www.blogger.com/atom/ns#" term="unix"/><title type='text'>Count the number of occurances of a pattern in a file using awk</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;awk &#39;{ for (i=1;i&amp;lt;=NF;i++) if ( $i == &quot;word&quot; ) count++ } END{print count}&#39; filename&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;This will print the count of the occurance of &amp;nbsp;a pattern &quot;word&quot; in a file.&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://manutechie.blogspot.com/feeds/2199979533776539403/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4374684981300349204/2199979533776539403' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4374684981300349204/posts/default/2199979533776539403'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4374684981300349204/posts/default/2199979533776539403'/><link rel='alternate' type='text/html' href='http://manutechie.blogspot.com/2012/04/count-number-of-occurances-of-pattern.html' title='Count the number of occurances of a pattern in a file using awk'/><author><name>Manu Swami</name><uri>http://www.blogger.com/profile/02517029897671405269</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-4374684981300349204.post-7469821504450590749</id><published>2012-04-06T10:46:00.000+05:30</published><updated>2012-10-27T00:08:59.284+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="awk"/><category scheme="http://www.blogger.com/atom/ns#" term="awk oneliners"/><category scheme="http://www.blogger.com/atom/ns#" term="How to compare the values of a column in awk in a same file and consecutive lines.."/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="sed"/><category scheme="http://www.blogger.com/atom/ns#" term="solaris"/><category scheme="http://www.blogger.com/atom/ns#" term="unix"/><title type='text'>How to compare the values of a column in awk in a same file and consecutive lines..</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 id=&quot;post_message_302618531&quot; style=&quot;text-align: -webkit-auto;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;If one would like to compare the values of 2nd column of consecutive lines of same file in such a way so that if the difference between first value and second value is more than 100 it should print complete line else ignore line.&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div id=&quot;post_message_302618531&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Input File:&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;
&lt;div id=&quot;post_message_302618531&quot;&gt;
=======&lt;/div&gt;
&lt;div id=&quot;post_message_302618531&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div id=&quot;post_message_302618531&quot;&gt;
ABC 2500&lt;/div&gt;
&lt;div id=&quot;post_message_302618531&quot;&gt;
ABCD 123&lt;/div&gt;
&lt;div id=&quot;post_message_302618531&quot;&gt;
XYZ 122&lt;/div&gt;
&lt;div id=&quot;post_message_302618531&quot;&gt;
WXYZ 2565&lt;/div&gt;
&lt;div id=&quot;post_message_302618531&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div id=&quot;post_message_302618531&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div id=&quot;post_message_302618531&quot;&gt;
Desired Output:&lt;/div&gt;
&lt;div id=&quot;post_message_302618531&quot;&gt;
==========&lt;/div&gt;
&lt;div id=&quot;post_message_302618531&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div id=&quot;post_message_302618531&quot;&gt;
ABC 2500 (i.e. difference between 2500 and 123 is greater than 100 here)&lt;/div&gt;
&lt;div id=&quot;post_message_302618531&quot;&gt;
XYZ 122 (i.e. difference between 122 and 2565 is greater than 100 here)&lt;/div&gt;
&lt;div id=&quot;post_message_302618531&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div id=&quot;post_message_302618531&quot;&gt;
Command:&lt;/div&gt;
&lt;div id=&quot;post_message_302618531&quot;&gt;
=======&lt;/div&gt;
&lt;div id=&quot;post_message_302618531&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div id=&quot;post_message_302618531&quot;&gt;
awk &#39;NR % 2 != 0 {a=$1; b=$2} NR % 2 == 0 {if (b - $2 &amp;gt; 100 || $2 - b &amp;gt; 100){print a,b}}&#39; inputfile&lt;/div&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://manutechie.blogspot.com/feeds/7469821504450590749/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4374684981300349204/7469821504450590749' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4374684981300349204/posts/default/7469821504450590749'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4374684981300349204/posts/default/7469821504450590749'/><link rel='alternate' type='text/html' href='http://manutechie.blogspot.com/2012/04/how-to-compare-values-of-column-in-awk.html' title='How to compare the values of a column in awk in a same file and consecutive lines..'/><author><name>Manu Swami</name><uri>http://www.blogger.com/profile/02517029897671405269</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>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4374684981300349204.post-2754660639566867545</id><published>2012-02-24T11:28:00.000+05:30</published><updated>2012-02-24T11:28:21.205+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Count the number of files in each directory recursively"/><category scheme="http://www.blogger.com/atom/ns#" term="find"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="unix"/><title type='text'>Count the number of files in each directory recursively</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;find ./ -type d -exec sh&amp;nbsp;-c &quot;echo -n {} &#39; &#39; ; ls -l {} | wc -l&quot; \;&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manutechie.blogspot.com/feeds/2754660639566867545/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4374684981300349204/2754660639566867545' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4374684981300349204/posts/default/2754660639566867545'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4374684981300349204/posts/default/2754660639566867545'/><link rel='alternate' type='text/html' href='http://manutechie.blogspot.com/2012/02/count-number-of-files-in-each-directory.html' title='Count the number of files in each directory recursively'/><author><name>Manu Swami</name><uri>http://www.blogger.com/profile/02517029897671405269</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>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4374684981300349204.post-538473179766472080</id><published>2012-02-13T20:42:00.000+05:30</published><updated>2012-10-27T00:09:33.079+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="awk"/><category scheme="http://www.blogger.com/atom/ns#" term="Changing extension of all .txt to .sh"/><category scheme="http://www.blogger.com/atom/ns#" term="Joining two files parallely using awk"/><category scheme="http://www.blogger.com/atom/ns#" term="linux. solaris"/><category scheme="http://www.blogger.com/atom/ns#" term="perl"/><category scheme="http://www.blogger.com/atom/ns#" term="sed"/><category scheme="http://www.blogger.com/atom/ns#" term="unix"/><title type='text'>Use awk in following cases</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
Joining two files parallely using awk:&lt;br /&gt;
========================&lt;br /&gt;
awk &#39;NR==FNR{a[NR]=$0; next} {print a[FNR], $0}&#39; file1.txt file2.txt&lt;br /&gt;
&lt;br /&gt;
Changing extension of all .txt to .sh:&lt;br /&gt;
========================&lt;br /&gt;
for i in *.txt;do mv &quot;$i&quot; &quot;${i%.txt}&quot;.sh;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://manutechie.blogspot.com/feeds/538473179766472080/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4374684981300349204/538473179766472080' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4374684981300349204/posts/default/538473179766472080'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4374684981300349204/posts/default/538473179766472080'/><link rel='alternate' type='text/html' href='http://manutechie.blogspot.com/2012/02/use-awk-in-following-cases.html' title='Use awk in following cases'/><author><name>Manu Swami</name><uri>http://www.blogger.com/profile/02517029897671405269</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>1</thr:total></entry></feed>