<?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: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-8690484772340382874</id><updated>2012-01-29T01:42:17.024-08:00</updated><title type='text'>Unix  and Linux  Tips</title><subtitle type='html'>Unix and Linux Tips taken from http://ugu.com</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://unix-linux-tips.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://unix-linux-tips.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default?start-index=101&amp;max-results=100'/><author><name>aboen</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://4.bp.blogspot.com/_PNxtMYqpu08/SaIb5xrIbGI/AAAAAAAAAZQ/qB_0YHjo_Y4/S220/Idiot2.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>928</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8690484772340382874.post-4792073775063298749</id><published>2012-01-29T01:42:00.001-08:00</published><updated>2012-01-29T01:42:17.086-08:00</updated><title type='text'>Unix Tip: BACKUP INDEX LOCATIONS</title><content type='html'>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;			      UNIX GURU UNIVERSE &lt;br&gt;			         UNIX HOT TIP&lt;p&gt;			Unix Tip 3277 - January 29, 2012&lt;p&gt;		    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;&lt;br&gt;BACKUP INDEX LOCATIONS&lt;p&gt;Couple words on your backups index.&lt;p&gt;1) When doing backups on your systems &lt;br&gt;make sure that your backup indexes are &lt;br&gt;not stored on the same disks that you &lt;br&gt;may need to recover files from.  If you &lt;br&gt;loose the disk that the files are on then &lt;br&gt;you still have your backups safe. If &lt;br&gt;you loose the disks with your backup &lt;br&gt;indexes, your files are still okay and &lt;br&gt;the users will be able to work. You can &lt;br&gt;then spend the day scanning your indexes &lt;br&gt;from tape.&lt;p&gt;2) Make sure that you backup your indexes &lt;br&gt;occasionally using tar, dump, cpio or &lt;br&gt;something else other than your normal backup &lt;br&gt;software.&lt;p&gt;&lt;p&gt;--------------------------------------------------------------------------&lt;br&gt;To Subscribe:    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.subscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.subscribe&lt;/a&gt;&lt;br&gt;To Unsubscribe:  &lt;a href="http://www.ugu.com/sui/ugu/show?tip.unsubscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.unsubscribe&lt;/a&gt;&lt;br&gt;To Submit A Tip: &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;==========================================================================&lt;br&gt;DISCLAIMER: All UNIX HOT TIPS ARE OWNED BY THE UNIX GURU UNIVERSE AND ARE&lt;br&gt;NOT TO BE SOLD, PRINTED OR USED WITHOUT THE WRITTEN CONSENT OF THE UNIX &lt;br&gt;GURU UNIVERSE. ALL TIPS ARE &amp;quot;USE AT YOUR OWN RISK&amp;quot;. UGU  ADVISES THAT &lt;br&gt;ALL TIPS BE TESTED IN A NON-PRODUCTION DEVELOPMENT ENVIRONMENT FIRST.&lt;p&gt;Unix Guru Universe - &lt;a href="http://www.ugu.com"&gt;www.ugu.com&lt;/a&gt; - &lt;a href="mailto:tips@ugu.com"&gt;tips@ugu.com&lt;/a&gt; - Copyright 1994-2001&lt;br&gt;==========================================================================&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-9968511444533992";
google_ad_host = "pub-1556223355139109";
/* 728x90, created 3/23/10 */
google_ad_slot = "8218028202";
google_ad_width = 728;
google_ad_height = 90;
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8690484772340382874-4792073775063298749?l=unix-linux-tips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unix-linux-tips.blogspot.com/feeds/4792073775063298749/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://unix-linux-tips.blogspot.com/2012/01/unix-tip-backup-index-locations.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/4792073775063298749'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/4792073775063298749'/><link rel='alternate' type='text/html' href='http://unix-linux-tips.blogspot.com/2012/01/unix-tip-backup-index-locations.html' title='Unix Tip: BACKUP INDEX LOCATIONS'/><author><name>aboen</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://4.bp.blogspot.com/_PNxtMYqpu08/SaIb5xrIbGI/AAAAAAAAAZQ/qB_0YHjo_Y4/S220/Idiot2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8690484772340382874.post-6149793846186471333</id><published>2012-01-28T01:42:00.001-08:00</published><updated>2012-01-28T01:42:17.185-08:00</updated><title type='text'>Unix Tip: DELETING BLANK LINES USING GREP</title><content type='html'>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;			      UNIX GURU UNIVERSE &lt;br&gt;			         UNIX HOT TIP&lt;p&gt;			Unix Tip 3276 - January 28, 2012&lt;p&gt;		    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;&lt;br&gt;DELETING BLANK LINES USING GREP&lt;p&gt;To delete a blank line using a grep command you can use the next&lt;br&gt;command :-&lt;p&gt;grep -v &amp;quot;^ *$&amp;quot; file-y &amp;gt; file-x&lt;p&gt;where file-y is the input files has blank lines and file-x will&lt;br&gt;be the output file ( excluding the blank lines ).&lt;p&gt;if we use (  grep -v &amp;quot;^$&amp;quot; ) only , the blanck line which include&lt;br&gt;spaces will not be removed.&lt;p&gt;&lt;br&gt;This tip generously supported by: &lt;a href="mailto:yousif_morckos@yahoo.com"&gt;yousif_morckos@yahoo.com&lt;/a&gt;&lt;p&gt;&lt;br&gt;--------------------------------------------------------------------------&lt;br&gt;To Subscribe:    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.subscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.subscribe&lt;/a&gt;&lt;br&gt;To Unsubscribe:  &lt;a href="http://www.ugu.com/sui/ugu/show?tip.unsubscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.unsubscribe&lt;/a&gt;&lt;br&gt;To Submit A Tip: &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;==========================================================================&lt;br&gt;DISCLAIMER: All UNIX HOT TIPS ARE OWNED BY THE UNIX GURU UNIVERSE AND ARE&lt;br&gt;NOT TO BE SOLD, PRINTED OR USED WITHOUT THE WRITTEN CONSENT OF THE UNIX &lt;br&gt;GURU UNIVERSE. ALL TIPS ARE &amp;quot;USE AT YOUR OWN RISK&amp;quot;. UGU  ADVISES THAT &lt;br&gt;ALL TIPS BE TESTED IN A NON-PRODUCTION DEVELOPMENT ENVIRONMENT FIRST.&lt;p&gt;Unix Guru Universe - &lt;a href="http://www.ugu.com"&gt;www.ugu.com&lt;/a&gt; - &lt;a href="mailto:tips@ugu.com"&gt;tips@ugu.com&lt;/a&gt; - Copyright 1994-2001&lt;br&gt;==========================================================================&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-9968511444533992";
google_ad_host = "pub-1556223355139109";
/* 728x90, created 3/23/10 */
google_ad_slot = "8218028202";
google_ad_width = 728;
google_ad_height = 90;
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8690484772340382874-6149793846186471333?l=unix-linux-tips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unix-linux-tips.blogspot.com/feeds/6149793846186471333/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://unix-linux-tips.blogspot.com/2012/01/unix-tip-deleting-blank-lines-using_28.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/6149793846186471333'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/6149793846186471333'/><link rel='alternate' type='text/html' href='http://unix-linux-tips.blogspot.com/2012/01/unix-tip-deleting-blank-lines-using_28.html' title='Unix Tip: DELETING BLANK LINES USING GREP'/><author><name>aboen</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://4.bp.blogspot.com/_PNxtMYqpu08/SaIb5xrIbGI/AAAAAAAAAZQ/qB_0YHjo_Y4/S220/Idiot2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8690484772340382874.post-2426597501513659927</id><published>2012-01-27T01:42:00.001-08:00</published><updated>2012-01-27T01:42:16.435-08:00</updated><title type='text'>Unix Tip: THE BAD AND THE GOOD</title><content type='html'>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;			      UNIX GURU UNIVERSE &lt;br&gt;			         UNIX HOT TIP&lt;p&gt;			Unix Tip 3275 - January 27, 2012&lt;p&gt;		    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;&lt;br&gt;THE BAD AND THE GOOD &lt;p&gt;I cringe anytime I see someone code inefficiently.  Here are&lt;br&gt;three of the most common mistakes, followed by a better way to&lt;br&gt;do the same thing.&lt;p&gt;Bad:    cat somefile | grep something&lt;br&gt;Better: grep something somefile&lt;br&gt;Why:    You&amp;#39;re running one program (grep) instead of two (cat&lt;br&gt;and grep).&lt;p&gt;Bad:    ps -ef | grep something | grep -v grep&lt;br&gt;Better: ps -ef | grep [s]omething&lt;br&gt;Why:    You&amp;#39;re running two commands (grep) instead of three (ps&lt;br&gt;and two greps).&lt;p&gt;Bad:    cat /dev/null &amp;gt; somefile&lt;br&gt;Better: &amp;gt; somefile&lt;br&gt;Why:    You&amp;#39;re running a command (cat) with I/O redirection,&lt;br&gt;instead of just redirection.&lt;p&gt;Although the bad way will have the same result, the good way is&lt;br&gt;far faster.  This may seem trivial, but the benefits will really&lt;br&gt;show when dealing with large files or loops.&lt;p&gt;&lt;br&gt;This tip generously supported by: &lt;a href="mailto:sec@nbnet.nb.ca"&gt;sec@nbnet.nb.ca&lt;/a&gt;&lt;p&gt;&lt;br&gt;--------------------------------------------------------------------------&lt;br&gt;To Subscribe:    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.subscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.subscribe&lt;/a&gt;&lt;br&gt;To Unsubscribe:  &lt;a href="http://www.ugu.com/sui/ugu/show?tip.unsubscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.unsubscribe&lt;/a&gt;&lt;br&gt;To Submit A Tip: &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;==========================================================================&lt;br&gt;DISCLAIMER: All UNIX HOT TIPS ARE OWNED BY THE UNIX GURU UNIVERSE AND ARE&lt;br&gt;NOT TO BE SOLD, PRINTED OR USED WITHOUT THE WRITTEN CONSENT OF THE UNIX &lt;br&gt;GURU UNIVERSE. ALL TIPS ARE &amp;quot;USE AT YOUR OWN RISK&amp;quot;. UGU  ADVISES THAT &lt;br&gt;ALL TIPS BE TESTED IN A NON-PRODUCTION DEVELOPMENT ENVIRONMENT FIRST.&lt;p&gt;Unix Guru Universe - &lt;a href="http://www.ugu.com"&gt;www.ugu.com&lt;/a&gt; - &lt;a href="mailto:tips@ugu.com"&gt;tips@ugu.com&lt;/a&gt; - Copyright 1994-2001&lt;br&gt;==========================================================================&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-9968511444533992";
google_ad_host = "pub-1556223355139109";
/* 728x90, created 3/23/10 */
google_ad_slot = "8218028202";
google_ad_width = 728;
google_ad_height = 90;
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8690484772340382874-2426597501513659927?l=unix-linux-tips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unix-linux-tips.blogspot.com/feeds/2426597501513659927/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://unix-linux-tips.blogspot.com/2012/01/unix-tip-bad-and-good.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/2426597501513659927'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/2426597501513659927'/><link rel='alternate' type='text/html' href='http://unix-linux-tips.blogspot.com/2012/01/unix-tip-bad-and-good.html' title='Unix Tip: THE BAD AND THE GOOD'/><author><name>aboen</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://4.bp.blogspot.com/_PNxtMYqpu08/SaIb5xrIbGI/AAAAAAAAAZQ/qB_0YHjo_Y4/S220/Idiot2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8690484772340382874.post-3093284130921191719</id><published>2012-01-26T01:42:00.001-08:00</published><updated>2012-01-26T01:42:17.004-08:00</updated><title type='text'>Unix Tip: SUSPEND A VI SESSION FOR SHELL</title><content type='html'>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;			      UNIX GURU UNIVERSE &lt;br&gt;			         UNIX HOT TIP&lt;p&gt;			Unix Tip 3274 - January 26, 2012&lt;p&gt;		    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;&lt;br&gt;SUSPEND A VI SESSION FOR SHELL&lt;p&gt;Ever want to run some shell commands while doing a vi edit&lt;br&gt;session? Like, &amp;quot;what&amp;#39;s the name of that file&amp;quot; I want to use in&lt;br&gt;this script I&amp;#39;m making?&lt;p&gt;Instead of exiting vi; doing the ls filenamepart*, and going&lt;br&gt;back into vi, you can from  a vi session:&lt;p&gt;enter &amp;quot;:&amp;quot;, then enter &amp;quot;shell&amp;quot;.&lt;p&gt;This suspends the vi session and gives you a command prompt&lt;br&gt;where you can use any shell command. When finished, enter the&lt;br&gt;&amp;quot;exit&amp;quot; command and you will be returned to the vi session. &lt;p&gt;&lt;br&gt;This tip generously supported by: &lt;a href="mailto:cwhenske@gatx.com"&gt;cwhenske@gatx.com&lt;/a&gt;&lt;p&gt;&lt;br&gt;--------------------------------------------------------------------------&lt;br&gt;To Subscribe:    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.subscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.subscribe&lt;/a&gt;&lt;br&gt;To Unsubscribe:  &lt;a href="http://www.ugu.com/sui/ugu/show?tip.unsubscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.unsubscribe&lt;/a&gt;&lt;br&gt;To Submit A Tip: &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;==========================================================================&lt;br&gt;DISCLAIMER: All UNIX HOT TIPS ARE OWNED BY THE UNIX GURU UNIVERSE AND ARE&lt;br&gt;NOT TO BE SOLD, PRINTED OR USED WITHOUT THE WRITTEN CONSENT OF THE UNIX &lt;br&gt;GURU UNIVERSE. ALL TIPS ARE &amp;quot;USE AT YOUR OWN RISK&amp;quot;. UGU  ADVISES THAT &lt;br&gt;ALL TIPS BE TESTED IN A NON-PRODUCTION DEVELOPMENT ENVIRONMENT FIRST.&lt;p&gt;Unix Guru Universe - &lt;a href="http://www.ugu.com"&gt;www.ugu.com&lt;/a&gt; - &lt;a href="mailto:tips@ugu.com"&gt;tips@ugu.com&lt;/a&gt; - Copyright 1994-2001&lt;br&gt;==========================================================================&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-9968511444533992";
google_ad_host = "pub-1556223355139109";
/* 728x90, created 3/23/10 */
google_ad_slot = "8218028202";
google_ad_width = 728;
google_ad_height = 90;
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8690484772340382874-3093284130921191719?l=unix-linux-tips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unix-linux-tips.blogspot.com/feeds/3093284130921191719/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://unix-linux-tips.blogspot.com/2012/01/unix-tip-suspend-vi-session-for-shell.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/3093284130921191719'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/3093284130921191719'/><link rel='alternate' type='text/html' href='http://unix-linux-tips.blogspot.com/2012/01/unix-tip-suspend-vi-session-for-shell.html' title='Unix Tip: SUSPEND A VI SESSION FOR SHELL'/><author><name>aboen</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://4.bp.blogspot.com/_PNxtMYqpu08/SaIb5xrIbGI/AAAAAAAAAZQ/qB_0YHjo_Y4/S220/Idiot2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8690484772340382874.post-4786618192193405172</id><published>2012-01-25T01:42:00.001-08:00</published><updated>2012-01-25T01:42:18.107-08:00</updated><title type='text'>Unix Tip: BC AND NOT BEFORE AD</title><content type='html'>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;			      UNIX GURU UNIVERSE &lt;br&gt;			         UNIX HOT TIP&lt;p&gt;			Unix Tip 3273 - January 25, 2012&lt;p&gt;		    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;&lt;br&gt;BC AND NOT BEFORE AD&lt;p&gt;Fire up our old friend and often forgotten bc.  &lt;p&gt;% bc&lt;p&gt;Enter your arthimetic expression&lt;p&gt;20+20&lt;p&gt;Will return &lt;p&gt;40&lt;p&gt;but the best part is, use the &lt;br&gt;&amp;quot;obase&amp;quot; and &amp;quot;ibase&amp;quot; commands for all &lt;br&gt;your conversion needs.&lt;p&gt;For example, type: &lt;p&gt;obase=16 &lt;p&gt;then type: &lt;p&gt;255&lt;p&gt;This will output &amp;quot;FF&amp;quot;.   &lt;p&gt;Next, if you type:&lt;p&gt;obase=2 &lt;p&gt;Then a dot (or period), it stands for &lt;br&gt;&amp;quot;the last number&amp;quot;) &lt;p&gt;It will return &amp;quot;11111111&amp;quot;, that&amp;#39;s 255 in binary!&lt;p&gt;If you need hex to dec, &lt;br&gt;just type &amp;quot;ibase=16&amp;quot; and &amp;quot;obase=10&amp;quot;&lt;p&gt;Have fun!&lt;p&gt;&lt;p&gt;--------------------------------------------------------------------------&lt;br&gt;To Subscribe:    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.subscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.subscribe&lt;/a&gt;&lt;br&gt;To Unsubscribe:  &lt;a href="http://www.ugu.com/sui/ugu/show?tip.unsubscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.unsubscribe&lt;/a&gt;&lt;br&gt;To Submit A Tip: &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;==========================================================================&lt;br&gt;DISCLAIMER: All UNIX HOT TIPS ARE OWNED BY THE UNIX GURU UNIVERSE AND ARE&lt;br&gt;NOT TO BE SOLD, PRINTED OR USED WITHOUT THE WRITTEN CONSENT OF THE UNIX &lt;br&gt;GURU UNIVERSE. ALL TIPS ARE &amp;quot;USE AT YOUR OWN RISK&amp;quot;. UGU  ADVISES THAT &lt;br&gt;ALL TIPS BE TESTED IN A NON-PRODUCTION DEVELOPMENT ENVIRONMENT FIRST.&lt;p&gt;Unix Guru Universe - &lt;a href="http://www.ugu.com"&gt;www.ugu.com&lt;/a&gt; - &lt;a href="mailto:tips@ugu.com"&gt;tips@ugu.com&lt;/a&gt; - Copyright 1994-2001&lt;br&gt;==========================================================================&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-9968511444533992";
google_ad_host = "pub-1556223355139109";
/* 728x90, created 3/23/10 */
google_ad_slot = "8218028202";
google_ad_width = 728;
google_ad_height = 90;
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8690484772340382874-4786618192193405172?l=unix-linux-tips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unix-linux-tips.blogspot.com/feeds/4786618192193405172/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://unix-linux-tips.blogspot.com/2012/01/unix-tip-bc-and-not-before-ad.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/4786618192193405172'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/4786618192193405172'/><link rel='alternate' type='text/html' href='http://unix-linux-tips.blogspot.com/2012/01/unix-tip-bc-and-not-before-ad.html' title='Unix Tip: BC AND NOT BEFORE AD'/><author><name>aboen</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://4.bp.blogspot.com/_PNxtMYqpu08/SaIb5xrIbGI/AAAAAAAAAZQ/qB_0YHjo_Y4/S220/Idiot2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8690484772340382874.post-5238336264375566398</id><published>2012-01-24T01:42:00.001-08:00</published><updated>2012-01-24T01:42:19.239-08:00</updated><title type='text'>Unix Tip: LISTING FILES BY SIZE</title><content type='html'>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;			      UNIX GURU UNIVERSE &lt;br&gt;			         UNIX HOT TIP&lt;p&gt;			Unix Tip 3272 - January 24, 2012&lt;p&gt;		    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;&lt;br&gt;LISTING FILES BY SIZE&lt;p&gt;&lt;br&gt;If you want to have a listing of the &lt;br&gt;files sorted by size, you can use the &lt;br&gt;following command(s), it will list &lt;br&gt;the files in decrease order. if you &lt;br&gt;need to do the same thing recursively,&lt;br&gt;you could use the second one.&lt;p&gt;ls -l | grep ^- | sort -nr -k 5 | more&lt;p&gt;ls -lR | grep ^- | sort -nr -k 5 | more&lt;p&gt;&lt;p&gt;&lt;p&gt;--------------------------------------------------------------------------&lt;br&gt;To Subscribe:    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.subscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.subscribe&lt;/a&gt;&lt;br&gt;To Unsubscribe:  &lt;a href="http://www.ugu.com/sui/ugu/show?tip.unsubscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.unsubscribe&lt;/a&gt;&lt;br&gt;To Submit A Tip: &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;==========================================================================&lt;br&gt;DISCLAIMER: All UNIX HOT TIPS ARE OWNED BY THE UNIX GURU UNIVERSE AND ARE&lt;br&gt;NOT TO BE SOLD, PRINTED OR USED WITHOUT THE WRITTEN CONSENT OF THE UNIX &lt;br&gt;GURU UNIVERSE. ALL TIPS ARE &amp;quot;USE AT YOUR OWN RISK&amp;quot;. UGU  ADVISES THAT &lt;br&gt;ALL TIPS BE TESTED IN A NON-PRODUCTION DEVELOPMENT ENVIRONMENT FIRST.&lt;p&gt;Unix Guru Universe - &lt;a href="http://www.ugu.com"&gt;www.ugu.com&lt;/a&gt; - &lt;a href="mailto:tips@ugu.com"&gt;tips@ugu.com&lt;/a&gt; - Copyright 1994-2001&lt;br&gt;==========================================================================&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-9968511444533992";
google_ad_host = "pub-1556223355139109";
/* 728x90, created 3/23/10 */
google_ad_slot = "8218028202";
google_ad_width = 728;
google_ad_height = 90;
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8690484772340382874-5238336264375566398?l=unix-linux-tips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unix-linux-tips.blogspot.com/feeds/5238336264375566398/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://unix-linux-tips.blogspot.com/2012/01/unix-tip-listing-files-by-size.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/5238336264375566398'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/5238336264375566398'/><link rel='alternate' type='text/html' href='http://unix-linux-tips.blogspot.com/2012/01/unix-tip-listing-files-by-size.html' title='Unix Tip: LISTING FILES BY SIZE'/><author><name>aboen</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://4.bp.blogspot.com/_PNxtMYqpu08/SaIb5xrIbGI/AAAAAAAAAZQ/qB_0YHjo_Y4/S220/Idiot2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8690484772340382874.post-5638181528461591551</id><published>2012-01-23T01:42:00.001-08:00</published><updated>2012-01-23T01:42:19.592-08:00</updated><title type='text'>Unix Tip: WHERE AM I ALWAYS</title><content type='html'>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;			      UNIX GURU UNIVERSE &lt;br&gt;			         UNIX HOT TIP&lt;p&gt;			Unix Tip 3271 - January 23, 2012&lt;p&gt;		    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;&lt;br&gt;WHERE AM I ALWAYS&lt;p&gt;In csh, if you always want to know &lt;br&gt;where you are, put in your .cshrc-file &lt;br&gt;the following 2 lines:&lt;p&gt;alias sp &amp;#39;set prompt=&amp;quot;`hostname`:`pwd`&amp;gt; &amp;quot;&amp;#39;  &lt;br&gt;alias cd &amp;#39;cd \!*;sp&amp;#39;&lt;p&gt;&lt;p&gt;--------------------------------------------------------------------------&lt;br&gt;To Subscribe:    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.subscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.subscribe&lt;/a&gt;&lt;br&gt;To Unsubscribe:  &lt;a href="http://www.ugu.com/sui/ugu/show?tip.unsubscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.unsubscribe&lt;/a&gt;&lt;br&gt;To Submit A Tip: &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;==========================================================================&lt;br&gt;DISCLAIMER: All UNIX HOT TIPS ARE OWNED BY THE UNIX GURU UNIVERSE AND ARE&lt;br&gt;NOT TO BE SOLD, PRINTED OR USED WITHOUT THE WRITTEN CONSENT OF THE UNIX &lt;br&gt;GURU UNIVERSE. ALL TIPS ARE &amp;quot;USE AT YOUR OWN RISK&amp;quot;. UGU  ADVISES THAT &lt;br&gt;ALL TIPS BE TESTED IN A NON-PRODUCTION DEVELOPMENT ENVIRONMENT FIRST.&lt;p&gt;Unix Guru Universe - &lt;a href="http://www.ugu.com"&gt;www.ugu.com&lt;/a&gt; - &lt;a href="mailto:tips@ugu.com"&gt;tips@ugu.com&lt;/a&gt; - Copyright 1994-2001&lt;br&gt;==========================================================================&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-9968511444533992";
google_ad_host = "pub-1556223355139109";
/* 728x90, created 3/23/10 */
google_ad_slot = "8218028202";
google_ad_width = 728;
google_ad_height = 90;
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8690484772340382874-5638181528461591551?l=unix-linux-tips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unix-linux-tips.blogspot.com/feeds/5638181528461591551/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://unix-linux-tips.blogspot.com/2012/01/unix-tip-where-am-i-always.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/5638181528461591551'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/5638181528461591551'/><link rel='alternate' type='text/html' href='http://unix-linux-tips.blogspot.com/2012/01/unix-tip-where-am-i-always.html' title='Unix Tip: WHERE AM I ALWAYS'/><author><name>aboen</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://4.bp.blogspot.com/_PNxtMYqpu08/SaIb5xrIbGI/AAAAAAAAAZQ/qB_0YHjo_Y4/S220/Idiot2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8690484772340382874.post-5581098567324762989</id><published>2012-01-22T01:42:00.001-08:00</published><updated>2012-01-22T01:42:20.520-08:00</updated><title type='text'>Unix Tip: WHO SENT ME MAIL</title><content type='html'>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;			      UNIX GURU UNIVERSE &lt;br&gt;			         UNIX HOT TIP&lt;p&gt;			Unix Tip 3270 - January 22, 2012&lt;p&gt;		    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;&lt;br&gt;WHO SENT ME MAIL&lt;p&gt;To know who all have sent you mail.&lt;p&gt;---------------CUT HERE ----------&lt;br&gt;#!/bin/sh&lt;p&gt;: ${USER:=`expr &amp;quot;\`LANG=C id\`&amp;quot; : &amp;#39;uid=[0-9]*(\([^)]*\).*&amp;#39;`}&lt;p&gt;for MBox in /var/mail/$USER /usr/spool/mail/$USER &amp;quot;&amp;quot;&lt;br&gt;do&lt;br&gt;    [ -r &amp;quot;$MBox&amp;quot; ] &amp;amp;&amp;amp; break&lt;br&gt;done&lt;p&gt;[ -z &amp;quot;$MBox&amp;quot; ] &amp;amp;&amp;amp; exec echo &amp;quot;No mailbox&amp;quot;&lt;p&gt;exec grep  &amp;quot;^From &amp;quot; &amp;quot;$@&amp;quot; &amp;quot;$MBox&amp;quot;&lt;p&gt;---------------CUT HERE ----------&lt;p&gt;This tip generously supported by: &lt;a href="mailto:pradeep@cdacb.ernet.in"&gt;pradeep@cdacb.ernet.in&lt;/a&gt;&lt;p&gt;&lt;p&gt;&lt;br&gt;--------------------------------------------------------------------------&lt;br&gt;To Subscribe:    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.subscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.subscribe&lt;/a&gt;&lt;br&gt;To Unsubscribe:  &lt;a href="http://www.ugu.com/sui/ugu/show?tip.unsubscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.unsubscribe&lt;/a&gt;&lt;br&gt;To Submit A Tip: &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;==========================================================================&lt;br&gt;DISCLAIMER: All UNIX HOT TIPS ARE OWNED BY THE UNIX GURU UNIVERSE AND ARE&lt;br&gt;NOT TO BE SOLD, PRINTED OR USED WITHOUT THE WRITTEN CONSENT OF THE UNIX &lt;br&gt;GURU UNIVERSE. ALL TIPS ARE &amp;quot;USE AT YOUR OWN RISK&amp;quot;. UGU  ADVISES THAT &lt;br&gt;ALL TIPS BE TESTED IN A NON-PRODUCTION DEVELOPMENT ENVIRONMENT FIRST.&lt;p&gt;Unix Guru Universe - &lt;a href="http://www.ugu.com"&gt;www.ugu.com&lt;/a&gt; - &lt;a href="mailto:tips@ugu.com"&gt;tips@ugu.com&lt;/a&gt; - Copyright 1994-2001&lt;br&gt;==========================================================================&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-9968511444533992";
google_ad_host = "pub-1556223355139109";
/* 728x90, created 3/23/10 */
google_ad_slot = "8218028202";
google_ad_width = 728;
google_ad_height = 90;
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8690484772340382874-5581098567324762989?l=unix-linux-tips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unix-linux-tips.blogspot.com/feeds/5581098567324762989/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://unix-linux-tips.blogspot.com/2012/01/unix-tip-who-sent-me-mail.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/5581098567324762989'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/5581098567324762989'/><link rel='alternate' type='text/html' href='http://unix-linux-tips.blogspot.com/2012/01/unix-tip-who-sent-me-mail.html' title='Unix Tip: WHO SENT ME MAIL'/><author><name>aboen</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://4.bp.blogspot.com/_PNxtMYqpu08/SaIb5xrIbGI/AAAAAAAAAZQ/qB_0YHjo_Y4/S220/Idiot2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8690484772340382874.post-1525645654994328704</id><published>2012-01-21T01:42:00.001-08:00</published><updated>2012-01-21T01:42:20.243-08:00</updated><title type='text'>Unix Tip: STRINGS - OLD BUT A GOODIE</title><content type='html'>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;			      UNIX GURU UNIVERSE &lt;br&gt;			         UNIX HOT TIP&lt;p&gt;			Unix Tip 3269 - January 21, 2012&lt;p&gt;		    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;&lt;br&gt;STRINGS - OLD BUT A GOODIE&lt;p&gt;To check content of an object &lt;br&gt;file(binary file ) we can&amp;#39;t use vi&lt;br&gt;or cat command, for that use strings &lt;br&gt;command. &lt;p&gt;%  strings [name of binary file]&lt;p&gt;It will print all the printable strings &lt;br&gt;present in object file.  Basically &lt;br&gt;strings command looks for ASCII strings &lt;br&gt;in executable file and print it.&lt;p&gt;Great for core files and other binary&lt;br&gt;error files&lt;p&gt;This tip generously supported by: &lt;a href="mailto:aggarami@pcsbom.patni.com"&gt;aggarami@pcsbom.patni.com&lt;/a&gt;&lt;p&gt;&lt;p&gt;--------------------------------------------------------------------------&lt;br&gt;To Subscribe:    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.subscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.subscribe&lt;/a&gt;&lt;br&gt;To Unsubscribe:  &lt;a href="http://www.ugu.com/sui/ugu/show?tip.unsubscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.unsubscribe&lt;/a&gt;&lt;br&gt;To Submit A Tip: &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;==========================================================================&lt;br&gt;DISCLAIMER: All UNIX HOT TIPS ARE OWNED BY THE UNIX GURU UNIVERSE AND ARE&lt;br&gt;NOT TO BE SOLD, PRINTED OR USED WITHOUT THE WRITTEN CONSENT OF THE UNIX &lt;br&gt;GURU UNIVERSE. ALL TIPS ARE &amp;quot;USE AT YOUR OWN RISK&amp;quot;. UGU  ADVISES THAT &lt;br&gt;ALL TIPS BE TESTED IN A NON-PRODUCTION DEVELOPMENT ENVIRONMENT FIRST.&lt;p&gt;Unix Guru Universe - &lt;a href="http://www.ugu.com"&gt;www.ugu.com&lt;/a&gt; - &lt;a href="mailto:tips@ugu.com"&gt;tips@ugu.com&lt;/a&gt; - Copyright 1994-2001&lt;br&gt;==========================================================================&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-9968511444533992";
google_ad_host = "pub-1556223355139109";
/* 728x90, created 3/23/10 */
google_ad_slot = "8218028202";
google_ad_width = 728;
google_ad_height = 90;
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8690484772340382874-1525645654994328704?l=unix-linux-tips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unix-linux-tips.blogspot.com/feeds/1525645654994328704/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://unix-linux-tips.blogspot.com/2012/01/unix-tip-strings-old-but-goodie.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/1525645654994328704'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/1525645654994328704'/><link rel='alternate' type='text/html' href='http://unix-linux-tips.blogspot.com/2012/01/unix-tip-strings-old-but-goodie.html' title='Unix Tip: STRINGS - OLD BUT A GOODIE'/><author><name>aboen</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://4.bp.blogspot.com/_PNxtMYqpu08/SaIb5xrIbGI/AAAAAAAAAZQ/qB_0YHjo_Y4/S220/Idiot2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8690484772340382874.post-6373872045850494581</id><published>2012-01-20T01:42:00.001-08:00</published><updated>2012-01-20T01:42:20.251-08:00</updated><title type='text'>Unix Tip: RUN DAILY WITH AT</title><content type='html'>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;			      UNIX GURU UNIVERSE &lt;br&gt;			         UNIX HOT TIP&lt;p&gt;			Unix Tip 3268 - January 20, 2012&lt;p&gt;		    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;&lt;br&gt;RUN DAILY WITH AT&lt;p&gt;&lt;br&gt;UNIX provides a command called &amp;quot;at&amp;quot; &lt;br&gt;which can be used to run jobs according &lt;br&gt;to the specfied time. &lt;p&gt;To run a particular job in every hour, &lt;br&gt;every day use the following set of &lt;br&gt;commands in a file called &amp;quot;at.sh&amp;quot; which &lt;br&gt;will be executed recursively everyday.&lt;p&gt;########### CUT HERE ##################&lt;p&gt;#! /usr/bin/sh&lt;p&gt;# dt is a variable used to store &lt;br&gt;# current date&lt;p&gt;dt=`date | cut -c5-10`&lt;p&gt;# tm is a variable used to store &lt;br&gt;# current time&lt;p&gt;tm=`date | cut -c12-13`&lt;p&gt;while [ $tm -le 23 ]&lt;br&gt;do&lt;p&gt;# &amp;quot;at&amp;quot; is the command ad -f is the &lt;br&gt;# option used to execute a specified &lt;br&gt;# file. &amp;quot;file Name&amp;quot; should be an &lt;br&gt;# executable file.&lt;p&gt; at -f  ./&amp;quot;file Name&amp;quot; $tm $dt&lt;br&gt; tm=`expr $tm + 1`&lt;br&gt;done&lt;br&gt; &lt;br&gt;# With out manual intervention, automatic &lt;br&gt;# change over to the next day&amp;#39;s job &lt;br&gt;# scheduling&lt;p&gt;at -f ./&amp;quot;File Name&amp;quot; 2358 $dt&lt;br&gt;dt=`expr $dt + 1`&lt;br&gt;at -f ./at.sh 0002 $dt&lt;p&gt;########### CUT HERE ##################&lt;p&gt;&lt;br&gt;--------------------------------------------------------------------------&lt;br&gt;To Subscribe:    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.subscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.subscribe&lt;/a&gt;&lt;br&gt;To Unsubscribe:  &lt;a href="http://www.ugu.com/sui/ugu/show?tip.unsubscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.unsubscribe&lt;/a&gt;&lt;br&gt;To Submit A Tip: &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;==========================================================================&lt;br&gt;DISCLAIMER: All UNIX HOT TIPS ARE OWNED BY THE UNIX GURU UNIVERSE AND ARE&lt;br&gt;NOT TO BE SOLD, PRINTED OR USED WITHOUT THE WRITTEN CONSENT OF THE UNIX &lt;br&gt;GURU UNIVERSE. ALL TIPS ARE &amp;quot;USE AT YOUR OWN RISK&amp;quot;. UGU  ADVISES THAT &lt;br&gt;ALL TIPS BE TESTED IN A NON-PRODUCTION DEVELOPMENT ENVIRONMENT FIRST.&lt;p&gt;Unix Guru Universe - &lt;a href="http://www.ugu.com"&gt;www.ugu.com&lt;/a&gt; - &lt;a href="mailto:tips@ugu.com"&gt;tips@ugu.com&lt;/a&gt; - Copyright 1994-2001&lt;br&gt;==========================================================================&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-9968511444533992";
google_ad_host = "pub-1556223355139109";
/* 728x90, created 3/23/10 */
google_ad_slot = "8218028202";
google_ad_width = 728;
google_ad_height = 90;
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8690484772340382874-6373872045850494581?l=unix-linux-tips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unix-linux-tips.blogspot.com/feeds/6373872045850494581/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://unix-linux-tips.blogspot.com/2012/01/unix-tip-run-daily-with-at.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/6373872045850494581'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/6373872045850494581'/><link rel='alternate' type='text/html' href='http://unix-linux-tips.blogspot.com/2012/01/unix-tip-run-daily-with-at.html' title='Unix Tip: RUN DAILY WITH AT'/><author><name>aboen</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://4.bp.blogspot.com/_PNxtMYqpu08/SaIb5xrIbGI/AAAAAAAAAZQ/qB_0YHjo_Y4/S220/Idiot2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8690484772340382874.post-5336231227510973884</id><published>2012-01-19T01:42:00.001-08:00</published><updated>2012-01-19T01:42:24.870-08:00</updated><title type='text'>Unix Tip: FIND THOSE HIDDEN FILES</title><content type='html'>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;			      UNIX GURU UNIVERSE &lt;br&gt;			         UNIX HOT TIP&lt;p&gt;			Unix Tip 3267 - January 19, 2012&lt;p&gt;		    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;&lt;br&gt;FIND THOSE HIDDEN FILES&lt;p&gt;Finding only hidden files &lt;br&gt;(starting with .) in a directory.&lt;p&gt;ls -a | grep &amp;quot;^\.&amp;quot; OR&lt;br&gt;ls -a | awk &amp;#39;$0~/^\./ {print $0}&amp;#39;&lt;p&gt;&lt;p&gt;--------------------------------------------------------------------------&lt;br&gt;To Subscribe:    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.subscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.subscribe&lt;/a&gt;&lt;br&gt;To Unsubscribe:  &lt;a href="http://www.ugu.com/sui/ugu/show?tip.unsubscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.unsubscribe&lt;/a&gt;&lt;br&gt;To Submit A Tip: &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;==========================================================================&lt;br&gt;DISCLAIMER: All UNIX HOT TIPS ARE OWNED BY THE UNIX GURU UNIVERSE AND ARE&lt;br&gt;NOT TO BE SOLD, PRINTED OR USED WITHOUT THE WRITTEN CONSENT OF THE UNIX &lt;br&gt;GURU UNIVERSE. ALL TIPS ARE &amp;quot;USE AT YOUR OWN RISK&amp;quot;. UGU  ADVISES THAT &lt;br&gt;ALL TIPS BE TESTED IN A NON-PRODUCTION DEVELOPMENT ENVIRONMENT FIRST.&lt;p&gt;Unix Guru Universe - &lt;a href="http://www.ugu.com"&gt;www.ugu.com&lt;/a&gt; - &lt;a href="mailto:tips@ugu.com"&gt;tips@ugu.com&lt;/a&gt; - Copyright 1994-2001&lt;br&gt;==========================================================================&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-9968511444533992";
google_ad_host = "pub-1556223355139109";
/* 728x90, created 3/23/10 */
google_ad_slot = "8218028202";
google_ad_width = 728;
google_ad_height = 90;
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8690484772340382874-5336231227510973884?l=unix-linux-tips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unix-linux-tips.blogspot.com/feeds/5336231227510973884/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://unix-linux-tips.blogspot.com/2012/01/unix-tip-find-those-hidden-files.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/5336231227510973884'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/5336231227510973884'/><link rel='alternate' type='text/html' href='http://unix-linux-tips.blogspot.com/2012/01/unix-tip-find-those-hidden-files.html' title='Unix Tip: FIND THOSE HIDDEN FILES'/><author><name>aboen</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://4.bp.blogspot.com/_PNxtMYqpu08/SaIb5xrIbGI/AAAAAAAAAZQ/qB_0YHjo_Y4/S220/Idiot2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8690484772340382874.post-3441029578768917161</id><published>2012-01-18T01:42:00.001-08:00</published><updated>2012-01-18T01:42:23.071-08:00</updated><title type='text'>Unix Tip: RUN ON LAST SUNDAY</title><content type='html'>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;			      UNIX GURU UNIVERSE &lt;br&gt;			         UNIX HOT TIP&lt;p&gt;			Unix Tip 3266 - January 18, 2012&lt;p&gt;		    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;&lt;br&gt;RUN ON LAST SUNDAY&lt;p&gt;If you want a job to run on the last &lt;br&gt;sunday of every month, you can use &lt;br&gt;the following syntax from within cron:&lt;p&gt;18 * * * 0 [`date &amp;quot;+%d&amp;quot;` -gt 24] &amp;amp;&amp;amp; /path/to/script&lt;p&gt;i.e. on sundays at 18:00 check if &lt;br&gt;the day of the month is greater than &lt;br&gt;24 - if so run the job (if 23 is &lt;br&gt;specified the job will run on the last &lt;br&gt;2 sundays of the month)&lt;p&gt;NOTE: There back-ticks around the date &lt;br&gt;command, not single quotes.&lt;p&gt;This tip generously supported by: &lt;a href="mailto:duncan.ferguson@egg.com"&gt;duncan.ferguson@egg.com&lt;/a&gt;&lt;p&gt;&lt;p&gt;--------------------------------------------------------------------------&lt;br&gt;To Subscribe:    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.subscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.subscribe&lt;/a&gt;&lt;br&gt;To Unsubscribe:  &lt;a href="http://www.ugu.com/sui/ugu/show?tip.unsubscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.unsubscribe&lt;/a&gt;&lt;br&gt;To Submit A Tip: &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;==========================================================================&lt;br&gt;DISCLAIMER: All UNIX HOT TIPS ARE OWNED BY THE UNIX GURU UNIVERSE AND ARE&lt;br&gt;NOT TO BE SOLD, PRINTED OR USED WITHOUT THE WRITTEN CONSENT OF THE UNIX &lt;br&gt;GURU UNIVERSE. ALL TIPS ARE &amp;quot;USE AT YOUR OWN RISK&amp;quot;. UGU  ADVISES THAT &lt;br&gt;ALL TIPS BE TESTED IN A NON-PRODUCTION DEVELOPMENT ENVIRONMENT FIRST.&lt;p&gt;Unix Guru Universe - &lt;a href="http://www.ugu.com"&gt;www.ugu.com&lt;/a&gt; - &lt;a href="mailto:tips@ugu.com"&gt;tips@ugu.com&lt;/a&gt; - Copyright 1994-2001&lt;br&gt;==========================================================================&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-9968511444533992";
google_ad_host = "pub-1556223355139109";
/* 728x90, created 3/23/10 */
google_ad_slot = "8218028202";
google_ad_width = 728;
google_ad_height = 90;
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8690484772340382874-3441029578768917161?l=unix-linux-tips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unix-linux-tips.blogspot.com/feeds/3441029578768917161/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://unix-linux-tips.blogspot.com/2012/01/unix-tip-run-on-last-sunday.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/3441029578768917161'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/3441029578768917161'/><link rel='alternate' type='text/html' href='http://unix-linux-tips.blogspot.com/2012/01/unix-tip-run-on-last-sunday.html' title='Unix Tip: RUN ON LAST SUNDAY'/><author><name>aboen</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://4.bp.blogspot.com/_PNxtMYqpu08/SaIb5xrIbGI/AAAAAAAAAZQ/qB_0YHjo_Y4/S220/Idiot2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8690484772340382874.post-2483031163666083461</id><published>2012-01-17T01:42:00.001-08:00</published><updated>2012-01-17T01:42:25.116-08:00</updated><title type='text'>Unix Tip: SIMPLE MASK OVERLOOKED</title><content type='html'>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;			      UNIX GURU UNIVERSE &lt;br&gt;			         UNIX HOT TIP&lt;p&gt;			Unix Tip 3265 - January 17, 2012&lt;p&gt;		    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;&lt;br&gt;SIMPLE MASK OVERLOOKED&lt;p&gt;Another way to CD to the long directory.&lt;p&gt;Works in both csh and ksh&lt;p&gt;cd too*&lt;p&gt;Will change to the directory &amp;quot;toobigtotype&amp;quot;&lt;br&gt;As long as there is only one ocurrance&lt;br&gt;of the word too....&lt;p&gt;This is great when there is only&lt;br&gt;one sub directory within a directory,&lt;br&gt;just use:&lt;p&gt;cd *&lt;p&gt;---------------------------&lt;p&gt;&lt;br&gt;--------------------------------------------------------------------------&lt;br&gt;To Subscribe:    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.subscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.subscribe&lt;/a&gt;&lt;br&gt;To Unsubscribe:  &lt;a href="http://www.ugu.com/sui/ugu/show?tip.unsubscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.unsubscribe&lt;/a&gt;&lt;br&gt;To Submit A Tip: &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;==========================================================================&lt;br&gt;DISCLAIMER: All UNIX HOT TIPS ARE OWNED BY THE UNIX GURU UNIVERSE AND ARE&lt;br&gt;NOT TO BE SOLD, PRINTED OR USED WITHOUT THE WRITTEN CONSENT OF THE UNIX &lt;br&gt;GURU UNIVERSE. ALL TIPS ARE &amp;quot;USE AT YOUR OWN RISK&amp;quot;. UGU  ADVISES THAT &lt;br&gt;ALL TIPS BE TESTED IN A NON-PRODUCTION DEVELOPMENT ENVIRONMENT FIRST.&lt;p&gt;Unix Guru Universe - &lt;a href="http://www.ugu.com"&gt;www.ugu.com&lt;/a&gt; - &lt;a href="mailto:tips@ugu.com"&gt;tips@ugu.com&lt;/a&gt; - Copyright 1994-2001&lt;br&gt;==========================================================================&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-9968511444533992";
google_ad_host = "pub-1556223355139109";
/* 728x90, created 3/23/10 */
google_ad_slot = "8218028202";
google_ad_width = 728;
google_ad_height = 90;
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8690484772340382874-2483031163666083461?l=unix-linux-tips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unix-linux-tips.blogspot.com/feeds/2483031163666083461/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://unix-linux-tips.blogspot.com/2012/01/unix-tip-simple-mask-overlooked.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/2483031163666083461'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/2483031163666083461'/><link rel='alternate' type='text/html' href='http://unix-linux-tips.blogspot.com/2012/01/unix-tip-simple-mask-overlooked.html' title='Unix Tip: SIMPLE MASK OVERLOOKED'/><author><name>aboen</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://4.bp.blogspot.com/_PNxtMYqpu08/SaIb5xrIbGI/AAAAAAAAAZQ/qB_0YHjo_Y4/S220/Idiot2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8690484772340382874.post-2192764922454881231</id><published>2012-01-16T01:42:00.001-08:00</published><updated>2012-01-16T01:42:25.106-08:00</updated><title type='text'>Unix Tip: AUTO WORD COMPLETION</title><content type='html'>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;			      UNIX GURU UNIVERSE &lt;br&gt;			         UNIX HOT TIP&lt;p&gt;			Unix Tip 3264 - January 16, 2012&lt;p&gt;		    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;&lt;br&gt;AUTO WORD COMPLETION&lt;p&gt;In tcsh, the TAB key will automatically &lt;br&gt;complete any name in the current &lt;br&gt;directory for any application (for pico, &lt;br&gt;cd, rm, chown)... It will even complete &lt;br&gt;paths from root.&lt;p&gt;Soo... If you want to open your .cshrc &lt;br&gt;from root you do..&lt;p&gt;&amp;quot;pico /ho&amp;quot;[TAB] -&amp;gt; &amp;quot;pico /home/&amp;quot;&lt;br&gt;Then continue with &amp;quot;yuo&amp;quot;[tab] -&amp;gt; &amp;quot;yourusername&amp;quot;&lt;br&gt;Then you get &amp;quot;pico /home/yourusername/&amp;quot;&lt;br&gt;And then type &amp;quot;.cs&amp;quot;[TAB] -&amp;gt; &amp;quot;.cshrc&amp;quot; &lt;br&gt;So in the end you get &amp;quot;pico /home/yourusername/.cshrc&amp;quot;&lt;br&gt;In a lot less stokes...&lt;p&gt;But say there are 2 users called &lt;br&gt;yourusername and yourothername.&lt;p&gt;Well, then the shell will beep, and if &lt;br&gt;you hit TAB again, you will get a listing &lt;br&gt;off all the files that start with &amp;quot;you&amp;quot;. &lt;br&gt;You can then continue to the point where &lt;br&gt;the names differ, and then hit TAB.&lt;p&gt;This also works for commands.&lt;p&gt;&lt;p&gt;--------------------------------------------------------------------------&lt;br&gt;To Subscribe:    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.subscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.subscribe&lt;/a&gt;&lt;br&gt;To Unsubscribe:  &lt;a href="http://www.ugu.com/sui/ugu/show?tip.unsubscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.unsubscribe&lt;/a&gt;&lt;br&gt;To Submit A Tip: &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;==========================================================================&lt;br&gt;DISCLAIMER: All UNIX HOT TIPS ARE OWNED BY THE UNIX GURU UNIVERSE AND ARE&lt;br&gt;NOT TO BE SOLD, PRINTED OR USED WITHOUT THE WRITTEN CONSENT OF THE UNIX &lt;br&gt;GURU UNIVERSE. ALL TIPS ARE &amp;quot;USE AT YOUR OWN RISK&amp;quot;. UGU  ADVISES THAT &lt;br&gt;ALL TIPS BE TESTED IN A NON-PRODUCTION DEVELOPMENT ENVIRONMENT FIRST.&lt;p&gt;Unix Guru Universe - &lt;a href="http://www.ugu.com"&gt;www.ugu.com&lt;/a&gt; - &lt;a href="mailto:tips@ugu.com"&gt;tips@ugu.com&lt;/a&gt; - Copyright 1994-2001&lt;br&gt;==========================================================================&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-9968511444533992";
google_ad_host = "pub-1556223355139109";
/* 728x90, created 3/23/10 */
google_ad_slot = "8218028202";
google_ad_width = 728;
google_ad_height = 90;
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8690484772340382874-2192764922454881231?l=unix-linux-tips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unix-linux-tips.blogspot.com/feeds/2192764922454881231/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://unix-linux-tips.blogspot.com/2012/01/unix-tip-auto-word-completion.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/2192764922454881231'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/2192764922454881231'/><link rel='alternate' type='text/html' href='http://unix-linux-tips.blogspot.com/2012/01/unix-tip-auto-word-completion.html' title='Unix Tip: AUTO WORD COMPLETION'/><author><name>aboen</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://4.bp.blogspot.com/_PNxtMYqpu08/SaIb5xrIbGI/AAAAAAAAAZQ/qB_0YHjo_Y4/S220/Idiot2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8690484772340382874.post-7894960319504600697</id><published>2012-01-15T01:42:00.001-08:00</published><updated>2012-01-15T01:42:22.780-08:00</updated><title type='text'>Unix Tip: CHANGE THE SUFFIX</title><content type='html'>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;			      UNIX GURU UNIVERSE &lt;br&gt;			         UNIX HOT TIP&lt;p&gt;			Unix Tip 3263 - January 15, 2012&lt;p&gt;		    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;&lt;br&gt;CHANGE THE SUFFIX&lt;p&gt;If you want to change the suffix of &lt;br&gt;multiple files, you can&amp;#39;t do:&lt;p&gt;        % mv *.abc *.def&lt;p&gt;However the following shell script &lt;br&gt;can be used to do the required &lt;br&gt;opperation:&lt;p&gt;*** &lt;p&gt;Change all *.abc file to *.def the &lt;br&gt;following shell script would work:&lt;p&gt;#!/bin/sh&lt;br&gt;for f in *.abc; do&lt;br&gt;  mv $f `basename $f .abc`.def&lt;br&gt;done&lt;p&gt;How it works:&lt;p&gt;  for f in *.abc; do&lt;p&gt;Set up a look for all files ending &lt;br&gt;in .abc, and each time around setup &lt;br&gt;$f as the filename&lt;p&gt;  mv $f `basename $f.abc`.def&lt;p&gt;`basename $f .abc` takes the filename &lt;br&gt;in $f and removes any trailing occurences &lt;br&gt;of .abc, we then append .def to the result&lt;br&gt;and the resulting command becomes &lt;br&gt;&amp;quot;mv file.abc file.def&amp;quot;&lt;p&gt;   done&lt;p&gt;Ends the &amp;quot;for&amp;quot; loop above.&lt;p&gt;Under &amp;quot;csh&amp;quot; or &amp;quot;tcsh&amp;quot; a similar thing could be done with:&lt;p&gt;  foreach f in ( *.abc )&lt;br&gt;    mv $f `basename $f .abc`.def&lt;br&gt;  end&lt;p&gt;&lt;p&gt;This tip generously supported by: &lt;a href="mailto:pwain@liberate.com"&gt;pwain@liberate.com&lt;/a&gt;&lt;p&gt;&lt;p&gt;--------------------------------------------------------------------------&lt;br&gt;To Subscribe:    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.subscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.subscribe&lt;/a&gt;&lt;br&gt;To Unsubscribe:  &lt;a href="http://www.ugu.com/sui/ugu/show?tip.unsubscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.unsubscribe&lt;/a&gt;&lt;br&gt;To Submit A Tip: &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;==========================================================================&lt;br&gt;DISCLAIMER: All UNIX HOT TIPS ARE OWNED BY THE UNIX GURU UNIVERSE AND ARE&lt;br&gt;NOT TO BE SOLD, PRINTED OR USED WITHOUT THE WRITTEN CONSENT OF THE UNIX &lt;br&gt;GURU UNIVERSE. ALL TIPS ARE &amp;quot;USE AT YOUR OWN RISK&amp;quot;. UGU  ADVISES THAT &lt;br&gt;ALL TIPS BE TESTED IN A NON-PRODUCTION DEVELOPMENT ENVIRONMENT FIRST.&lt;p&gt;Unix Guru Universe - &lt;a href="http://www.ugu.com"&gt;www.ugu.com&lt;/a&gt; - &lt;a href="mailto:tips@ugu.com"&gt;tips@ugu.com&lt;/a&gt; - Copyright 1994-2001&lt;br&gt;==========================================================================&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-9968511444533992";
google_ad_host = "pub-1556223355139109";
/* 728x90, created 3/23/10 */
google_ad_slot = "8218028202";
google_ad_width = 728;
google_ad_height = 90;
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8690484772340382874-7894960319504600697?l=unix-linux-tips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unix-linux-tips.blogspot.com/feeds/7894960319504600697/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://unix-linux-tips.blogspot.com/2012/01/unix-tip-change-suffix.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/7894960319504600697'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/7894960319504600697'/><link rel='alternate' type='text/html' href='http://unix-linux-tips.blogspot.com/2012/01/unix-tip-change-suffix.html' title='Unix Tip: CHANGE THE SUFFIX'/><author><name>aboen</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://4.bp.blogspot.com/_PNxtMYqpu08/SaIb5xrIbGI/AAAAAAAAAZQ/qB_0YHjo_Y4/S220/Idiot2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8690484772340382874.post-4229800068599425610</id><published>2012-01-14T01:42:00.001-08:00</published><updated>2012-01-14T01:42:23.081-08:00</updated><title type='text'>Unix Tip: DELETING BLANK LINES USING GREP</title><content type='html'>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;			      UNIX GURU UNIVERSE &lt;br&gt;			         UNIX HOT TIP&lt;p&gt;			Unix Tip 3262 - January 14, 2012&lt;p&gt;		    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;&lt;br&gt;DELETING BLANK LINES USING GREP&lt;p&gt;For thos who are not familiar with &lt;br&gt;awk, but still want a quick and easy &lt;br&gt;way of removing blank lines from a &lt;br&gt;flat ascii file, remember that the &lt;br&gt;use of &amp;#39;cat&amp;#39; in conjuction with &lt;br&gt;&amp;#39;grep&amp;#39; is just as effective.&lt;p&gt;cat file1 | grep -v &amp;#39;^$&amp;#39; &amp;gt;file2&lt;br&gt;mv -f file2 file1&lt;p&gt;This tip generously supported by: &lt;a href="mailto:dave_tomkins@tands.co.uk"&gt;dave_tomkins@tands.co.uk&lt;/a&gt;&lt;p&gt;&lt;p&gt;--------------------------------------------------------------------------&lt;br&gt;To Subscribe:    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.subscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.subscribe&lt;/a&gt;&lt;br&gt;To Unsubscribe:  &lt;a href="http://www.ugu.com/sui/ugu/show?tip.unsubscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.unsubscribe&lt;/a&gt;&lt;br&gt;To Submit A Tip: &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;==========================================================================&lt;br&gt;DISCLAIMER: All UNIX HOT TIPS ARE OWNED BY THE UNIX GURU UNIVERSE AND ARE&lt;br&gt;NOT TO BE SOLD, PRINTED OR USED WITHOUT THE WRITTEN CONSENT OF THE UNIX &lt;br&gt;GURU UNIVERSE. ALL TIPS ARE &amp;quot;USE AT YOUR OWN RISK&amp;quot;. UGU  ADVISES THAT &lt;br&gt;ALL TIPS BE TESTED IN A NON-PRODUCTION DEVELOPMENT ENVIRONMENT FIRST.&lt;p&gt;Unix Guru Universe - &lt;a href="http://www.ugu.com"&gt;www.ugu.com&lt;/a&gt; - &lt;a href="mailto:tips@ugu.com"&gt;tips@ugu.com&lt;/a&gt; - Copyright 1994-2001&lt;br&gt;==========================================================================&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-9968511444533992";
google_ad_host = "pub-1556223355139109";
/* 728x90, created 3/23/10 */
google_ad_slot = "8218028202";
google_ad_width = 728;
google_ad_height = 90;
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8690484772340382874-4229800068599425610?l=unix-linux-tips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unix-linux-tips.blogspot.com/feeds/4229800068599425610/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://unix-linux-tips.blogspot.com/2012/01/unix-tip-deleting-blank-lines-using.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/4229800068599425610'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/4229800068599425610'/><link rel='alternate' type='text/html' href='http://unix-linux-tips.blogspot.com/2012/01/unix-tip-deleting-blank-lines-using.html' title='Unix Tip: DELETING BLANK LINES USING GREP'/><author><name>aboen</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://4.bp.blogspot.com/_PNxtMYqpu08/SaIb5xrIbGI/AAAAAAAAAZQ/qB_0YHjo_Y4/S220/Idiot2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8690484772340382874.post-2452785785739202365</id><published>2012-01-13T01:42:00.001-08:00</published><updated>2012-01-13T01:42:24.149-08:00</updated><title type='text'>Unix Tip: LIMIT THE SIZE OF DATA AREA</title><content type='html'>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;			      UNIX GURU UNIVERSE &lt;br&gt;			         UNIX HOT TIP&lt;p&gt;			Unix Tip 3261 - January 13, 2012&lt;p&gt;		    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;&lt;br&gt;LIMIT THE SIZE OF DATA AREA&lt;p&gt;You can limit the size of &amp;quot;data area&amp;quot; &lt;br&gt;using ulimit and limit.  &lt;p&gt;&lt;br&gt;Under sh or ksh:&lt;br&gt;$ ulimit -d SIZE_IN_KB           &lt;p&gt;Displays all current resource limits &lt;br&gt;$ ulimit -a                      &lt;p&gt;&lt;br&gt;under csh or tcsh:&lt;br&gt;$ limit datasize SIZE_IN_KB      &lt;p&gt;Displays all current resource limits &lt;br&gt;$ limit                          &lt;p&gt;&lt;br&gt;For example:&lt;br&gt;$ ulimit -d 141073&lt;br&gt;$ ulimit -a&lt;p&gt;&lt;p&gt;--------------------------------------------------------------------------&lt;br&gt;To Subscribe:    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.subscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.subscribe&lt;/a&gt;&lt;br&gt;To Unsubscribe:  &lt;a href="http://www.ugu.com/sui/ugu/show?tip.unsubscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.unsubscribe&lt;/a&gt;&lt;br&gt;To Submit A Tip: &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;==========================================================================&lt;br&gt;DISCLAIMER: All UNIX HOT TIPS ARE OWNED BY THE UNIX GURU UNIVERSE AND ARE&lt;br&gt;NOT TO BE SOLD, PRINTED OR USED WITHOUT THE WRITTEN CONSENT OF THE UNIX &lt;br&gt;GURU UNIVERSE. ALL TIPS ARE &amp;quot;USE AT YOUR OWN RISK&amp;quot;. UGU  ADVISES THAT &lt;br&gt;ALL TIPS BE TESTED IN A NON-PRODUCTION DEVELOPMENT ENVIRONMENT FIRST.&lt;p&gt;Unix Guru Universe - &lt;a href="http://www.ugu.com"&gt;www.ugu.com&lt;/a&gt; - &lt;a href="mailto:tips@ugu.com"&gt;tips@ugu.com&lt;/a&gt; - Copyright 1994-2001&lt;br&gt;==========================================================================&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-9968511444533992";
google_ad_host = "pub-1556223355139109";
/* 728x90, created 3/23/10 */
google_ad_slot = "8218028202";
google_ad_width = 728;
google_ad_height = 90;
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8690484772340382874-2452785785739202365?l=unix-linux-tips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unix-linux-tips.blogspot.com/feeds/2452785785739202365/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://unix-linux-tips.blogspot.com/2012/01/unix-tip-limit-size-of-data-area.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/2452785785739202365'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/2452785785739202365'/><link rel='alternate' type='text/html' href='http://unix-linux-tips.blogspot.com/2012/01/unix-tip-limit-size-of-data-area.html' title='Unix Tip: LIMIT THE SIZE OF DATA AREA'/><author><name>aboen</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://4.bp.blogspot.com/_PNxtMYqpu08/SaIb5xrIbGI/AAAAAAAAAZQ/qB_0YHjo_Y4/S220/Idiot2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8690484772340382874.post-3980492836908623194</id><published>2012-01-12T01:42:00.001-08:00</published><updated>2012-01-12T01:42:23.556-08:00</updated><title type='text'>Unix Tip: PROBE-SCSI-ALL and IOSTAT</title><content type='html'>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;			      UNIX GURU UNIVERSE &lt;br&gt;			         UNIX HOT TIP&lt;p&gt;			Unix Tip 3260 - January 12, 2012&lt;p&gt;		    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;&lt;br&gt;PROBE-SCSI-ALL and IOSTAT&lt;p&gt;If you want to do probe-scsi-all &lt;br&gt;when the system is online, you&lt;br&gt;can do it by running the following &lt;br&gt;command:&lt;p&gt;# iostat -En &lt;p&gt;This is applicable for Solaris 2.6 on SPARC platform.&lt;p&gt;This tip generously supported by: &lt;a href="mailto:bkumar@wipro.co.in"&gt;bkumar@wipro.co.in&lt;/a&gt;&lt;p&gt;&lt;br&gt;--------------------------------------------------------------------------&lt;br&gt;To Subscribe:    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.subscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.subscribe&lt;/a&gt;&lt;br&gt;To Unsubscribe:  &lt;a href="http://www.ugu.com/sui/ugu/show?tip.unsubscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.unsubscribe&lt;/a&gt;&lt;br&gt;To Submit A Tip: &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;==========================================================================&lt;br&gt;DISCLAIMER: All UNIX HOT TIPS ARE OWNED BY THE UNIX GURU UNIVERSE AND ARE&lt;br&gt;NOT TO BE SOLD, PRINTED OR USED WITHOUT THE WRITTEN CONSENT OF THE UNIX &lt;br&gt;GURU UNIVERSE. ALL TIPS ARE &amp;quot;USE AT YOUR OWN RISK&amp;quot;. UGU  ADVISES THAT &lt;br&gt;ALL TIPS BE TESTED IN A NON-PRODUCTION DEVELOPMENT ENVIRONMENT FIRST.&lt;p&gt;Unix Guru Universe - &lt;a href="http://www.ugu.com"&gt;www.ugu.com&lt;/a&gt; - &lt;a href="mailto:tips@ugu.com"&gt;tips@ugu.com&lt;/a&gt; - Copyright 1994-2001&lt;br&gt;==========================================================================&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-9968511444533992";
google_ad_host = "pub-1556223355139109";
/* 728x90, created 3/23/10 */
google_ad_slot = "8218028202";
google_ad_width = 728;
google_ad_height = 90;
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8690484772340382874-3980492836908623194?l=unix-linux-tips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unix-linux-tips.blogspot.com/feeds/3980492836908623194/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://unix-linux-tips.blogspot.com/2012/01/unix-tip-probe-scsi-all-and-iostat.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/3980492836908623194'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/3980492836908623194'/><link rel='alternate' type='text/html' href='http://unix-linux-tips.blogspot.com/2012/01/unix-tip-probe-scsi-all-and-iostat.html' title='Unix Tip: PROBE-SCSI-ALL and IOSTAT'/><author><name>aboen</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://4.bp.blogspot.com/_PNxtMYqpu08/SaIb5xrIbGI/AAAAAAAAAZQ/qB_0YHjo_Y4/S220/Idiot2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8690484772340382874.post-301962849106774027</id><published>2012-01-11T01:42:00.001-08:00</published><updated>2012-01-11T01:42:26.304-08:00</updated><title type='text'>Unix Tip: VI COPY FILE TO FILE</title><content type='html'>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;			      UNIX GURU UNIVERSE &lt;br&gt;			         UNIX HOT TIP&lt;p&gt;			Unix Tip 3259 - January 11, 2012&lt;p&gt;		    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;&lt;br&gt;VI COPY FILE TO FILE&lt;p&gt;Here is how to copy the required number &lt;br&gt;of lines from one file to another in &lt;br&gt;VI editor.  First use the following &lt;br&gt;key combinations in the source file.&lt;p&gt;Press ESCAPE&lt;br&gt;Press Shift &amp;quot;(Shift double quotes)&lt;br&gt;Press a&lt;br&gt;Press the number of lines you want to copy&lt;br&gt;press y followed by another y&lt;p&gt;Now press &amp;quot; : &amp;quot; (COLON) to get the vi prompt.&lt;br&gt;Hit e &amp;quot;Destination file name&amp;quot;&lt;br&gt;Once you enter the Destination file &lt;br&gt;go to the line where you want the lines &lt;br&gt;copied to be inserted.&lt;p&gt;Press ESCAPE.&lt;br&gt;Press SHIFT &amp;quot;(Double quotes).&lt;br&gt;Press a.&lt;br&gt;Press p.&lt;p&gt;The lines get copied.&lt;p&gt;&lt;p&gt;&lt;br&gt;--------------------------------------------------------------------------&lt;br&gt;To Subscribe:    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.subscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.subscribe&lt;/a&gt;&lt;br&gt;To Unsubscribe:  &lt;a href="http://www.ugu.com/sui/ugu/show?tip.unsubscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.unsubscribe&lt;/a&gt;&lt;br&gt;To Submit A Tip: &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;==========================================================================&lt;br&gt;DISCLAIMER: All UNIX HOT TIPS ARE OWNED BY THE UNIX GURU UNIVERSE AND ARE&lt;br&gt;NOT TO BE SOLD, PRINTED OR USED WITHOUT THE WRITTEN CONSENT OF THE UNIX &lt;br&gt;GURU UNIVERSE. ALL TIPS ARE &amp;quot;USE AT YOUR OWN RISK&amp;quot;. UGU  ADVISES THAT &lt;br&gt;ALL TIPS BE TESTED IN A NON-PRODUCTION DEVELOPMENT ENVIRONMENT FIRST.&lt;p&gt;Unix Guru Universe - &lt;a href="http://www.ugu.com"&gt;www.ugu.com&lt;/a&gt; - &lt;a href="mailto:tips@ugu.com"&gt;tips@ugu.com&lt;/a&gt; - Copyright 1994-2001&lt;br&gt;==========================================================================&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-9968511444533992";
google_ad_host = "pub-1556223355139109";
/* 728x90, created 3/23/10 */
google_ad_slot = "8218028202";
google_ad_width = 728;
google_ad_height = 90;
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8690484772340382874-301962849106774027?l=unix-linux-tips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unix-linux-tips.blogspot.com/feeds/301962849106774027/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://unix-linux-tips.blogspot.com/2012/01/unix-tip-vi-copy-file-to-file.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/301962849106774027'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/301962849106774027'/><link rel='alternate' type='text/html' href='http://unix-linux-tips.blogspot.com/2012/01/unix-tip-vi-copy-file-to-file.html' title='Unix Tip: VI COPY FILE TO FILE'/><author><name>aboen</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://4.bp.blogspot.com/_PNxtMYqpu08/SaIb5xrIbGI/AAAAAAAAAZQ/qB_0YHjo_Y4/S220/Idiot2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8690484772340382874.post-733276589228142505</id><published>2012-01-10T01:42:00.001-08:00</published><updated>2012-01-10T01:42:25.911-08:00</updated><title type='text'>Unix Tip: SEARCH SEVERAL FILES</title><content type='html'>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;			      UNIX GURU UNIVERSE &lt;br&gt;			         UNIX HOT TIP&lt;p&gt;			Unix Tip 3258 - January 10, 2012&lt;p&gt;		    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;&lt;br&gt;SEARCH SEVERAL FILES&lt;p&gt;To search several files for a &lt;br&gt;string which you know sparsely,&lt;br&gt;the following searching technique &lt;br&gt;would be useful:&lt;p&gt;#grep &amp;lt;first part&amp;gt;.*&amp;lt;second part&amp;gt;.*&amp;lt;... part&amp;gt; &amp;lt;filenames&amp;gt;&lt;br&gt;        or,&lt;br&gt;#ls|xargs grep &amp;lt;first part&amp;gt;.*&amp;lt;second part&amp;gt;.*&amp;lt;... part&amp;gt;&lt;p&gt;&lt;br&gt;This will print all the filenames &lt;br&gt;and lines which consists of &lt;br&gt;&amp;quot;&amp;lt;first part&amp;gt;&amp;lt;0 to any number of &lt;br&gt;characters&amp;gt;&amp;lt;second part&amp;gt;&amp;lt;0 to any &lt;br&gt;number of characters&amp;gt;&amp;lt;third part&amp;gt; &lt;br&gt;......&amp;quot;&lt;p&gt;For example, you want to search a &lt;br&gt;data structure among several header&lt;br&gt;files where it has been declared &lt;br&gt;not where it is being used.&lt;p&gt;If the data structure be XYZ, then &lt;br&gt;search will be: &lt;p&gt;#grep }.*XYZ  &amp;lt;filenames&amp;gt;&lt;p&gt;because you know it might be how &lt;br&gt;XYZ has been declared, &lt;br&gt;struct {&lt;br&gt;      .....&lt;br&gt;      .....&lt;br&gt;      }   XYZ&lt;br&gt;You don&amp;#39;t know exactly how many&lt;br&gt;blank characters are there&lt;br&gt;unless you count them. But when XYZ&lt;br&gt;will be used it will be&lt;br&gt;done as follows(for example):&lt;p&gt;XYZ  *xyz;&lt;p&gt;and you don&amp;#39;t want them to find out&lt;br&gt;as they will be coming&lt;br&gt;in several header or C files.&lt;p&gt;&lt;br&gt;This tip generously supported by: &lt;a href="mailto:dipakb@cdotd.ernet.in"&gt;dipakb@cdotd.ernet.in&lt;/a&gt;&lt;p&gt;&lt;br&gt;--------------------------------------------------------------------------&lt;br&gt;To Subscribe:    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.subscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.subscribe&lt;/a&gt;&lt;br&gt;To Unsubscribe:  &lt;a href="http://www.ugu.com/sui/ugu/show?tip.unsubscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.unsubscribe&lt;/a&gt;&lt;br&gt;To Submit A Tip: &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;==========================================================================&lt;br&gt;DISCLAIMER: All UNIX HOT TIPS ARE OWNED BY THE UNIX GURU UNIVERSE AND ARE&lt;br&gt;NOT TO BE SOLD, PRINTED OR USED WITHOUT THE WRITTEN CONSENT OF THE UNIX &lt;br&gt;GURU UNIVERSE. ALL TIPS ARE &amp;quot;USE AT YOUR OWN RISK&amp;quot;. UGU  ADVISES THAT &lt;br&gt;ALL TIPS BE TESTED IN A NON-PRODUCTION DEVELOPMENT ENVIRONMENT FIRST.&lt;p&gt;Unix Guru Universe - &lt;a href="http://www.ugu.com"&gt;www.ugu.com&lt;/a&gt; - &lt;a href="mailto:tips@ugu.com"&gt;tips@ugu.com&lt;/a&gt; - Copyright 1994-2001&lt;br&gt;==========================================================================&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-9968511444533992";
google_ad_host = "pub-1556223355139109";
/* 728x90, created 3/23/10 */
google_ad_slot = "8218028202";
google_ad_width = 728;
google_ad_height = 90;
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8690484772340382874-733276589228142505?l=unix-linux-tips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unix-linux-tips.blogspot.com/feeds/733276589228142505/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://unix-linux-tips.blogspot.com/2012/01/unix-tip-search-several-files.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/733276589228142505'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/733276589228142505'/><link rel='alternate' type='text/html' href='http://unix-linux-tips.blogspot.com/2012/01/unix-tip-search-several-files.html' title='Unix Tip: SEARCH SEVERAL FILES'/><author><name>aboen</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://4.bp.blogspot.com/_PNxtMYqpu08/SaIb5xrIbGI/AAAAAAAAAZQ/qB_0YHjo_Y4/S220/Idiot2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8690484772340382874.post-1038670944475018842</id><published>2012-01-09T01:42:00.001-08:00</published><updated>2012-01-09T01:42:28.905-08:00</updated><title type='text'>Unix Tip: ARITHMETIC COMPARISON</title><content type='html'>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;			      UNIX GURU UNIVERSE &lt;br&gt;			         UNIX HOT TIP&lt;p&gt;			Unix Tip 3257 - January  9, 2012&lt;p&gt;		    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;&lt;br&gt;ARITHMETIC COMPARISON&lt;p&gt;In UNIX shell arithmetic comparison &lt;br&gt;is limited to integer values.  Here &lt;br&gt;is a tip to compare floating values &lt;br&gt;using basic shell commands.&lt;p&gt;--------- CUT HERE-----------------&lt;p&gt;#! /bin/sh&lt;br&gt;# test shell script&lt;br&gt;n1=&amp;quot;01.401&amp;quot;&lt;br&gt;n2=&amp;quot;01.350&amp;quot;&lt;p&gt;function compareFloatSmall&lt;br&gt;{&lt;br&gt;sort -n &amp;lt;&amp;lt;: | head -1&lt;br&gt;$n1&lt;br&gt;$n2&lt;br&gt;:&lt;br&gt;}&lt;p&gt;function compareFloatGreat&lt;br&gt;{&lt;br&gt;sort -r -n &amp;lt;&amp;lt;: | head -1&lt;br&gt;$n1&lt;br&gt;$n2&lt;br&gt;:&lt;br&gt;}&lt;p&gt;small=$(compareFloatSmall $n1 $n2)&lt;br&gt;echo &amp;quot;Comparing $n1 to $n2: smaller $less&amp;quot;&lt;br&gt;great=$(compareFloatGreat $n1 $n2)&lt;br&gt;echo &amp;quot;Comparing $n1 to $n2: greater $great&amp;quot;&lt;p&gt;--------- CUT HERE-----------------&lt;p&gt;Alternatively you can use a small &amp;#39;awk&amp;#39; program.&lt;p&gt;--------- CUT AGAIN HERE-----------&lt;br&gt;#! /bin/sh&lt;br&gt;# A couple of examples in awk.&lt;br&gt;n1=&amp;quot;03.550&amp;quot;&lt;br&gt;n2=&amp;quot;02.550&amp;quot;&lt;p&gt;echo &amp;quot;$n1 $n2&amp;quot; | awk &amp;#39;{&lt;br&gt;        if ( $1 &amp;gt;= $2 ) print $1&lt;br&gt;        if ( $1 &amp;lt;= $2 ) print $2&lt;br&gt;        if ( $1 &amp;gt;  $2 ) print $1&lt;br&gt;        if ( $1 &amp;lt;  $2 ) print $2&lt;br&gt;        if ( $1 == $2 ) print $1, $2&lt;br&gt;}&amp;#39;&lt;br&gt;--------- CUT AGAIN HERE-----------&lt;p&gt;&lt;p&gt;This tip generously supported by: &lt;a href="mailto:sthackeray@netscape.net"&gt;sthackeray@netscape.net&lt;/a&gt;&lt;p&gt;&lt;p&gt;--------------------------------------------------------------------------&lt;br&gt;To Subscribe:    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.subscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.subscribe&lt;/a&gt;&lt;br&gt;To Unsubscribe:  &lt;a href="http://www.ugu.com/sui/ugu/show?tip.unsubscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.unsubscribe&lt;/a&gt;&lt;br&gt;To Submit A Tip: &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;==========================================================================&lt;br&gt;DISCLAIMER: All UNIX HOT TIPS ARE OWNED BY THE UNIX GURU UNIVERSE AND ARE&lt;br&gt;NOT TO BE SOLD, PRINTED OR USED WITHOUT THE WRITTEN CONSENT OF THE UNIX &lt;br&gt;GURU UNIVERSE. ALL TIPS ARE &amp;quot;USE AT YOUR OWN RISK&amp;quot;. UGU  ADVISES THAT &lt;br&gt;ALL TIPS BE TESTED IN A NON-PRODUCTION DEVELOPMENT ENVIRONMENT FIRST.&lt;p&gt;Unix Guru Universe - &lt;a href="http://www.ugu.com"&gt;www.ugu.com&lt;/a&gt; - &lt;a href="mailto:tips@ugu.com"&gt;tips@ugu.com&lt;/a&gt; - Copyright 1994-2001&lt;br&gt;==========================================================================&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-9968511444533992";
google_ad_host = "pub-1556223355139109";
/* 728x90, created 3/23/10 */
google_ad_slot = "8218028202";
google_ad_width = 728;
google_ad_height = 90;
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8690484772340382874-1038670944475018842?l=unix-linux-tips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unix-linux-tips.blogspot.com/feeds/1038670944475018842/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://unix-linux-tips.blogspot.com/2012/01/unix-tip-arithmetic-comparison.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/1038670944475018842'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/1038670944475018842'/><link rel='alternate' type='text/html' href='http://unix-linux-tips.blogspot.com/2012/01/unix-tip-arithmetic-comparison.html' title='Unix Tip: ARITHMETIC COMPARISON'/><author><name>aboen</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://4.bp.blogspot.com/_PNxtMYqpu08/SaIb5xrIbGI/AAAAAAAAAZQ/qB_0YHjo_Y4/S220/Idiot2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8690484772340382874.post-8318399623998329629</id><published>2012-01-08T01:42:00.001-08:00</published><updated>2012-01-08T01:42:25.689-08:00</updated><title type='text'>Unix Tip: COPY A TREE WITH CPIO</title><content type='html'>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;			      UNIX GURU UNIVERSE &lt;br&gt;			         UNIX HOT TIP&lt;p&gt;			Unix Tip 3256 - January  8, 2012&lt;p&gt;		    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;&lt;br&gt;COPY A TREE WITH CPIO&lt;p&gt;Using standard UNIX tar to copy a &lt;br&gt;tree doesn&amp;#39;t preserve the original &lt;br&gt;owner and group information for the &lt;br&gt;directories and files during the copy. &lt;br&gt;To do this, use find(1) piped to cpio(1)&lt;br&gt;this way:&lt;p&gt;% cd &amp;lt;source-directory&amp;gt;&lt;br&gt;% find . -depth -print | cpio -pudm &amp;lt;dest-directory&amp;gt;&lt;p&gt;This will create a mirror image of the &lt;br&gt;&amp;lt;source-directory&amp;gt; tree in &amp;lt;dest-directory&amp;gt;.&lt;p&gt;&lt;p&gt;&lt;br&gt;--------------------------------------------------------------------------&lt;br&gt;To Subscribe:    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.subscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.subscribe&lt;/a&gt;&lt;br&gt;To Unsubscribe:  &lt;a href="http://www.ugu.com/sui/ugu/show?tip.unsubscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.unsubscribe&lt;/a&gt;&lt;br&gt;To Submit A Tip: &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;==========================================================================&lt;br&gt;DISCLAIMER: All UNIX HOT TIPS ARE OWNED BY THE UNIX GURU UNIVERSE AND ARE&lt;br&gt;NOT TO BE SOLD, PRINTED OR USED WITHOUT THE WRITTEN CONSENT OF THE UNIX &lt;br&gt;GURU UNIVERSE. ALL TIPS ARE &amp;quot;USE AT YOUR OWN RISK&amp;quot;. UGU  ADVISES THAT &lt;br&gt;ALL TIPS BE TESTED IN A NON-PRODUCTION DEVELOPMENT ENVIRONMENT FIRST.&lt;p&gt;Unix Guru Universe - &lt;a href="http://www.ugu.com"&gt;www.ugu.com&lt;/a&gt; - &lt;a href="mailto:tips@ugu.com"&gt;tips@ugu.com&lt;/a&gt; - Copyright 1994-2001&lt;br&gt;==========================================================================&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-9968511444533992";
google_ad_host = "pub-1556223355139109";
/* 728x90, created 3/23/10 */
google_ad_slot = "8218028202";
google_ad_width = 728;
google_ad_height = 90;
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8690484772340382874-8318399623998329629?l=unix-linux-tips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unix-linux-tips.blogspot.com/feeds/8318399623998329629/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://unix-linux-tips.blogspot.com/2012/01/unix-tip-copy-tree-with-cpio.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/8318399623998329629'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/8318399623998329629'/><link rel='alternate' type='text/html' href='http://unix-linux-tips.blogspot.com/2012/01/unix-tip-copy-tree-with-cpio.html' title='Unix Tip: COPY A TREE WITH CPIO'/><author><name>aboen</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://4.bp.blogspot.com/_PNxtMYqpu08/SaIb5xrIbGI/AAAAAAAAAZQ/qB_0YHjo_Y4/S220/Idiot2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8690484772340382874.post-2257001459316034630</id><published>2012-01-07T01:42:00.001-08:00</published><updated>2012-01-07T01:42:27.825-08:00</updated><title type='text'>Unix Tip: AUTOMATICALLY SET DISPLAY</title><content type='html'>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;			      UNIX GURU UNIVERSE &lt;br&gt;			         UNIX HOT TIP&lt;p&gt;			Unix Tip 3255 - January  7, 2012&lt;p&gt;		    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;&lt;br&gt;AUTOMATICALLY SET DISPLAY&lt;p&gt;To set automatically the DISPLAY &lt;br&gt;variable after rlogin (csh):&lt;p&gt;if (`who am i | wc -w` &amp;gt; 5) then&lt;br&gt;   setenv DISPLAY `who am i | cut -d&amp;quot;(&amp;quot; -f2 | cut -d&amp;quot;)&amp;quot; -f1`:0.0&lt;br&gt;endif&lt;p&gt;May vary from flavor to flavor&lt;p&gt;This tip generously supported by: &lt;a href="mailto:labrache@gaulois.cad.cea.fr"&gt;labrache@gaulois.cad.cea.fr&lt;/a&gt;&lt;p&gt;&lt;p&gt;&lt;br&gt;--------------------------------------------------------------------------&lt;br&gt;To Subscribe:    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.subscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.subscribe&lt;/a&gt;&lt;br&gt;To Unsubscribe:  &lt;a href="http://www.ugu.com/sui/ugu/show?tip.unsubscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.unsubscribe&lt;/a&gt;&lt;br&gt;To Submit A Tip: &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;==========================================================================&lt;br&gt;DISCLAIMER: All UNIX HOT TIPS ARE OWNED BY THE UNIX GURU UNIVERSE AND ARE&lt;br&gt;NOT TO BE SOLD, PRINTED OR USED WITHOUT THE WRITTEN CONSENT OF THE UNIX &lt;br&gt;GURU UNIVERSE. ALL TIPS ARE &amp;quot;USE AT YOUR OWN RISK&amp;quot;. UGU  ADVISES THAT &lt;br&gt;ALL TIPS BE TESTED IN A NON-PRODUCTION DEVELOPMENT ENVIRONMENT FIRST.&lt;p&gt;Unix Guru Universe - &lt;a href="http://www.ugu.com"&gt;www.ugu.com&lt;/a&gt; - &lt;a href="mailto:tips@ugu.com"&gt;tips@ugu.com&lt;/a&gt; - Copyright 1994-2001&lt;br&gt;==========================================================================&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-9968511444533992";
google_ad_host = "pub-1556223355139109";
/* 728x90, created 3/23/10 */
google_ad_slot = "8218028202";
google_ad_width = 728;
google_ad_height = 90;
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8690484772340382874-2257001459316034630?l=unix-linux-tips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unix-linux-tips.blogspot.com/feeds/2257001459316034630/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://unix-linux-tips.blogspot.com/2012/01/unix-tip-automatically-set-display.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/2257001459316034630'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/2257001459316034630'/><link rel='alternate' type='text/html' href='http://unix-linux-tips.blogspot.com/2012/01/unix-tip-automatically-set-display.html' title='Unix Tip: AUTOMATICALLY SET DISPLAY'/><author><name>aboen</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://4.bp.blogspot.com/_PNxtMYqpu08/SaIb5xrIbGI/AAAAAAAAAZQ/qB_0YHjo_Y4/S220/Idiot2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8690484772340382874.post-1986501557608833463</id><published>2012-01-06T01:42:00.001-08:00</published><updated>2012-01-06T01:42:27.647-08:00</updated><title type='text'>Unix Tip: ANOTHER SORT BY FILE SIZE</title><content type='html'>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;			      UNIX GURU UNIVERSE &lt;br&gt;			         UNIX HOT TIP&lt;p&gt;			Unix Tip 3254 - January  6, 2012&lt;p&gt;		    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;&lt;br&gt;ANOTHER SORT BY FILE SIZE&lt;p&gt;To sort certain files in the directory and to show &lt;br&gt;the biggest file first, do&lt;p&gt; $ du -a | sort -n -r | more &lt;p&gt;&lt;p&gt;--------------------------------------------------------------------------&lt;br&gt;To Subscribe:    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.subscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.subscribe&lt;/a&gt;&lt;br&gt;To Unsubscribe:  &lt;a href="http://www.ugu.com/sui/ugu/show?tip.unsubscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.unsubscribe&lt;/a&gt;&lt;br&gt;To Submit A Tip: &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;==========================================================================&lt;br&gt;DISCLAIMER: All UNIX HOT TIPS ARE OWNED BY THE UNIX GURU UNIVERSE AND ARE&lt;br&gt;NOT TO BE SOLD, PRINTED OR USED WITHOUT THE WRITTEN CONSENT OF THE UNIX &lt;br&gt;GURU UNIVERSE. ALL TIPS ARE &amp;quot;USE AT YOUR OWN RISK&amp;quot;. UGU  ADVISES THAT &lt;br&gt;ALL TIPS BE TESTED IN A NON-PRODUCTION DEVELOPMENT ENVIRONMENT FIRST.&lt;p&gt;Unix Guru Universe - &lt;a href="http://www.ugu.com"&gt;www.ugu.com&lt;/a&gt; - &lt;a href="mailto:tips@ugu.com"&gt;tips@ugu.com&lt;/a&gt; - Copyright 1994-2001&lt;br&gt;==========================================================================&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-9968511444533992";
google_ad_host = "pub-1556223355139109";
/* 728x90, created 3/23/10 */
google_ad_slot = "8218028202";
google_ad_width = 728;
google_ad_height = 90;
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8690484772340382874-1986501557608833463?l=unix-linux-tips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unix-linux-tips.blogspot.com/feeds/1986501557608833463/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://unix-linux-tips.blogspot.com/2012/01/unix-tip-another-sort-by-file-size.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/1986501557608833463'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/1986501557608833463'/><link rel='alternate' type='text/html' href='http://unix-linux-tips.blogspot.com/2012/01/unix-tip-another-sort-by-file-size.html' title='Unix Tip: ANOTHER SORT BY FILE SIZE'/><author><name>aboen</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://4.bp.blogspot.com/_PNxtMYqpu08/SaIb5xrIbGI/AAAAAAAAAZQ/qB_0YHjo_Y4/S220/Idiot2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8690484772340382874.post-3175517519746344056</id><published>2012-01-05T01:42:00.001-08:00</published><updated>2012-01-05T01:42:28.817-08:00</updated><title type='text'>Unix Tip: FILE CONSISTANCY CHECK</title><content type='html'>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;			      UNIX GURU UNIVERSE &lt;br&gt;			         UNIX HOT TIP&lt;p&gt;			Unix Tip 3253 - January  5, 2012&lt;p&gt;		    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;&lt;br&gt;FILE CONSISTANCY CHECK&lt;p&gt;&lt;br&gt;To check the number of feilds and the &lt;br&gt;consistancy of the file here is simple &lt;br&gt;command:&lt;p&gt;nawk -F &amp;quot;delimiter&amp;quot; &amp;#39;{print NF}&amp;#39; file_name|sort -u|more&lt;p&gt;&lt;p&gt;&lt;br&gt;--------------------------------------------------------------------------&lt;br&gt;To Subscribe:    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.subscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.subscribe&lt;/a&gt;&lt;br&gt;To Unsubscribe:  &lt;a href="http://www.ugu.com/sui/ugu/show?tip.unsubscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.unsubscribe&lt;/a&gt;&lt;br&gt;To Submit A Tip: &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;==========================================================================&lt;br&gt;DISCLAIMER: All UNIX HOT TIPS ARE OWNED BY THE UNIX GURU UNIVERSE AND ARE&lt;br&gt;NOT TO BE SOLD, PRINTED OR USED WITHOUT THE WRITTEN CONSENT OF THE UNIX &lt;br&gt;GURU UNIVERSE. ALL TIPS ARE &amp;quot;USE AT YOUR OWN RISK&amp;quot;. UGU  ADVISES THAT &lt;br&gt;ALL TIPS BE TESTED IN A NON-PRODUCTION DEVELOPMENT ENVIRONMENT FIRST.&lt;p&gt;Unix Guru Universe - &lt;a href="http://www.ugu.com"&gt;www.ugu.com&lt;/a&gt; - &lt;a href="mailto:tips@ugu.com"&gt;tips@ugu.com&lt;/a&gt; - Copyright 1994-2001&lt;br&gt;==========================================================================&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-9968511444533992";
google_ad_host = "pub-1556223355139109";
/* 728x90, created 3/23/10 */
google_ad_slot = "8218028202";
google_ad_width = 728;
google_ad_height = 90;
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8690484772340382874-3175517519746344056?l=unix-linux-tips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unix-linux-tips.blogspot.com/feeds/3175517519746344056/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://unix-linux-tips.blogspot.com/2012/01/unix-tip-file-consistancy-check.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/3175517519746344056'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/3175517519746344056'/><link rel='alternate' type='text/html' href='http://unix-linux-tips.blogspot.com/2012/01/unix-tip-file-consistancy-check.html' title='Unix Tip: FILE CONSISTANCY CHECK'/><author><name>aboen</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://4.bp.blogspot.com/_PNxtMYqpu08/SaIb5xrIbGI/AAAAAAAAAZQ/qB_0YHjo_Y4/S220/Idiot2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8690484772340382874.post-4884004140791924062</id><published>2012-01-04T01:42:00.001-08:00</published><updated>2012-01-04T01:42:31.724-08:00</updated><title type='text'>Unix Tip: LOCK DOWN TELNET OR FTP</title><content type='html'>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;			      UNIX GURU UNIVERSE &lt;br&gt;			         UNIX HOT TIP&lt;p&gt;			Unix Tip 3252 - January  4, 2012&lt;p&gt;		    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;&lt;br&gt;LOCK DOWN TELNET OR FTP&lt;p&gt;When inbound access isn&amp;#39;t required into &lt;br&gt;a system deny users Telnet or FTP access &lt;br&gt;do the following:&lt;p&gt;vi /etc/inetd.conf &lt;p&gt;Comment the line starts with Telnet or &lt;br&gt;FTP.  Save the file and exit.&lt;p&gt;Stop and start the inetd daemon now by &lt;br&gt;following commands:&lt;p&gt;/etc/rc.d/init.d/inet stop&lt;p&gt;/etc/rc.d/init.d/inet start&lt;p&gt;(Your flavor may be /etc/init.d)&lt;p&gt;Now on nobody can telnet or FTP to your &lt;br&gt;server from outside network.&lt;p&gt;This tip generously supported by: &lt;a href="mailto:avsrao_india@hotmail.com"&gt;avsrao_india@hotmail.com&lt;/a&gt;&lt;p&gt;&lt;br&gt;--------------------------------------------------------------------------&lt;br&gt;To Subscribe:    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.subscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.subscribe&lt;/a&gt;&lt;br&gt;To Unsubscribe:  &lt;a href="http://www.ugu.com/sui/ugu/show?tip.unsubscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.unsubscribe&lt;/a&gt;&lt;br&gt;To Submit A Tip: &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;==========================================================================&lt;br&gt;DISCLAIMER: All UNIX HOT TIPS ARE OWNED BY THE UNIX GURU UNIVERSE AND ARE&lt;br&gt;NOT TO BE SOLD, PRINTED OR USED WITHOUT THE WRITTEN CONSENT OF THE UNIX &lt;br&gt;GURU UNIVERSE. ALL TIPS ARE &amp;quot;USE AT YOUR OWN RISK&amp;quot;. UGU  ADVISES THAT &lt;br&gt;ALL TIPS BE TESTED IN A NON-PRODUCTION DEVELOPMENT ENVIRONMENT FIRST.&lt;p&gt;Unix Guru Universe - &lt;a href="http://www.ugu.com"&gt;www.ugu.com&lt;/a&gt; - &lt;a href="mailto:tips@ugu.com"&gt;tips@ugu.com&lt;/a&gt; - Copyright 1994-2001&lt;br&gt;==========================================================================&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-9968511444533992";
google_ad_host = "pub-1556223355139109";
/* 728x90, created 3/23/10 */
google_ad_slot = "8218028202";
google_ad_width = 728;
google_ad_height = 90;
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8690484772340382874-4884004140791924062?l=unix-linux-tips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unix-linux-tips.blogspot.com/feeds/4884004140791924062/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://unix-linux-tips.blogspot.com/2012/01/unix-tip-lock-down-telnet-or-ftp.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/4884004140791924062'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/4884004140791924062'/><link rel='alternate' type='text/html' href='http://unix-linux-tips.blogspot.com/2012/01/unix-tip-lock-down-telnet-or-ftp.html' title='Unix Tip: LOCK DOWN TELNET OR FTP'/><author><name>aboen</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://4.bp.blogspot.com/_PNxtMYqpu08/SaIb5xrIbGI/AAAAAAAAAZQ/qB_0YHjo_Y4/S220/Idiot2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8690484772340382874.post-1984097684622622926</id><published>2012-01-03T01:42:00.001-08:00</published><updated>2012-01-03T01:42:32.398-08:00</updated><title type='text'>Unix Tip: TRACKING OF LOGINS AND LOGOUTS</title><content type='html'>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;			      UNIX GURU UNIVERSE &lt;br&gt;			         UNIX HOT TIP&lt;p&gt;			Unix Tip 3251 - January  3, 2012&lt;p&gt;		    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;&lt;br&gt;TRACKING OF LOGINS AND LOGOUTS&lt;p&gt;&lt;br&gt;In the .login file add the commands:&lt;br&gt;------------------------------------&lt;p&gt;echo login time `date` &amp;gt;&amp;gt; .daylogs/masterlog&lt;p&gt;grep -i &amp;quot;sun&amp;quot; .daylogs/masterlog &amp;gt; .daylogs/sunday.log&lt;br&gt;grep -i &amp;quot;mon&amp;quot; .daylogs/masterlog &amp;gt; .daylogs/monday.log&lt;br&gt;grep -i &amp;quot;tue&amp;quot; .daylogs/masterlog &amp;gt; .daylogs/tuesday.log&lt;br&gt;grep -i &amp;quot;wen&amp;quot; .daylogs/masterlog &amp;gt; .daylogs/wensday.log&lt;br&gt;grep -i &amp;quot;thu&amp;quot; .daylogs/masterlog &amp;gt; .daylogs/thursday.log&lt;br&gt;grep -i &amp;quot;fri&amp;quot; .daylogs/masterlog &amp;gt; .daylogs/friday.log&lt;br&gt;grep -i &amp;quot;sat&amp;quot; .daylogs/masterlog &amp;gt; .daylogs/saturday.log&lt;p&gt;&lt;br&gt;In the .logout file add this line &lt;br&gt;-----------------------------------&lt;p&gt;echo logout time `date`&amp;gt;&amp;gt; .daylogs/masterlog&lt;p&gt;This script assumes you have a hidden &lt;br&gt;directory called .daylogs this helps keep it &lt;br&gt;out of sight and away from prying eyes and &lt;br&gt;if you keep root ownership of the directory &lt;br&gt;change the mode to:&lt;p&gt;chmod 744 .daylogs&lt;p&gt;This will not allow anyone to get in to the &lt;br&gt;directory to look around. &lt;p&gt;&lt;p&gt;--------------------------------------------------------------------------&lt;br&gt;To Subscribe:    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.subscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.subscribe&lt;/a&gt;&lt;br&gt;To Unsubscribe:  &lt;a href="http://www.ugu.com/sui/ugu/show?tip.unsubscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.unsubscribe&lt;/a&gt;&lt;br&gt;To Submit A Tip: &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;==========================================================================&lt;br&gt;DISCLAIMER: All UNIX HOT TIPS ARE OWNED BY THE UNIX GURU UNIVERSE AND ARE&lt;br&gt;NOT TO BE SOLD, PRINTED OR USED WITHOUT THE WRITTEN CONSENT OF THE UNIX &lt;br&gt;GURU UNIVERSE. ALL TIPS ARE &amp;quot;USE AT YOUR OWN RISK&amp;quot;. UGU  ADVISES THAT &lt;br&gt;ALL TIPS BE TESTED IN A NON-PRODUCTION DEVELOPMENT ENVIRONMENT FIRST.&lt;p&gt;Unix Guru Universe - &lt;a href="http://www.ugu.com"&gt;www.ugu.com&lt;/a&gt; - &lt;a href="mailto:tips@ugu.com"&gt;tips@ugu.com&lt;/a&gt; - Copyright 1994-2001&lt;br&gt;==========================================================================&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-9968511444533992";
google_ad_host = "pub-1556223355139109";
/* 728x90, created 3/23/10 */
google_ad_slot = "8218028202";
google_ad_width = 728;
google_ad_height = 90;
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8690484772340382874-1984097684622622926?l=unix-linux-tips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unix-linux-tips.blogspot.com/feeds/1984097684622622926/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://unix-linux-tips.blogspot.com/2012/01/unix-tip-tracking-of-logins-and-logouts.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/1984097684622622926'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/1984097684622622926'/><link rel='alternate' type='text/html' href='http://unix-linux-tips.blogspot.com/2012/01/unix-tip-tracking-of-logins-and-logouts.html' title='Unix Tip: TRACKING OF LOGINS AND LOGOUTS'/><author><name>aboen</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://4.bp.blogspot.com/_PNxtMYqpu08/SaIb5xrIbGI/AAAAAAAAAZQ/qB_0YHjo_Y4/S220/Idiot2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8690484772340382874.post-1515621568131712628</id><published>2012-01-02T01:42:00.001-08:00</published><updated>2012-01-02T01:42:33.391-08:00</updated><title type='text'>Unix Tip: IRIX: CHECK FOR NEW CONFIGS</title><content type='html'>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;			      UNIX GURU UNIVERSE &lt;br&gt;			         UNIX HOT TIP&lt;p&gt;			Unix Tip 3250 - January  2, 2012&lt;p&gt;		    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;&lt;br&gt;IRIX: CHECK FOR NEW CONFIGS&lt;p&gt;SGI loves to try and simplify &lt;br&gt;your life with chkconfig switches&lt;br&gt;to toggle various services on&lt;br&gt;and off. After each upgrade,&lt;br&gt;DOUBLE check the chkconfig&lt;br&gt;switches. If something doesn&amp;#39;t&lt;br&gt;work all of the sudden check&lt;br&gt;here. &lt;p&gt;For instance, tape drives in IRIX&lt;br&gt;are disabled by  a default install. &lt;br&gt;To enable a tape subsystem:&lt;p&gt;# chkconfig ts on&lt;p&gt;# /etc/init.d/ts start&lt;p&gt;&lt;p&gt;--------------------------------------------------------------------------&lt;br&gt;To Subscribe:    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.subscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.subscribe&lt;/a&gt;&lt;br&gt;To Unsubscribe:  &lt;a href="http://www.ugu.com/sui/ugu/show?tip.unsubscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.unsubscribe&lt;/a&gt;&lt;br&gt;To Submit A Tip: &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;==========================================================================&lt;br&gt;DISCLAIMER: All UNIX HOT TIPS ARE OWNED BY THE UNIX GURU UNIVERSE AND ARE&lt;br&gt;NOT TO BE SOLD, PRINTED OR USED WITHOUT THE WRITTEN CONSENT OF THE UNIX &lt;br&gt;GURU UNIVERSE. ALL TIPS ARE &amp;quot;USE AT YOUR OWN RISK&amp;quot;. UGU  ADVISES THAT &lt;br&gt;ALL TIPS BE TESTED IN A NON-PRODUCTION DEVELOPMENT ENVIRONMENT FIRST.&lt;p&gt;Unix Guru Universe - &lt;a href="http://www.ugu.com"&gt;www.ugu.com&lt;/a&gt; - &lt;a href="mailto:tips@ugu.com"&gt;tips@ugu.com&lt;/a&gt; - Copyright 1994-2001&lt;br&gt;==========================================================================&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-9968511444533992";
google_ad_host = "pub-1556223355139109";
/* 728x90, created 3/23/10 */
google_ad_slot = "8218028202";
google_ad_width = 728;
google_ad_height = 90;
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8690484772340382874-1515621568131712628?l=unix-linux-tips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unix-linux-tips.blogspot.com/feeds/1515621568131712628/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://unix-linux-tips.blogspot.com/2012/01/unix-tip-irix-check-for-new-configs.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/1515621568131712628'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/1515621568131712628'/><link rel='alternate' type='text/html' href='http://unix-linux-tips.blogspot.com/2012/01/unix-tip-irix-check-for-new-configs.html' title='Unix Tip: IRIX: CHECK FOR NEW CONFIGS'/><author><name>aboen</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://4.bp.blogspot.com/_PNxtMYqpu08/SaIb5xrIbGI/AAAAAAAAAZQ/qB_0YHjo_Y4/S220/Idiot2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8690484772340382874.post-6628053133591965735</id><published>2012-01-01T01:42:00.001-08:00</published><updated>2012-01-01T01:42:36.633-08:00</updated><title type='text'>Unix Tip: OPERATING ON MULTIPLE FILES</title><content type='html'>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;			      UNIX GURU UNIVERSE &lt;br&gt;			         UNIX HOT TIP&lt;p&gt;			Unix Tip 3249 - January  1, 2012&lt;p&gt;		    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;&lt;br&gt;OPERATING ON MULTIPLE FILES&lt;p&gt;Have you ever felt the need to perform a &lt;br&gt;set of operations on multiple files &lt;br&gt;simultaneously???&lt;p&gt;Here is a solution for that.&lt;p&gt;For instance, if it is required to perform &lt;br&gt;multiple operations like searching a string &lt;br&gt;(using grep), and executing an awk or perl&lt;br&gt;script etc, etc. on not just one file but a &lt;br&gt;set of files, use the following commands at &lt;br&gt;the unix prompt:&lt;p&gt; $&amp;lt;: foreach i (&amp;lt;file_list&amp;gt;)&lt;br&gt; ? echo $i&lt;br&gt; ? grep &amp;lt;search_pattern&amp;gt; $i &amp;gt; tmp&lt;br&gt; ? awk -f awk_script tmp &amp;gt;&amp;gt; report&lt;br&gt; ? ....&lt;br&gt; ? ....&lt;br&gt; ? end&lt;br&gt;$&amp;lt;:&lt;p&gt;The files list in the brackets can be either&lt;p&gt;* Specifically mentioned&lt;p&gt;* A unix variable which contains a list of &lt;br&gt;file names.  For instance, the variable &lt;br&gt;&amp;quot;p&amp;quot; can be assigned all the files starting &lt;br&gt;with string &amp;quot;data&amp;quot; as follows:&lt;br&gt;    set p = (data*)&lt;br&gt;Other examples are:&lt;br&gt;    set g = `grep -l &amp;quot;Startpoint&amp;quot; * `&lt;br&gt;or &lt;br&gt;    set all = * &lt;br&gt;(This assigns all file names in the current &lt;br&gt;directory to the variable &amp;quot;all&amp;quot; )&lt;p&gt;And its usage with the &amp;quot;foreach&amp;quot; command will &lt;br&gt;be as follows:&lt;br&gt;       &lt;br&gt;$&amp;lt;:  foreach i ($all)&lt;br&gt;   .....&lt;br&gt;   .....&lt;br&gt;end&lt;p&gt;This tip generously supported by: &lt;a href="mailto:lakshmi@virtualipgroup.com"&gt;lakshmi@virtualipgroup.com&lt;/a&gt;&lt;p&gt;&lt;p&gt;--------------------------------------------------------------------------&lt;br&gt;To Subscribe:    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.subscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.subscribe&lt;/a&gt;&lt;br&gt;To Unsubscribe:  &lt;a href="http://www.ugu.com/sui/ugu/show?tip.unsubscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.unsubscribe&lt;/a&gt;&lt;br&gt;To Submit A Tip: &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;==========================================================================&lt;br&gt;DISCLAIMER: All UNIX HOT TIPS ARE OWNED BY THE UNIX GURU UNIVERSE AND ARE&lt;br&gt;NOT TO BE SOLD, PRINTED OR USED WITHOUT THE WRITTEN CONSENT OF THE UNIX &lt;br&gt;GURU UNIVERSE. ALL TIPS ARE &amp;quot;USE AT YOUR OWN RISK&amp;quot;. UGU  ADVISES THAT &lt;br&gt;ALL TIPS BE TESTED IN A NON-PRODUCTION DEVELOPMENT ENVIRONMENT FIRST.&lt;p&gt;Unix Guru Universe - &lt;a href="http://www.ugu.com"&gt;www.ugu.com&lt;/a&gt; - &lt;a href="mailto:tips@ugu.com"&gt;tips@ugu.com&lt;/a&gt; - Copyright 1994-2001&lt;br&gt;==========================================================================&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-9968511444533992";
google_ad_host = "pub-1556223355139109";
/* 728x90, created 3/23/10 */
google_ad_slot = "8218028202";
google_ad_width = 728;
google_ad_height = 90;
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8690484772340382874-6628053133591965735?l=unix-linux-tips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unix-linux-tips.blogspot.com/feeds/6628053133591965735/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://unix-linux-tips.blogspot.com/2012/01/unix-tip-operating-on-multiple-files.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/6628053133591965735'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/6628053133591965735'/><link rel='alternate' type='text/html' href='http://unix-linux-tips.blogspot.com/2012/01/unix-tip-operating-on-multiple-files.html' title='Unix Tip: OPERATING ON MULTIPLE FILES'/><author><name>aboen</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://4.bp.blogspot.com/_PNxtMYqpu08/SaIb5xrIbGI/AAAAAAAAAZQ/qB_0YHjo_Y4/S220/Idiot2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8690484772340382874.post-8071836523831659143</id><published>2011-12-31T01:42:00.001-08:00</published><updated>2011-12-31T01:42:34.669-08:00</updated><title type='text'>Unix Tip: OPERATING ON MULTIPLE FILES</title><content type='html'>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;			      UNIX GURU UNIVERSE &lt;br&gt;			         UNIX HOT TIP&lt;p&gt;			Unix Tip 3613 - December 31, 2011&lt;p&gt;		    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;&lt;br&gt;OPERATING ON MULTIPLE FILES&lt;p&gt;Have you ever felt the need to perform a &lt;br&gt;set of operations on multiple files &lt;br&gt;simultaneously???&lt;p&gt;Here is a solution for that.&lt;p&gt;For instance, if it is required to perform &lt;br&gt;multiple operations like searching a string &lt;br&gt;(using grep), and executing an awk or perl&lt;br&gt;script etc, etc. on not just one file but a &lt;br&gt;set of files, use the following commands at &lt;br&gt;the unix prompt:&lt;p&gt; $&amp;lt;: foreach i (&amp;lt;file_list&amp;gt;)&lt;br&gt; ? echo $i&lt;br&gt; ? grep &amp;lt;search_pattern&amp;gt; $i &amp;gt; tmp&lt;br&gt; ? awk -f awk_script tmp &amp;gt;&amp;gt; report&lt;br&gt; ? ....&lt;br&gt; ? ....&lt;br&gt; ? end&lt;br&gt;$&amp;lt;:&lt;p&gt;The files list in the brackets can be either&lt;p&gt;* Specifically mentioned&lt;p&gt;* A unix variable which contains a list of &lt;br&gt;file names.  For instance, the variable &lt;br&gt;&amp;quot;p&amp;quot; can be assigned all the files starting &lt;br&gt;with string &amp;quot;data&amp;quot; as follows:&lt;br&gt;    set p = (data*)&lt;br&gt;Other examples are:&lt;br&gt;    set g = `grep -l &amp;quot;Startpoint&amp;quot; * `&lt;br&gt;or &lt;br&gt;    set all = * &lt;br&gt;(This assigns all file names in the current &lt;br&gt;directory to the variable &amp;quot;all&amp;quot; )&lt;p&gt;And its usage with the &amp;quot;foreach&amp;quot; command will &lt;br&gt;be as follows:&lt;br&gt;       &lt;br&gt;$&amp;lt;:  foreach i ($all)&lt;br&gt;   .....&lt;br&gt;   .....&lt;br&gt;end&lt;p&gt;This tip generously supported by: &lt;a href="mailto:lakshmi@virtualipgroup.com"&gt;lakshmi@virtualipgroup.com&lt;/a&gt;&lt;p&gt;&lt;p&gt;--------------------------------------------------------------------------&lt;br&gt;To Subscribe:    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.subscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.subscribe&lt;/a&gt;&lt;br&gt;To Unsubscribe:  &lt;a href="http://www.ugu.com/sui/ugu/show?tip.unsubscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.unsubscribe&lt;/a&gt;&lt;br&gt;To Submit A Tip: &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;==========================================================================&lt;br&gt;DISCLAIMER: All UNIX HOT TIPS ARE OWNED BY THE UNIX GURU UNIVERSE AND ARE&lt;br&gt;NOT TO BE SOLD, PRINTED OR USED WITHOUT THE WRITTEN CONSENT OF THE UNIX &lt;br&gt;GURU UNIVERSE. ALL TIPS ARE &amp;quot;USE AT YOUR OWN RISK&amp;quot;. UGU  ADVISES THAT &lt;br&gt;ALL TIPS BE TESTED IN A NON-PRODUCTION DEVELOPMENT ENVIRONMENT FIRST.&lt;p&gt;Unix Guru Universe - &lt;a href="http://www.ugu.com"&gt;www.ugu.com&lt;/a&gt; - &lt;a href="mailto:tips@ugu.com"&gt;tips@ugu.com&lt;/a&gt; - Copyright 1994-2001&lt;br&gt;==========================================================================&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-9968511444533992";
google_ad_host = "pub-1556223355139109";
/* 728x90, created 3/23/10 */
google_ad_slot = "8218028202";
google_ad_width = 728;
google_ad_height = 90;
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8690484772340382874-8071836523831659143?l=unix-linux-tips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unix-linux-tips.blogspot.com/feeds/8071836523831659143/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/12/unix-tip-operating-on-multiple-files.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/8071836523831659143'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/8071836523831659143'/><link rel='alternate' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/12/unix-tip-operating-on-multiple-files.html' title='Unix Tip: OPERATING ON MULTIPLE FILES'/><author><name>aboen</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://4.bp.blogspot.com/_PNxtMYqpu08/SaIb5xrIbGI/AAAAAAAAAZQ/qB_0YHjo_Y4/S220/Idiot2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8690484772340382874.post-3474290226337727252</id><published>2011-12-30T01:42:00.001-08:00</published><updated>2011-12-30T01:42:35.629-08:00</updated><title type='text'>Unix Tip: CHMOD THE SYSTEM</title><content type='html'>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;			      UNIX GURU UNIVERSE &lt;br&gt;			         UNIX HOT TIP&lt;p&gt;			Unix Tip 3612 - December 30, 2011&lt;p&gt;		    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;&lt;br&gt;CHMOD THE SYSTEM&lt;p&gt;Along the lines of:&lt;p&gt;D O   N O T   D O   T H I S!&lt;p&gt;Reports from several admins have&lt;br&gt;been made that dangerous users &lt;br&gt;who obtain root for the first &lt;br&gt;time enable full access to the&lt;br&gt;entire system. They are using&lt;br&gt;the following command:&lt;p&gt;# chmod -R 777 /&lt;p&gt;If you feel you have any &lt;br&gt;dangerous users, please advice&lt;br&gt;them of the dangers of executing&lt;br&gt;such a command. &lt;p&gt;&lt;p&gt;&lt;br&gt;--------------------------------------------------------------------------&lt;br&gt;To Subscribe:    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.subscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.subscribe&lt;/a&gt;&lt;br&gt;To Unsubscribe:  &lt;a href="http://www.ugu.com/sui/ugu/show?tip.unsubscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.unsubscribe&lt;/a&gt;&lt;br&gt;To Submit A Tip: &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;==========================================================================&lt;br&gt;DISCLAIMER: All UNIX HOT TIPS ARE OWNED BY THE UNIX GURU UNIVERSE AND ARE&lt;br&gt;NOT TO BE SOLD, PRINTED OR USED WITHOUT THE WRITTEN CONSENT OF THE UNIX &lt;br&gt;GURU UNIVERSE. ALL TIPS ARE &amp;quot;USE AT YOUR OWN RISK&amp;quot;. UGU  ADVISES THAT &lt;br&gt;ALL TIPS BE TESTED IN A NON-PRODUCTION DEVELOPMENT ENVIRONMENT FIRST.&lt;p&gt;Unix Guru Universe - &lt;a href="http://www.ugu.com"&gt;www.ugu.com&lt;/a&gt; - &lt;a href="mailto:tips@ugu.com"&gt;tips@ugu.com&lt;/a&gt; - Copyright 1994-2001&lt;br&gt;==========================================================================&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-9968511444533992";
google_ad_host = "pub-1556223355139109";
/* 728x90, created 3/23/10 */
google_ad_slot = "8218028202";
google_ad_width = 728;
google_ad_height = 90;
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8690484772340382874-3474290226337727252?l=unix-linux-tips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unix-linux-tips.blogspot.com/feeds/3474290226337727252/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/12/unix-tip-chmod-system.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/3474290226337727252'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/3474290226337727252'/><link rel='alternate' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/12/unix-tip-chmod-system.html' title='Unix Tip: CHMOD THE SYSTEM'/><author><name>aboen</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://4.bp.blogspot.com/_PNxtMYqpu08/SaIb5xrIbGI/AAAAAAAAAZQ/qB_0YHjo_Y4/S220/Idiot2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8690484772340382874.post-4079457653339550695</id><published>2011-12-29T01:42:00.001-08:00</published><updated>2011-12-29T01:42:37.259-08:00</updated><title type='text'>Unix Tip: EXECUTE SCRIPT FROM NETSCAPE</title><content type='html'>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;			      UNIX GURU UNIVERSE &lt;br&gt;			         UNIX HOT TIP&lt;p&gt;			Unix Tip 3611 - December 29, 2011&lt;p&gt;		    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;&lt;br&gt;EXECUTE SCRIPT FROM NETSCAPE&lt;p&gt;Do you want to execute a shell &lt;br&gt;script from your netscape &lt;br&gt;navigator ?&lt;p&gt;Go to EDIT&amp;gt;PREFERENCE&amp;gt;Applications&lt;br&gt;Edit or create an application&lt;br&gt;Choose the suffix (sh, csh)&lt;p&gt;Put &amp;quot;sh &amp;lt;%s&amp;quot; or &amp;quot;csh&amp;lt;%s&amp;quot; as application handler.&lt;p&gt;You can use the  xtrem -e option &lt;br&gt;to get a intercacitive window shell into&lt;br&gt;your navigator.&lt;p&gt;&lt;p&gt;&lt;br&gt;--------------------------------------------------------------------------&lt;br&gt;To Subscribe:    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.subscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.subscribe&lt;/a&gt;&lt;br&gt;To Unsubscribe:  &lt;a href="http://www.ugu.com/sui/ugu/show?tip.unsubscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.unsubscribe&lt;/a&gt;&lt;br&gt;To Submit A Tip: &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;==========================================================================&lt;br&gt;DISCLAIMER: All UNIX HOT TIPS ARE OWNED BY THE UNIX GURU UNIVERSE AND ARE&lt;br&gt;NOT TO BE SOLD, PRINTED OR USED WITHOUT THE WRITTEN CONSENT OF THE UNIX &lt;br&gt;GURU UNIVERSE. ALL TIPS ARE &amp;quot;USE AT YOUR OWN RISK&amp;quot;. UGU  ADVISES THAT &lt;br&gt;ALL TIPS BE TESTED IN A NON-PRODUCTION DEVELOPMENT ENVIRONMENT FIRST.&lt;p&gt;Unix Guru Universe - &lt;a href="http://www.ugu.com"&gt;www.ugu.com&lt;/a&gt; - &lt;a href="mailto:tips@ugu.com"&gt;tips@ugu.com&lt;/a&gt; - Copyright 1994-2001&lt;br&gt;==========================================================================&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-9968511444533992";
google_ad_host = "pub-1556223355139109";
/* 728x90, created 3/23/10 */
google_ad_slot = "8218028202";
google_ad_width = 728;
google_ad_height = 90;
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8690484772340382874-4079457653339550695?l=unix-linux-tips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unix-linux-tips.blogspot.com/feeds/4079457653339550695/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/12/unix-tip-execute-script-from-netscape.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/4079457653339550695'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/4079457653339550695'/><link rel='alternate' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/12/unix-tip-execute-script-from-netscape.html' title='Unix Tip: EXECUTE SCRIPT FROM NETSCAPE'/><author><name>aboen</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://4.bp.blogspot.com/_PNxtMYqpu08/SaIb5xrIbGI/AAAAAAAAAZQ/qB_0YHjo_Y4/S220/Idiot2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8690484772340382874.post-6514368796124537423</id><published>2011-12-28T01:42:00.001-08:00</published><updated>2011-12-28T01:42:36.067-08:00</updated><title type='text'>Unix Tip: TASK ALERTS</title><content type='html'>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;			      UNIX GURU UNIVERSE &lt;br&gt;			         UNIX HOT TIP&lt;p&gt;			Unix Tip 3610 - December 28, 2011&lt;p&gt;		    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;&lt;br&gt;TASK ALERTS&lt;p&gt;Have you ever started a long &lt;br&gt;running task, and after some time &lt;br&gt;decide you want to be alerted &lt;br&gt;when it finishes?&lt;p&gt;Add this to your .bashrc:&lt;p&gt;function aldo { while ps -ao pid | grep -q &amp;quot; ${1}$&amp;quot;; do sleep 1 ; done;&lt;br&gt;echo $&amp;#39;\a&amp;#39;; }&lt;p&gt;Then find the pid of a long &lt;br&gt;running process(say 253) and &lt;br&gt;on a different terminal:&lt;p&gt;501$ aldo 253&lt;p&gt;Will treat you to a pleasant beep when the task finishes.&lt;p&gt;&lt;p&gt;&lt;br&gt;--------------------------------------------------------------------------&lt;br&gt;To Subscribe:    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.subscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.subscribe&lt;/a&gt;&lt;br&gt;To Unsubscribe:  &lt;a href="http://www.ugu.com/sui/ugu/show?tip.unsubscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.unsubscribe&lt;/a&gt;&lt;br&gt;To Submit A Tip: &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;==========================================================================&lt;br&gt;DISCLAIMER: All UNIX HOT TIPS ARE OWNED BY THE UNIX GURU UNIVERSE AND ARE&lt;br&gt;NOT TO BE SOLD, PRINTED OR USED WITHOUT THE WRITTEN CONSENT OF THE UNIX &lt;br&gt;GURU UNIVERSE. ALL TIPS ARE &amp;quot;USE AT YOUR OWN RISK&amp;quot;. UGU  ADVISES THAT &lt;br&gt;ALL TIPS BE TESTED IN A NON-PRODUCTION DEVELOPMENT ENVIRONMENT FIRST.&lt;p&gt;Unix Guru Universe - &lt;a href="http://www.ugu.com"&gt;www.ugu.com&lt;/a&gt; - &lt;a href="mailto:tips@ugu.com"&gt;tips@ugu.com&lt;/a&gt; - Copyright 1994-2001&lt;br&gt;==========================================================================&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-9968511444533992";
google_ad_host = "pub-1556223355139109";
/* 728x90, created 3/23/10 */
google_ad_slot = "8218028202";
google_ad_width = 728;
google_ad_height = 90;
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8690484772340382874-6514368796124537423?l=unix-linux-tips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unix-linux-tips.blogspot.com/feeds/6514368796124537423/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/12/unix-tip-task-alerts.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/6514368796124537423'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/6514368796124537423'/><link rel='alternate' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/12/unix-tip-task-alerts.html' title='Unix Tip: TASK ALERTS'/><author><name>aboen</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://4.bp.blogspot.com/_PNxtMYqpu08/SaIb5xrIbGI/AAAAAAAAAZQ/qB_0YHjo_Y4/S220/Idiot2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8690484772340382874.post-2340909940213984351</id><published>2011-12-27T01:42:00.001-08:00</published><updated>2011-12-27T01:42:35.816-08:00</updated><title type='text'>Unix Tip: NO WRITES TO PASSWORD FILE</title><content type='html'>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;			      UNIX GURU UNIVERSE &lt;br&gt;			         UNIX HOT TIP&lt;p&gt;			Unix Tip 3609 - December 27, 2011&lt;p&gt;		    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;&lt;br&gt;NO WRITES TO PASSWORD FILE&lt;p&gt;The normal mistake in a fit of quick&lt;br&gt;panic often by users is to be looking&lt;br&gt;at the /etc/passwd file and see that &lt;br&gt;there is &amp;quot;READ&amp;quot; access to the world&lt;br&gt;or &amp;quot;644&amp;quot; on the file.&lt;p&gt;Time and time again when they first&lt;br&gt;discover having root access they&lt;br&gt;change the permissions to:&lt;p&gt;chmod 000 /etc/passwd&lt;p&gt;D O   N O T   D O   T H I S   ! ! !&lt;p&gt;chmod 644 /etc/passwd &lt;p&gt;Is just fine!&lt;p&gt;&lt;br&gt;--------------------------------------------------------------------------&lt;br&gt;To Subscribe:    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.subscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.subscribe&lt;/a&gt;&lt;br&gt;To Unsubscribe:  &lt;a href="http://www.ugu.com/sui/ugu/show?tip.unsubscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.unsubscribe&lt;/a&gt;&lt;br&gt;To Submit A Tip: &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;==========================================================================&lt;br&gt;DISCLAIMER: All UNIX HOT TIPS ARE OWNED BY THE UNIX GURU UNIVERSE AND ARE&lt;br&gt;NOT TO BE SOLD, PRINTED OR USED WITHOUT THE WRITTEN CONSENT OF THE UNIX &lt;br&gt;GURU UNIVERSE. ALL TIPS ARE &amp;quot;USE AT YOUR OWN RISK&amp;quot;. UGU  ADVISES THAT &lt;br&gt;ALL TIPS BE TESTED IN A NON-PRODUCTION DEVELOPMENT ENVIRONMENT FIRST.&lt;p&gt;Unix Guru Universe - &lt;a href="http://www.ugu.com"&gt;www.ugu.com&lt;/a&gt; - &lt;a href="mailto:tips@ugu.com"&gt;tips@ugu.com&lt;/a&gt; - Copyright 1994-2001&lt;br&gt;==========================================================================&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-9968511444533992";
google_ad_host = "pub-1556223355139109";
/* 728x90, created 3/23/10 */
google_ad_slot = "8218028202";
google_ad_width = 728;
google_ad_height = 90;
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8690484772340382874-2340909940213984351?l=unix-linux-tips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unix-linux-tips.blogspot.com/feeds/2340909940213984351/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/12/unix-tip-no-writes-to-password-file.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/2340909940213984351'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/2340909940213984351'/><link rel='alternate' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/12/unix-tip-no-writes-to-password-file.html' title='Unix Tip: NO WRITES TO PASSWORD FILE'/><author><name>aboen</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://4.bp.blogspot.com/_PNxtMYqpu08/SaIb5xrIbGI/AAAAAAAAAZQ/qB_0YHjo_Y4/S220/Idiot2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8690484772340382874.post-1571932513165438992</id><published>2011-12-26T01:42:00.001-08:00</published><updated>2011-12-26T01:42:38.293-08:00</updated><title type='text'>Unix Tip: EAT YOUR PERL PIE</title><content type='html'>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;			      UNIX GURU UNIVERSE &lt;br&gt;			         UNIX HOT TIP&lt;p&gt;			Unix Tip 3608 - December 26, 2011&lt;p&gt;		    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;&lt;br&gt;EAT YOUR PERL PIE&lt;p&gt;Mom always sed, &amp;quot;eat your Perl pie&amp;quot;!&lt;p&gt;A common task is to substitute &lt;br&gt;text strings within one or &lt;br&gt;more files.  The sed string &lt;br&gt;substitution command is often &lt;br&gt;used to accomplish this, where &lt;br&gt;sed is passed a file name, the&lt;br&gt;string substitutions are written &lt;br&gt;to another file, and then that &lt;br&gt;file is copied over the first &lt;br&gt;file to effect the changes&lt;br&gt;desired in the original.&lt;p&gt;This approach has some inherent &lt;br&gt;problems.  The command syntax is &lt;br&gt;lengthy and cumbersome, a &lt;br&gt;secondary file is created&lt;br&gt;which involves additional disk &lt;br&gt;I/O, and when that file is &lt;br&gt;copied or moved back over the &lt;br&gt;first one, permissions problems &lt;br&gt;and file ownership problems can &lt;br&gt;be created.  If your umask &lt;br&gt;doesn&amp;#39;t match the permissions of &lt;br&gt;the original file, then the &lt;br&gt;permissions of the final modified &lt;br&gt;file will be different than those &lt;br&gt;of the original.  Likewise, &lt;br&gt;default ownerships and group &lt;br&gt;names are imposed on the temporary &lt;br&gt;copy, and if one is not careful, &lt;br&gt;when the temporary copy is written &lt;br&gt;back to the original file, these &lt;br&gt;can destroy the original file&amp;#39;s &lt;br&gt;ownership and group information.&lt;p&gt;A much better way to accomplish &lt;br&gt;text substitution within a file or &lt;br&gt;group of files is to use the &lt;br&gt;&amp;quot;perl pie&amp;quot; approach, as shown here &lt;br&gt;on file foo:&lt;p&gt;perl -p -i -e &amp;#39;s/original text string/replacement string&amp;#39; foo&lt;p&gt;The above command will replace the &lt;br&gt;first instance of &amp;quot;original text &lt;br&gt;string&amp;quot; with &amp;quot;replacement string&amp;quot; &lt;br&gt;in file foo.  If you want to &lt;br&gt;perform this globally within the &lt;br&gt;file, add the /g global specifier &lt;br&gt;at the back end, as follows:&lt;p&gt;perl -p -i -e &amp;#39;s/original text string/replacementstring/g&amp;#39; foo&lt;p&gt;To act on several files in the &lt;br&gt;same directory, change the file &lt;br&gt;specification as needed, by &lt;br&gt;specifying foo*, *, or whatever &lt;br&gt;you need.&lt;p&gt;Note that perl uses the exact &lt;br&gt;same syntax for the actual string &lt;br&gt;substitution portion of the command &lt;br&gt;as sed does, which makes the command &lt;br&gt;syntax easy to remember. However, &lt;br&gt;perl performs the entire operation &lt;br&gt;on the file without the use of any&lt;br&gt;secondary files needing to be &lt;br&gt;created, which eliminates the extra &lt;br&gt;disk I/O and the potential &lt;br&gt;permissions and ownership issues.&lt;p&gt; &lt;p&gt;This tip generously supported by: &lt;a href="mailto:jem@postfive.rose.hp.com"&gt;jem@postfive.rose.hp.com&lt;/a&gt;&lt;p&gt;&lt;p&gt;&lt;br&gt;--------------------------------------------------------------------------&lt;br&gt;To Subscribe:    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.subscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.subscribe&lt;/a&gt;&lt;br&gt;To Unsubscribe:  &lt;a href="http://www.ugu.com/sui/ugu/show?tip.unsubscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.unsubscribe&lt;/a&gt;&lt;br&gt;To Submit A Tip: &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;==========================================================================&lt;br&gt;DISCLAIMER: All UNIX HOT TIPS ARE OWNED BY THE UNIX GURU UNIVERSE AND ARE&lt;br&gt;NOT TO BE SOLD, PRINTED OR USED WITHOUT THE WRITTEN CONSENT OF THE UNIX &lt;br&gt;GURU UNIVERSE. ALL TIPS ARE &amp;quot;USE AT YOUR OWN RISK&amp;quot;. UGU  ADVISES THAT &lt;br&gt;ALL TIPS BE TESTED IN A NON-PRODUCTION DEVELOPMENT ENVIRONMENT FIRST.&lt;p&gt;Unix Guru Universe - &lt;a href="http://www.ugu.com"&gt;www.ugu.com&lt;/a&gt; - &lt;a href="mailto:tips@ugu.com"&gt;tips@ugu.com&lt;/a&gt; - Copyright 1994-2001&lt;br&gt;==========================================================================&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-9968511444533992";
google_ad_host = "pub-1556223355139109";
/* 728x90, created 3/23/10 */
google_ad_slot = "8218028202";
google_ad_width = 728;
google_ad_height = 90;
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8690484772340382874-1571932513165438992?l=unix-linux-tips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unix-linux-tips.blogspot.com/feeds/1571932513165438992/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/12/unix-tip-eat-your-perl-pie.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/1571932513165438992'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/1571932513165438992'/><link rel='alternate' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/12/unix-tip-eat-your-perl-pie.html' title='Unix Tip: EAT YOUR PERL PIE'/><author><name>aboen</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://4.bp.blogspot.com/_PNxtMYqpu08/SaIb5xrIbGI/AAAAAAAAAZQ/qB_0YHjo_Y4/S220/Idiot2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8690484772340382874.post-2409495293988206207</id><published>2011-12-25T01:42:00.001-08:00</published><updated>2011-12-25T01:42:37.179-08:00</updated><title type='text'>Unix Tip: CHANGING A PRINT QUEUE IP</title><content type='html'>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;			      UNIX GURU UNIVERSE &lt;br&gt;			         UNIX HOT TIP&lt;p&gt;			Unix Tip 3607 - December 25, 2011&lt;p&gt;		    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;&lt;br&gt;CHANGING A PRINT QUEUE IP&lt;p&gt; &lt;br&gt;To change the IP address of &lt;br&gt;a print queue in HP UX 10.20 &lt;br&gt;(and maybe others), go to &lt;br&gt;/var/spool/lp/interface.  &lt;br&gt;Edit the file with the same &lt;br&gt;name as the print queue and &lt;br&gt;change parameter PERIPH  to &lt;br&gt;the new IP address.&lt;p&gt;For example, to change &lt;br&gt;printer_1 from 127.0.0.2 to &lt;br&gt;127.0.10.10, edit&lt;br&gt; /var/spool/lp/interface/printer_1 &lt;br&gt;and change the line PERIPH=127.0.0.2 to&lt;br&gt;PERIPH=127.0.10.10.&lt;p&gt;Disable and enable printer_1, &lt;br&gt;and jobs sent to printer_1 will &lt;br&gt;go to the new IP address.&lt;p&gt;&lt;br&gt;--------------------------------------------------------------------------&lt;br&gt;To Subscribe:    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.subscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.subscribe&lt;/a&gt;&lt;br&gt;To Unsubscribe:  &lt;a href="http://www.ugu.com/sui/ugu/show?tip.unsubscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.unsubscribe&lt;/a&gt;&lt;br&gt;To Submit A Tip: &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;==========================================================================&lt;br&gt;DISCLAIMER: All UNIX HOT TIPS ARE OWNED BY THE UNIX GURU UNIVERSE AND ARE&lt;br&gt;NOT TO BE SOLD, PRINTED OR USED WITHOUT THE WRITTEN CONSENT OF THE UNIX &lt;br&gt;GURU UNIVERSE. ALL TIPS ARE &amp;quot;USE AT YOUR OWN RISK&amp;quot;. UGU  ADVISES THAT &lt;br&gt;ALL TIPS BE TESTED IN A NON-PRODUCTION DEVELOPMENT ENVIRONMENT FIRST.&lt;p&gt;Unix Guru Universe - &lt;a href="http://www.ugu.com"&gt;www.ugu.com&lt;/a&gt; - &lt;a href="mailto:tips@ugu.com"&gt;tips@ugu.com&lt;/a&gt; - Copyright 1994-2001&lt;br&gt;==========================================================================&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-9968511444533992";
google_ad_host = "pub-1556223355139109";
/* 728x90, created 3/23/10 */
google_ad_slot = "8218028202";
google_ad_width = 728;
google_ad_height = 90;
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8690484772340382874-2409495293988206207?l=unix-linux-tips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unix-linux-tips.blogspot.com/feeds/2409495293988206207/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/12/unix-tip-changing-print-queue-ip.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/2409495293988206207'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/2409495293988206207'/><link rel='alternate' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/12/unix-tip-changing-print-queue-ip.html' title='Unix Tip: CHANGING A PRINT QUEUE IP'/><author><name>aboen</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://4.bp.blogspot.com/_PNxtMYqpu08/SaIb5xrIbGI/AAAAAAAAAZQ/qB_0YHjo_Y4/S220/Idiot2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8690484772340382874.post-1880659695670245288</id><published>2011-12-24T01:42:00.001-08:00</published><updated>2011-12-24T01:42:41.890-08:00</updated><title type='text'>Unix Tip: MOVING FILES AROUND</title><content type='html'>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;			      UNIX GURU UNIVERSE &lt;br&gt;			         UNIX HOT TIP&lt;p&gt;			Unix Tip 3606 - December 24, 2011&lt;p&gt;		    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;&lt;br&gt;MOVING FILES AROUND&lt;p&gt;Here is another way to move&lt;br&gt;files around.&lt;p&gt;Sometimes you find yourself &lt;br&gt;wanting to move a bunch of &lt;br&gt;files into a new directory &lt;br&gt;that is to be created in the &lt;br&gt;current working directory. &lt;p&gt;Rather than using a temporary &lt;br&gt;directory, or grep and variable&lt;br&gt;substitution; use a subshell:&lt;p&gt;$ ( \ls; echo dir; mkdir dir ) | xargs mv&lt;p&gt;The trick is in using a subshell &lt;br&gt;to run a number of commands &lt;br&gt;_before_ the output is piped to &lt;br&gt;xargs. This idiom is also useful &lt;br&gt;for plenty of other applications.&lt;p&gt;&lt;p&gt;&lt;br&gt;--------------------------------------------------------------------------&lt;br&gt;To Subscribe:    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.subscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.subscribe&lt;/a&gt;&lt;br&gt;To Unsubscribe:  &lt;a href="http://www.ugu.com/sui/ugu/show?tip.unsubscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.unsubscribe&lt;/a&gt;&lt;br&gt;To Submit A Tip: &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;==========================================================================&lt;br&gt;DISCLAIMER: All UNIX HOT TIPS ARE OWNED BY THE UNIX GURU UNIVERSE AND ARE&lt;br&gt;NOT TO BE SOLD, PRINTED OR USED WITHOUT THE WRITTEN CONSENT OF THE UNIX &lt;br&gt;GURU UNIVERSE. ALL TIPS ARE &amp;quot;USE AT YOUR OWN RISK&amp;quot;. UGU  ADVISES THAT &lt;br&gt;ALL TIPS BE TESTED IN A NON-PRODUCTION DEVELOPMENT ENVIRONMENT FIRST.&lt;p&gt;Unix Guru Universe - &lt;a href="http://www.ugu.com"&gt;www.ugu.com&lt;/a&gt; - &lt;a href="mailto:tips@ugu.com"&gt;tips@ugu.com&lt;/a&gt; - Copyright 1994-2001&lt;br&gt;==========================================================================&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-9968511444533992";
google_ad_host = "pub-1556223355139109";
/* 728x90, created 3/23/10 */
google_ad_slot = "8218028202";
google_ad_width = 728;
google_ad_height = 90;
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8690484772340382874-1880659695670245288?l=unix-linux-tips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unix-linux-tips.blogspot.com/feeds/1880659695670245288/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/12/unix-tip-moving-files-around.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/1880659695670245288'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/1880659695670245288'/><link rel='alternate' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/12/unix-tip-moving-files-around.html' title='Unix Tip: MOVING FILES AROUND'/><author><name>aboen</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://4.bp.blogspot.com/_PNxtMYqpu08/SaIb5xrIbGI/AAAAAAAAAZQ/qB_0YHjo_Y4/S220/Idiot2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8690484772340382874.post-4254420858475960206</id><published>2011-12-23T01:42:00.001-08:00</published><updated>2011-12-23T01:42:37.461-08:00</updated><title type='text'>Unix Tip: GOOD TIME FOR CRON</title><content type='html'>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;			      UNIX GURU UNIVERSE &lt;br&gt;			         UNIX HOT TIP&lt;p&gt;			Unix Tip 3605 - December 23, 2011&lt;p&gt;		    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;&lt;br&gt;GOOD TIME FOR CRON&lt;p&gt;At a US government site, most of &lt;br&gt;the maintenance cron jobs ran at &lt;br&gt;noon, because testing showed that &lt;br&gt;to be the least used time in any 24-hour &lt;br&gt;weekday.  Some users were around at all &lt;br&gt;hours of the night, but everyone went to &lt;br&gt;lunch!&lt;p&gt;Tibor Pollerman&lt;p&gt;&lt;p&gt;&lt;br&gt;--------------------------------------------------------------------------&lt;br&gt;To Subscribe:    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.subscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.subscribe&lt;/a&gt;&lt;br&gt;To Unsubscribe:  &lt;a href="http://www.ugu.com/sui/ugu/show?tip.unsubscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.unsubscribe&lt;/a&gt;&lt;br&gt;To Submit A Tip: &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;==========================================================================&lt;br&gt;DISCLAIMER: All UNIX HOT TIPS ARE OWNED BY THE UNIX GURU UNIVERSE AND ARE&lt;br&gt;NOT TO BE SOLD, PRINTED OR USED WITHOUT THE WRITTEN CONSENT OF THE UNIX &lt;br&gt;GURU UNIVERSE. ALL TIPS ARE &amp;quot;USE AT YOUR OWN RISK&amp;quot;. UGU  ADVISES THAT &lt;br&gt;ALL TIPS BE TESTED IN A NON-PRODUCTION DEVELOPMENT ENVIRONMENT FIRST.&lt;p&gt;Unix Guru Universe - &lt;a href="http://www.ugu.com"&gt;www.ugu.com&lt;/a&gt; - &lt;a href="mailto:tips@ugu.com"&gt;tips@ugu.com&lt;/a&gt; - Copyright 1994-2001&lt;br&gt;==========================================================================&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-9968511444533992";
google_ad_host = "pub-1556223355139109";
/* 728x90, created 3/23/10 */
google_ad_slot = "8218028202";
google_ad_width = 728;
google_ad_height = 90;
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8690484772340382874-4254420858475960206?l=unix-linux-tips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unix-linux-tips.blogspot.com/feeds/4254420858475960206/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/12/unix-tip-good-time-for-cron.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/4254420858475960206'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/4254420858475960206'/><link rel='alternate' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/12/unix-tip-good-time-for-cron.html' title='Unix Tip: GOOD TIME FOR CRON'/><author><name>aboen</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://4.bp.blogspot.com/_PNxtMYqpu08/SaIb5xrIbGI/AAAAAAAAAZQ/qB_0YHjo_Y4/S220/Idiot2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8690484772340382874.post-1793385191617275639</id><published>2011-12-22T01:42:00.001-08:00</published><updated>2011-12-22T01:42:38.888-08:00</updated><title type='text'>Unix Tip: PATHS EASIER TO READ</title><content type='html'>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;			      UNIX GURU UNIVERSE &lt;br&gt;			         UNIX HOT TIP&lt;p&gt;			Unix Tip 3604 - December 22, 2011&lt;p&gt;		    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;&lt;br&gt;PATHS EASIER TO READ&lt;p&gt;Am I the only one who finds the &lt;p&gt;% echo $PATH &lt;p&gt;and &lt;p&gt;% echo $LD_LIBRARY_PATH&lt;p&gt;unreadable?  Try this to make &lt;br&gt;for something thats much easier &lt;br&gt;to read:&lt;p&gt;echo $PATH | tr &amp;quot;:&amp;quot; &amp;quot;\n&amp;quot;&lt;p&gt;&lt;br&gt;This tip generously supported by: &lt;a href="mailto:ng@clubgeek.net"&gt;ng@clubgeek.net&lt;/a&gt;&lt;p&gt;&lt;p&gt;&lt;br&gt;--------------------------------------------------------------------------&lt;br&gt;To Subscribe:    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.subscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.subscribe&lt;/a&gt;&lt;br&gt;To Unsubscribe:  &lt;a href="http://www.ugu.com/sui/ugu/show?tip.unsubscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.unsubscribe&lt;/a&gt;&lt;br&gt;To Submit A Tip: &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;==========================================================================&lt;br&gt;DISCLAIMER: All UNIX HOT TIPS ARE OWNED BY THE UNIX GURU UNIVERSE AND ARE&lt;br&gt;NOT TO BE SOLD, PRINTED OR USED WITHOUT THE WRITTEN CONSENT OF THE UNIX &lt;br&gt;GURU UNIVERSE. ALL TIPS ARE &amp;quot;USE AT YOUR OWN RISK&amp;quot;. UGU  ADVISES THAT &lt;br&gt;ALL TIPS BE TESTED IN A NON-PRODUCTION DEVELOPMENT ENVIRONMENT FIRST.&lt;p&gt;Unix Guru Universe - &lt;a href="http://www.ugu.com"&gt;www.ugu.com&lt;/a&gt; - &lt;a href="mailto:tips@ugu.com"&gt;tips@ugu.com&lt;/a&gt; - Copyright 1994-2001&lt;br&gt;==========================================================================&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-9968511444533992";
google_ad_host = "pub-1556223355139109";
/* 728x90, created 3/23/10 */
google_ad_slot = "8218028202";
google_ad_width = 728;
google_ad_height = 90;
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8690484772340382874-1793385191617275639?l=unix-linux-tips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unix-linux-tips.blogspot.com/feeds/1793385191617275639/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/12/unix-tip-paths-easier-to-read.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/1793385191617275639'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/1793385191617275639'/><link rel='alternate' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/12/unix-tip-paths-easier-to-read.html' title='Unix Tip: PATHS EASIER TO READ'/><author><name>aboen</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://4.bp.blogspot.com/_PNxtMYqpu08/SaIb5xrIbGI/AAAAAAAAAZQ/qB_0YHjo_Y4/S220/Idiot2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8690484772340382874.post-5398653896644930866</id><published>2011-12-21T01:42:00.001-08:00</published><updated>2011-12-21T01:42:38.456-08:00</updated><title type='text'>Unix Tip: KEEP THAT USER OUT!</title><content type='html'>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;			      UNIX GURU UNIVERSE &lt;br&gt;			         UNIX HOT TIP&lt;p&gt;			Unix Tip 3603 - December 21, 2011&lt;p&gt;		    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;&lt;br&gt;KEEP THAT USER OUT!&lt;p&gt;Ever get into one of &lt;br&gt;those pesky admin wars &lt;br&gt;or need to keep the &lt;br&gt;developers off of your &lt;br&gt;system for a few minutes &lt;br&gt;without taking the system &lt;br&gt;to single user mode?  &lt;p&gt;This nasty little script &lt;br&gt;will do the trick.&lt;p&gt;[root@foo /]# while true&lt;br&gt;&amp;gt; do&lt;br&gt;&amp;gt; kill -9 $(ps -aux |grep username | awk &amp;#39;{ print $2 }&amp;#39; )&lt;br&gt;&amp;gt; sleep 2&lt;br&gt;&amp;gt; done&lt;p&gt;This can make you the life &lt;br&gt;of the party (At work)&lt;p&gt;Don Cooley&lt;br&gt;Unix Systems/Security Admin&lt;br&gt;Wellogix Inc.&lt;br&gt;&lt;a href="mailto:dcooley@wellogix.com"&gt;dcooley@wellogix.com&lt;/a&gt;&lt;p&gt;&lt;p&gt;&lt;br&gt;This tip generously supported by: &lt;a href="mailto:dcooley@wellogix.com"&gt;dcooley@wellogix.com&lt;/a&gt;&lt;p&gt;&lt;p&gt;&lt;br&gt;--------------------------------------------------------------------------&lt;br&gt;To Subscribe:    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.subscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.subscribe&lt;/a&gt;&lt;br&gt;To Unsubscribe:  &lt;a href="http://www.ugu.com/sui/ugu/show?tip.unsubscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.unsubscribe&lt;/a&gt;&lt;br&gt;To Submit A Tip: &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;==========================================================================&lt;br&gt;DISCLAIMER: All UNIX HOT TIPS ARE OWNED BY THE UNIX GURU UNIVERSE AND ARE&lt;br&gt;NOT TO BE SOLD, PRINTED OR USED WITHOUT THE WRITTEN CONSENT OF THE UNIX &lt;br&gt;GURU UNIVERSE. ALL TIPS ARE &amp;quot;USE AT YOUR OWN RISK&amp;quot;. UGU  ADVISES THAT &lt;br&gt;ALL TIPS BE TESTED IN A NON-PRODUCTION DEVELOPMENT ENVIRONMENT FIRST.&lt;p&gt;Unix Guru Universe - &lt;a href="http://www.ugu.com"&gt;www.ugu.com&lt;/a&gt; - &lt;a href="mailto:tips@ugu.com"&gt;tips@ugu.com&lt;/a&gt; - Copyright 1994-2001&lt;br&gt;==========================================================================&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-9968511444533992";
google_ad_host = "pub-1556223355139109";
/* 728x90, created 3/23/10 */
google_ad_slot = "8218028202";
google_ad_width = 728;
google_ad_height = 90;
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8690484772340382874-5398653896644930866?l=unix-linux-tips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unix-linux-tips.blogspot.com/feeds/5398653896644930866/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/12/unix-tip-keep-that-user-out.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/5398653896644930866'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/5398653896644930866'/><link rel='alternate' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/12/unix-tip-keep-that-user-out.html' title='Unix Tip: KEEP THAT USER OUT!'/><author><name>aboen</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://4.bp.blogspot.com/_PNxtMYqpu08/SaIb5xrIbGI/AAAAAAAAAZQ/qB_0YHjo_Y4/S220/Idiot2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8690484772340382874.post-9093802097205735387</id><published>2011-12-20T01:42:00.001-08:00</published><updated>2011-12-20T01:42:40.507-08:00</updated><title type='text'>Unix Tip: GETTING IPs FROM IFCONFIG</title><content type='html'>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;			      UNIX GURU UNIVERSE &lt;br&gt;			         UNIX HOT TIP&lt;p&gt;			Unix Tip 3602 - December 20, 2011&lt;p&gt;		    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;&lt;br&gt;GETTING IPs FROM IFCONFIG&lt;p&gt;You can use ifconfig to lookup &lt;br&gt;IP addresses bound to your box. &lt;br&gt;If you do not want to search the &lt;br&gt;output from ifconfig, use the &lt;br&gt;following command to get just &lt;br&gt;the IP listing.&lt;p&gt;ifconfig | awk &amp;#39;/inet/{print $2}&amp;#39; | awk -F: &amp;#39;{print $2}&amp;#39;&lt;p&gt;&lt;p&gt;&lt;p&gt;--------------------------------------------------------------------------&lt;br&gt;To Subscribe:    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.subscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.subscribe&lt;/a&gt;&lt;br&gt;To Unsubscribe:  &lt;a href="http://www.ugu.com/sui/ugu/show?tip.unsubscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.unsubscribe&lt;/a&gt;&lt;br&gt;To Submit A Tip: &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;==========================================================================&lt;br&gt;DISCLAIMER: All UNIX HOT TIPS ARE OWNED BY THE UNIX GURU UNIVERSE AND ARE&lt;br&gt;NOT TO BE SOLD, PRINTED OR USED WITHOUT THE WRITTEN CONSENT OF THE UNIX &lt;br&gt;GURU UNIVERSE. ALL TIPS ARE &amp;quot;USE AT YOUR OWN RISK&amp;quot;. UGU  ADVISES THAT &lt;br&gt;ALL TIPS BE TESTED IN A NON-PRODUCTION DEVELOPMENT ENVIRONMENT FIRST.&lt;p&gt;Unix Guru Universe - &lt;a href="http://www.ugu.com"&gt;www.ugu.com&lt;/a&gt; - &lt;a href="mailto:tips@ugu.com"&gt;tips@ugu.com&lt;/a&gt; - Copyright 1994-2001&lt;br&gt;==========================================================================&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-9968511444533992";
google_ad_host = "pub-1556223355139109";
/* 728x90, created 3/23/10 */
google_ad_slot = "8218028202";
google_ad_width = 728;
google_ad_height = 90;
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8690484772340382874-9093802097205735387?l=unix-linux-tips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unix-linux-tips.blogspot.com/feeds/9093802097205735387/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/12/unix-tip-getting-ips-from-ifconfig.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/9093802097205735387'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/9093802097205735387'/><link rel='alternate' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/12/unix-tip-getting-ips-from-ifconfig.html' title='Unix Tip: GETTING IPs FROM IFCONFIG'/><author><name>aboen</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://4.bp.blogspot.com/_PNxtMYqpu08/SaIb5xrIbGI/AAAAAAAAAZQ/qB_0YHjo_Y4/S220/Idiot2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8690484772340382874.post-8734182399145288767</id><published>2011-12-19T01:42:00.001-08:00</published><updated>2011-12-19T01:42:41.139-08:00</updated><title type='text'>Unix Tip: PING THE HOST TABLE</title><content type='html'>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;			      UNIX GURU UNIVERSE &lt;br&gt;			         UNIX HOT TIP&lt;p&gt;			Unix Tip 3601 - December 19, 2011&lt;p&gt;		    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;&lt;br&gt;PING THE HOST TABLE &lt;p&gt;There&amp;#39;s no need to grep and &lt;br&gt;pipe the output into awk &lt;br&gt;(you can &amp;quot;grep&amp;quot; with awk.)  &lt;p&gt;awk &amp;#39;/^[0-9]/{print $1}&amp;#39; /etc/hosts |xargs -l ping -c 1 $1&lt;p&gt;&lt;br&gt;This tip generously supported by: &lt;a href="mailto:bmaclean@silverplatter.com"&gt;bmaclean@silverplatter.com&lt;/a&gt;&lt;p&gt;And another:&lt;p&gt;awk &amp;#39;/^[^#]/ {system(&amp;quot;ping -c 1 &amp;quot;$1)}&amp;#39; &amp;lt; /etc/hosts&lt;p&gt;&lt;br&gt;This tip generously supported by: &lt;a href="mailto:maddox@xmission.com"&gt;maddox@xmission.com&lt;/a&gt;&lt;p&gt;&lt;p&gt;&lt;br&gt;--------------------------------------------------------------------------&lt;br&gt;To Subscribe:    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.subscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.subscribe&lt;/a&gt;&lt;br&gt;To Unsubscribe:  &lt;a href="http://www.ugu.com/sui/ugu/show?tip.unsubscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.unsubscribe&lt;/a&gt;&lt;br&gt;To Submit A Tip: &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;==========================================================================&lt;br&gt;DISCLAIMER: All UNIX HOT TIPS ARE OWNED BY THE UNIX GURU UNIVERSE AND ARE&lt;br&gt;NOT TO BE SOLD, PRINTED OR USED WITHOUT THE WRITTEN CONSENT OF THE UNIX &lt;br&gt;GURU UNIVERSE. ALL TIPS ARE &amp;quot;USE AT YOUR OWN RISK&amp;quot;. UGU  ADVISES THAT &lt;br&gt;ALL TIPS BE TESTED IN A NON-PRODUCTION DEVELOPMENT ENVIRONMENT FIRST.&lt;p&gt;Unix Guru Universe - &lt;a href="http://www.ugu.com"&gt;www.ugu.com&lt;/a&gt; - &lt;a href="mailto:tips@ugu.com"&gt;tips@ugu.com&lt;/a&gt; - Copyright 1994-2001&lt;br&gt;==========================================================================&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-9968511444533992";
google_ad_host = "pub-1556223355139109";
/* 728x90, created 3/23/10 */
google_ad_slot = "8218028202";
google_ad_width = 728;
google_ad_height = 90;
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8690484772340382874-8734182399145288767?l=unix-linux-tips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unix-linux-tips.blogspot.com/feeds/8734182399145288767/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/12/unix-tip-ping-host-table.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/8734182399145288767'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/8734182399145288767'/><link rel='alternate' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/12/unix-tip-ping-host-table.html' title='Unix Tip: PING THE HOST TABLE'/><author><name>aboen</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://4.bp.blogspot.com/_PNxtMYqpu08/SaIb5xrIbGI/AAAAAAAAAZQ/qB_0YHjo_Y4/S220/Idiot2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8690484772340382874.post-7525113222398134639</id><published>2011-12-18T01:42:00.001-08:00</published><updated>2011-12-18T01:42:43.637-08:00</updated><title type='text'>Unix Tip: USES FOR AWK</title><content type='html'>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;			      UNIX GURU UNIVERSE &lt;br&gt;			         UNIX HOT TIP&lt;p&gt;			Unix Tip 3600 - December 18, 2011&lt;p&gt;		    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;&lt;br&gt;USES FOR AWK &lt;p&gt;If you have a server &lt;br&gt;with alot of filesystems &lt;br&gt;on it (oracle/SAP &lt;br&gt;environments) then this &lt;br&gt;little awk command can &lt;br&gt;come in useful. It can&lt;br&gt;obviously be used in many &lt;br&gt;other situations also. In &lt;br&gt;this example, the file&lt;br&gt;structure is /oracle/PRD/xxxx. &lt;p&gt;awk &amp;#39;/PRD/{ print &amp;quot;umount &amp;quot; $3 }&amp;#39; /etc/vfstab | /sbin/sh&lt;p&gt;If you run it without &lt;br&gt;piping it to &amp;#39;sh&amp;#39;, then it &lt;br&gt;will show you what the command &lt;br&gt;will do. You can replace the &lt;br&gt;&amp;#39;umount&amp;#39; with whatever command you&lt;br&gt;like. It&amp;#39;s a quick and easy though.&lt;p&gt;&lt;p&gt;&lt;p&gt;--------------------------------------------------------------------------&lt;br&gt;To Subscribe:    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.subscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.subscribe&lt;/a&gt;&lt;br&gt;To Unsubscribe:  &lt;a href="http://www.ugu.com/sui/ugu/show?tip.unsubscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.unsubscribe&lt;/a&gt;&lt;br&gt;To Submit A Tip: &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;==========================================================================&lt;br&gt;DISCLAIMER: All UNIX HOT TIPS ARE OWNED BY THE UNIX GURU UNIVERSE AND ARE&lt;br&gt;NOT TO BE SOLD, PRINTED OR USED WITHOUT THE WRITTEN CONSENT OF THE UNIX &lt;br&gt;GURU UNIVERSE. ALL TIPS ARE &amp;quot;USE AT YOUR OWN RISK&amp;quot;. UGU  ADVISES THAT &lt;br&gt;ALL TIPS BE TESTED IN A NON-PRODUCTION DEVELOPMENT ENVIRONMENT FIRST.&lt;p&gt;Unix Guru Universe - &lt;a href="http://www.ugu.com"&gt;www.ugu.com&lt;/a&gt; - &lt;a href="mailto:tips@ugu.com"&gt;tips@ugu.com&lt;/a&gt; - Copyright 1994-2001&lt;br&gt;==========================================================================&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-9968511444533992";
google_ad_host = "pub-1556223355139109";
/* 728x90, created 3/23/10 */
google_ad_slot = "8218028202";
google_ad_width = 728;
google_ad_height = 90;
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8690484772340382874-7525113222398134639?l=unix-linux-tips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unix-linux-tips.blogspot.com/feeds/7525113222398134639/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/12/unix-tip-uses-for-awk.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/7525113222398134639'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/7525113222398134639'/><link rel='alternate' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/12/unix-tip-uses-for-awk.html' title='Unix Tip: USES FOR AWK'/><author><name>aboen</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://4.bp.blogspot.com/_PNxtMYqpu08/SaIb5xrIbGI/AAAAAAAAAZQ/qB_0YHjo_Y4/S220/Idiot2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8690484772340382874.post-5082557511548494875</id><published>2011-12-17T01:42:00.001-08:00</published><updated>2011-12-17T01:42:43.492-08:00</updated><title type='text'>Unix Tip: PERL FIND AND REPLACE</title><content type='html'>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;			      UNIX GURU UNIVERSE &lt;br&gt;			         UNIX HOT TIP&lt;p&gt;			Unix Tip 3599 - December 17, 2011&lt;p&gt;		    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;&lt;br&gt;PERL FIND AND REPLACE&lt;p&gt;In UNIX environment, the &lt;br&gt;following combination of perl &lt;br&gt;and find will serch for a &lt;br&gt;particular file and replace &lt;br&gt;the occurence of a particular &lt;br&gt;string with another string in &lt;br&gt;that file. This will also &lt;br&gt;work for multiple files and &lt;br&gt;directories.  The find &lt;br&gt;command finds the file and &lt;br&gt;the perl script replaces &lt;br&gt;old string with the new one.&lt;p&gt;&lt;br&gt;At the command prompt give &lt;br&gt;this command:&lt;p&gt;# perl -pi -e  &amp;#39;s/&amp;lt;old string&amp;gt;/&amp;lt;new string&amp;gt;&amp;#39; `find . -name &amp;quot;&amp;lt;file name&amp;gt;&amp;quot;`&lt;p&gt;NB: Perl should be in the &lt;br&gt;path and the general regular &lt;br&gt;expression rules apply while &lt;br&gt;using special  characters &lt;br&gt;for eg  / or . &lt;p&gt;&lt;br&gt;This tip generously supported by: &lt;a href="mailto:pandpr@dh.cit.alcatel.fr"&gt;pandpr@dh.cit.alcatel.fr&lt;/a&gt;&lt;p&gt;&lt;p&gt;&lt;br&gt;--------------------------------------------------------------------------&lt;br&gt;To Subscribe:    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.subscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.subscribe&lt;/a&gt;&lt;br&gt;To Unsubscribe:  &lt;a href="http://www.ugu.com/sui/ugu/show?tip.unsubscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.unsubscribe&lt;/a&gt;&lt;br&gt;To Submit A Tip: &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;==========================================================================&lt;br&gt;DISCLAIMER: All UNIX HOT TIPS ARE OWNED BY THE UNIX GURU UNIVERSE AND ARE&lt;br&gt;NOT TO BE SOLD, PRINTED OR USED WITHOUT THE WRITTEN CONSENT OF THE UNIX &lt;br&gt;GURU UNIVERSE. ALL TIPS ARE &amp;quot;USE AT YOUR OWN RISK&amp;quot;. UGU  ADVISES THAT &lt;br&gt;ALL TIPS BE TESTED IN A NON-PRODUCTION DEVELOPMENT ENVIRONMENT FIRST.&lt;p&gt;Unix Guru Universe - &lt;a href="http://www.ugu.com"&gt;www.ugu.com&lt;/a&gt; - &lt;a href="mailto:tips@ugu.com"&gt;tips@ugu.com&lt;/a&gt; - Copyright 1994-2001&lt;br&gt;==========================================================================&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-9968511444533992";
google_ad_host = "pub-1556223355139109";
/* 728x90, created 3/23/10 */
google_ad_slot = "8218028202";
google_ad_width = 728;
google_ad_height = 90;
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8690484772340382874-5082557511548494875?l=unix-linux-tips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unix-linux-tips.blogspot.com/feeds/5082557511548494875/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/12/unix-tip-perl-find-and-replace.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/5082557511548494875'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/5082557511548494875'/><link rel='alternate' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/12/unix-tip-perl-find-and-replace.html' title='Unix Tip: PERL FIND AND REPLACE'/><author><name>aboen</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://4.bp.blogspot.com/_PNxtMYqpu08/SaIb5xrIbGI/AAAAAAAAAZQ/qB_0YHjo_Y4/S220/Idiot2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8690484772340382874.post-5438908442161429752</id><published>2011-12-16T01:42:00.001-08:00</published><updated>2011-12-16T01:42:43.038-08:00</updated><title type='text'>Unix Tip: BE ALARMED</title><content type='html'>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;			      UNIX GURU UNIVERSE &lt;br&gt;			         UNIX HOT TIP&lt;p&gt;			Unix Tip 3598 - December 16, 2011&lt;p&gt;		    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;&lt;br&gt;BE ALARMED&lt;p&gt;Name the following script &lt;br&gt;alarm. Make it executable &lt;br&gt;and them invoke it as:&lt;p&gt;% alarm 10 &amp;quot;Time for tea&amp;quot;&lt;p&gt;After 10 seconds machine will &lt;br&gt;echo Time for Tea&lt;br&gt;and beep five times.....&lt;p&gt;---------------&lt;p&gt;#! /usr/bin/ksh&lt;br&gt;# alarm program&lt;br&gt;# displays a message at&lt;br&gt;if [ $# -ne 2 ]&lt;br&gt;then&lt;br&gt;        echo &amp;quot;USAGE : $0 seconds message&amp;quot;&lt;br&gt;        exit 1&lt;br&gt;fi&lt;p&gt;time=$1&lt;br&gt;mesg=$2&lt;br&gt;signal_alarm()&lt;br&gt;{&lt;br&gt;  sleep $time&lt;br&gt;  banner $mesg&lt;br&gt;  for i in 1 2 3 4 5 6 7 8 9 &lt;br&gt;  do&lt;br&gt;        if [ $i -eq 2 -o $i -eq 4 -o $i -eq 6 -o $i -eq 8 ]&lt;br&gt;        then&lt;br&gt;                sleep 1&lt;br&gt;        else&lt;br&gt;                tput bel&lt;br&gt;        fi&lt;br&gt;  done&lt;br&gt;}&lt;p&gt;case $1 in &lt;p&gt;    [0-9][0-9][0-9] | [0-9] | [0-9][0-9] )signal_alarm &amp;amp;;;&lt;br&gt;    *)echo Seconds range is from 0 to 199;;&lt;p&gt;esac&lt;p&gt;&lt;p&gt;&lt;br&gt;--------------------------------------------------------------------------&lt;br&gt;To Subscribe:    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.subscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.subscribe&lt;/a&gt;&lt;br&gt;To Unsubscribe:  &lt;a href="http://www.ugu.com/sui/ugu/show?tip.unsubscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.unsubscribe&lt;/a&gt;&lt;br&gt;To Submit A Tip: &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;==========================================================================&lt;br&gt;DISCLAIMER: All UNIX HOT TIPS ARE OWNED BY THE UNIX GURU UNIVERSE AND ARE&lt;br&gt;NOT TO BE SOLD, PRINTED OR USED WITHOUT THE WRITTEN CONSENT OF THE UNIX &lt;br&gt;GURU UNIVERSE. ALL TIPS ARE &amp;quot;USE AT YOUR OWN RISK&amp;quot;. UGU  ADVISES THAT &lt;br&gt;ALL TIPS BE TESTED IN A NON-PRODUCTION DEVELOPMENT ENVIRONMENT FIRST.&lt;p&gt;Unix Guru Universe - &lt;a href="http://www.ugu.com"&gt;www.ugu.com&lt;/a&gt; - &lt;a href="mailto:tips@ugu.com"&gt;tips@ugu.com&lt;/a&gt; - Copyright 1994-2001&lt;br&gt;==========================================================================&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-9968511444533992";
google_ad_host = "pub-1556223355139109";
/* 728x90, created 3/23/10 */
google_ad_slot = "8218028202";
google_ad_width = 728;
google_ad_height = 90;
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8690484772340382874-5438908442161429752?l=unix-linux-tips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unix-linux-tips.blogspot.com/feeds/5438908442161429752/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/12/unix-tip-be-alarmed.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/5438908442161429752'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/5438908442161429752'/><link rel='alternate' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/12/unix-tip-be-alarmed.html' title='Unix Tip: BE ALARMED'/><author><name>aboen</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://4.bp.blogspot.com/_PNxtMYqpu08/SaIb5xrIbGI/AAAAAAAAAZQ/qB_0YHjo_Y4/S220/Idiot2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8690484772340382874.post-7557272325944934937</id><published>2011-12-15T01:42:00.001-08:00</published><updated>2011-12-15T01:42:48.311-08:00</updated><title type='text'>Unix Tip: NUMBERING A FILE</title><content type='html'>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;			      UNIX GURU UNIVERSE &lt;br&gt;			         UNIX HOT TIP&lt;p&gt;			Unix Tip 3597 - December 15, 2011&lt;p&gt;		    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;&lt;br&gt;NUMBERING A FILE&lt;p&gt;Ever want line numbers &lt;br&gt;appended to a file. Here &lt;br&gt;is a short script.&lt;br&gt; &lt;br&gt;awk &amp;#39;{no=no+1; printf&amp;quot;%d : %s&amp;quot;, no, $0}&amp;#39; filename &amp;gt; filename.out&lt;br&gt; &lt;br&gt;Another shorter but not &lt;br&gt;necessary elegant method &lt;br&gt;is:&lt;br&gt; &lt;br&gt;grep -n . filename &amp;gt; filename.out&lt;p&gt;filename is the original file&lt;br&gt;filenmae.out is the file with &lt;br&gt;line numbers appended at the &lt;br&gt;beginning of each line&lt;p&gt;&lt;br&gt;This tip generously supported by: &lt;a href="mailto:pradeep@unixguru.zzn.com"&gt;pradeep@unixguru.zzn.com&lt;/a&gt;&lt;p&gt;&lt;p&gt;&lt;br&gt;--------------------------------------------------------------------------&lt;br&gt;To Subscribe:    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.subscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.subscribe&lt;/a&gt;&lt;br&gt;To Unsubscribe:  &lt;a href="http://www.ugu.com/sui/ugu/show?tip.unsubscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.unsubscribe&lt;/a&gt;&lt;br&gt;To Submit A Tip: &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;==========================================================================&lt;br&gt;DISCLAIMER: All UNIX HOT TIPS ARE OWNED BY THE UNIX GURU UNIVERSE AND ARE&lt;br&gt;NOT TO BE SOLD, PRINTED OR USED WITHOUT THE WRITTEN CONSENT OF THE UNIX &lt;br&gt;GURU UNIVERSE. ALL TIPS ARE &amp;quot;USE AT YOUR OWN RISK&amp;quot;. UGU  ADVISES THAT &lt;br&gt;ALL TIPS BE TESTED IN A NON-PRODUCTION DEVELOPMENT ENVIRONMENT FIRST.&lt;p&gt;Unix Guru Universe - &lt;a href="http://www.ugu.com"&gt;www.ugu.com&lt;/a&gt; - &lt;a href="mailto:tips@ugu.com"&gt;tips@ugu.com&lt;/a&gt; - Copyright 1994-2001&lt;br&gt;==========================================================================&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-9968511444533992";
google_ad_host = "pub-1556223355139109";
/* 728x90, created 3/23/10 */
google_ad_slot = "8218028202";
google_ad_width = 728;
google_ad_height = 90;
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8690484772340382874-7557272325944934937?l=unix-linux-tips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unix-linux-tips.blogspot.com/feeds/7557272325944934937/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/12/unix-tip-numbering-file.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/7557272325944934937'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/7557272325944934937'/><link rel='alternate' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/12/unix-tip-numbering-file.html' title='Unix Tip: NUMBERING A FILE'/><author><name>aboen</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://4.bp.blogspot.com/_PNxtMYqpu08/SaIb5xrIbGI/AAAAAAAAAZQ/qB_0YHjo_Y4/S220/Idiot2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8690484772340382874.post-1241677008098663962</id><published>2011-12-14T01:42:00.001-08:00</published><updated>2011-12-14T01:42:45.793-08:00</updated><title type='text'>Unix Tip: BACKING UP FILES</title><content type='html'>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;			      UNIX GURU UNIVERSE &lt;br&gt;			         UNIX HOT TIP&lt;p&gt;			Unix Tip 3596 - December 14, 2011&lt;p&gt;		    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;&lt;br&gt;BACKING UP FILES &lt;p&gt;Ever needed to backup all &lt;br&gt;of your configuration files &lt;br&gt;in one fail swoop?&lt;p&gt;Using an editor create a &lt;br&gt;file:&lt;p&gt;vi configlist&lt;p&gt;Enter the full path of the &lt;br&gt;files needed to backup.&lt;p&gt;/etc/passwd&lt;br&gt;/etc/inetd.conf&lt;br&gt;/etc/hosts/allow&lt;br&gt;/etc/hosts.deny&lt;br&gt;and so on until you have a full list of files.&lt;br&gt;Save the file and quit&lt;p&gt;:wq!&lt;p&gt;Compress the files using tar:&lt;p&gt;tar cvfzT /tmp/backup.tar.gz configlist&lt;br&gt;tar: Removing leading `/` from absolute path names in the archive&lt;br&gt;etc/passwd&lt;br&gt;etc/inetd.conf&lt;p&gt;WARNING! This file contains some files that could only be read by a&lt;br&gt;limited number of users. Store it carefully so only the Administrator can&lt;br&gt;access it.&lt;p&gt;Check &amp;quot;man tar&amp;quot; on your flavor, &lt;br&gt;the &amp;quot;z&amp;quot; and &amp;quot;T&amp;quot; options are &lt;br&gt;not available on all flavors&lt;br&gt;of unix.&lt;p&gt;This tip generously supported by: &lt;a href="mailto:darren.mallett@tradermedia.co.uk"&gt;darren.mallett@tradermedia.co.uk&lt;/a&gt;&lt;p&gt;&lt;p&gt;&lt;br&gt;--------------------------------------------------------------------------&lt;br&gt;To Subscribe:    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.subscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.subscribe&lt;/a&gt;&lt;br&gt;To Unsubscribe:  &lt;a href="http://www.ugu.com/sui/ugu/show?tip.unsubscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.unsubscribe&lt;/a&gt;&lt;br&gt;To Submit A Tip: &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;==========================================================================&lt;br&gt;DISCLAIMER: All UNIX HOT TIPS ARE OWNED BY THE UNIX GURU UNIVERSE AND ARE&lt;br&gt;NOT TO BE SOLD, PRINTED OR USED WITHOUT THE WRITTEN CONSENT OF THE UNIX &lt;br&gt;GURU UNIVERSE. ALL TIPS ARE &amp;quot;USE AT YOUR OWN RISK&amp;quot;. UGU  ADVISES THAT &lt;br&gt;ALL TIPS BE TESTED IN A NON-PRODUCTION DEVELOPMENT ENVIRONMENT FIRST.&lt;p&gt;Unix Guru Universe - &lt;a href="http://www.ugu.com"&gt;www.ugu.com&lt;/a&gt; - &lt;a href="mailto:tips@ugu.com"&gt;tips@ugu.com&lt;/a&gt; - Copyright 1994-2001&lt;br&gt;==========================================================================&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-9968511444533992";
google_ad_host = "pub-1556223355139109";
/* 728x90, created 3/23/10 */
google_ad_slot = "8218028202";
google_ad_width = 728;
google_ad_height = 90;
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8690484772340382874-1241677008098663962?l=unix-linux-tips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unix-linux-tips.blogspot.com/feeds/1241677008098663962/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/12/unix-tip-backing-up-files.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/1241677008098663962'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/1241677008098663962'/><link rel='alternate' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/12/unix-tip-backing-up-files.html' title='Unix Tip: BACKING UP FILES'/><author><name>aboen</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://4.bp.blogspot.com/_PNxtMYqpu08/SaIb5xrIbGI/AAAAAAAAAZQ/qB_0YHjo_Y4/S220/Idiot2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8690484772340382874.post-4246608241830622710</id><published>2011-12-13T01:42:00.001-08:00</published><updated>2011-12-13T01:42:48.605-08:00</updated><title type='text'>Unix Tip: SNEAK THE EDUCATION IN</title><content type='html'>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;			      UNIX GURU UNIVERSE &lt;br&gt;			         UNIX HOT TIP&lt;p&gt;			Unix Tip 3595 - December 13, 2011&lt;p&gt;		    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;&lt;br&gt;SNEAK THE EDUCATION IN&lt;p&gt;During these times of tight &lt;br&gt;budgets. It is hard to &lt;br&gt;convince the boss to pay for&lt;br&gt;a class or conference. When&lt;br&gt;being quoted for a new &lt;br&gt;system ask the vendor to&lt;br&gt;toss in some education &lt;br&gt;classes into the price of&lt;br&gt;the quote. &lt;p&gt;There are 2 benefits to this:&lt;p&gt;1) Education in most &lt;br&gt;IT organizations comes out of&lt;br&gt;a different budget so you &lt;br&gt;are saving the company money&lt;br&gt;since that you don&amp;#39;t need to&lt;br&gt;use the funds from that pool&lt;br&gt;of money.&lt;p&gt;2) If you need to negotiate&lt;br&gt;the price of the quote or tell&lt;br&gt;the vendor you are taking it &lt;br&gt;to bid against a competitor;&lt;br&gt;educational classes are like &lt;br&gt;dessert at a restaurant. They&lt;br&gt;sometimes can toss it in for&lt;br&gt;free to keep your business.&lt;p&gt;But either way, the goal is&lt;br&gt;to get the classes on the&lt;br&gt;quote!&lt;p&gt;&lt;p&gt;--------------------------------------------------------------------------&lt;br&gt;To Subscribe:    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.subscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.subscribe&lt;/a&gt;&lt;br&gt;To Unsubscribe:  &lt;a href="http://www.ugu.com/sui/ugu/show?tip.unsubscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.unsubscribe&lt;/a&gt;&lt;br&gt;To Submit A Tip: &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;==========================================================================&lt;br&gt;DISCLAIMER: All UNIX HOT TIPS ARE OWNED BY THE UNIX GURU UNIVERSE AND ARE&lt;br&gt;NOT TO BE SOLD, PRINTED OR USED WITHOUT THE WRITTEN CONSENT OF THE UNIX &lt;br&gt;GURU UNIVERSE. ALL TIPS ARE &amp;quot;USE AT YOUR OWN RISK&amp;quot;. UGU  ADVISES THAT &lt;br&gt;ALL TIPS BE TESTED IN A NON-PRODUCTION DEVELOPMENT ENVIRONMENT FIRST.&lt;p&gt;Unix Guru Universe - &lt;a href="http://www.ugu.com"&gt;www.ugu.com&lt;/a&gt; - &lt;a href="mailto:tips@ugu.com"&gt;tips@ugu.com&lt;/a&gt; - Copyright 1994-2001&lt;br&gt;==========================================================================&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-9968511444533992";
google_ad_host = "pub-1556223355139109";
/* 728x90, created 3/23/10 */
google_ad_slot = "8218028202";
google_ad_width = 728;
google_ad_height = 90;
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8690484772340382874-4246608241830622710?l=unix-linux-tips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unix-linux-tips.blogspot.com/feeds/4246608241830622710/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/12/unix-tip-sneak-education-in.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/4246608241830622710'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/4246608241830622710'/><link rel='alternate' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/12/unix-tip-sneak-education-in.html' title='Unix Tip: SNEAK THE EDUCATION IN'/><author><name>aboen</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://4.bp.blogspot.com/_PNxtMYqpu08/SaIb5xrIbGI/AAAAAAAAAZQ/qB_0YHjo_Y4/S220/Idiot2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8690484772340382874.post-3855721160220959703</id><published>2011-12-12T01:42:00.001-08:00</published><updated>2011-12-12T01:42:57.691-08:00</updated><title type='text'>Unix Tip: MANIPULATE MULTIPLE FILES</title><content type='html'>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;			      UNIX GURU UNIVERSE &lt;br&gt;			         UNIX HOT TIP&lt;p&gt;			Unix Tip 3594 - December 12, 2011&lt;p&gt;		    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;&lt;br&gt;MANIPULATE MULTIPLE FILES&lt;p&gt;If you have a directory with &lt;br&gt;large number of files and you &lt;br&gt;want to rename or copy or &lt;br&gt;process it, here is a simple &lt;br&gt;way to do it;&lt;p&gt;# for temp in *&lt;br&gt;&amp;gt; do&lt;br&gt;&amp;gt; echo cp $temp $&lt;a href="http://temp.org"&gt;temp.org&lt;/a&gt; &amp;gt;&amp;gt; t.txt&lt;br&gt;&amp;gt; done&lt;p&gt;You can change the copy command &lt;br&gt;to what ever that you need to &lt;br&gt;do. This will create a file &lt;br&gt;tmp.txt with all the files &lt;br&gt;listed in the current working &lt;br&gt;directory and insert a line &lt;br&gt;into the file tmp.txt as;&lt;p&gt;cp filename &lt;a href="http://filename.org"&gt;filename.org&lt;/a&gt;&lt;p&gt;&lt;br&gt;This tip generously supported by: &lt;a href="mailto:tyl@computer.org"&gt;tyl@computer.org&lt;/a&gt;&lt;p&gt;&lt;p&gt;&lt;br&gt;--------------------------------------------------------------------------&lt;br&gt;To Subscribe:    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.subscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.subscribe&lt;/a&gt;&lt;br&gt;To Unsubscribe:  &lt;a href="http://www.ugu.com/sui/ugu/show?tip.unsubscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.unsubscribe&lt;/a&gt;&lt;br&gt;To Submit A Tip: &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;==========================================================================&lt;br&gt;DISCLAIMER: All UNIX HOT TIPS ARE OWNED BY THE UNIX GURU UNIVERSE AND ARE&lt;br&gt;NOT TO BE SOLD, PRINTED OR USED WITHOUT THE WRITTEN CONSENT OF THE UNIX &lt;br&gt;GURU UNIVERSE. ALL TIPS ARE &amp;quot;USE AT YOUR OWN RISK&amp;quot;. UGU  ADVISES THAT &lt;br&gt;ALL TIPS BE TESTED IN A NON-PRODUCTION DEVELOPMENT ENVIRONMENT FIRST.&lt;p&gt;Unix Guru Universe - &lt;a href="http://www.ugu.com"&gt;www.ugu.com&lt;/a&gt; - &lt;a href="mailto:tips@ugu.com"&gt;tips@ugu.com&lt;/a&gt; - Copyright 1994-2001&lt;br&gt;==========================================================================&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-9968511444533992";
google_ad_host = "pub-1556223355139109";
/* 728x90, created 3/23/10 */
google_ad_slot = "8218028202";
google_ad_width = 728;
google_ad_height = 90;
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8690484772340382874-3855721160220959703?l=unix-linux-tips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unix-linux-tips.blogspot.com/feeds/3855721160220959703/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/12/unix-tip-manipulate-multiple-files.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/3855721160220959703'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/3855721160220959703'/><link rel='alternate' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/12/unix-tip-manipulate-multiple-files.html' title='Unix Tip: MANIPULATE MULTIPLE FILES'/><author><name>aboen</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://4.bp.blogspot.com/_PNxtMYqpu08/SaIb5xrIbGI/AAAAAAAAAZQ/qB_0YHjo_Y4/S220/Idiot2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8690484772340382874.post-737071441755912004</id><published>2011-12-11T01:42:00.001-08:00</published><updated>2011-12-11T01:42:49.093-08:00</updated><title type='text'>Unix Tip: UNDO HP SECURE PASSWORD FACILITY</title><content type='html'>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;			      UNIX GURU UNIVERSE &lt;br&gt;			         UNIX HOT TIP&lt;p&gt;			Unix Tip 3593 - December 11, 2011&lt;p&gt;		    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;&lt;br&gt;UNDO HP SECURE PASSWORD FACILITY&lt;p&gt;If you have run command &lt;br&gt;pwconv to convert to secure &lt;br&gt;password and later want to undo &lt;br&gt;it, here it how;&lt;p&gt;/etc/tsconvert -r&lt;p&gt;This only for HP Unix and no &lt;br&gt;man pages for this.&lt;p&gt;&lt;br&gt;This tip generously supported by: &lt;a href="mailto:tyl@computer.org"&gt;tyl@computer.org&lt;/a&gt;&lt;p&gt;&lt;br&gt;--------------------------------------------------------------------------&lt;br&gt;To Subscribe:    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.subscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.subscribe&lt;/a&gt;&lt;br&gt;To Unsubscribe:  &lt;a href="http://www.ugu.com/sui/ugu/show?tip.unsubscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.unsubscribe&lt;/a&gt;&lt;br&gt;To Submit A Tip: &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;==========================================================================&lt;br&gt;DISCLAIMER: All UNIX HOT TIPS ARE OWNED BY THE UNIX GURU UNIVERSE AND ARE&lt;br&gt;NOT TO BE SOLD, PRINTED OR USED WITHOUT THE WRITTEN CONSENT OF THE UNIX &lt;br&gt;GURU UNIVERSE. ALL TIPS ARE &amp;quot;USE AT YOUR OWN RISK&amp;quot;. UGU  ADVISES THAT &lt;br&gt;ALL TIPS BE TESTED IN A NON-PRODUCTION DEVELOPMENT ENVIRONMENT FIRST.&lt;p&gt;Unix Guru Universe - &lt;a href="http://www.ugu.com"&gt;www.ugu.com&lt;/a&gt; - &lt;a href="mailto:tips@ugu.com"&gt;tips@ugu.com&lt;/a&gt; - Copyright 1994-2001&lt;br&gt;==========================================================================&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-9968511444533992";
google_ad_host = "pub-1556223355139109";
/* 728x90, created 3/23/10 */
google_ad_slot = "8218028202";
google_ad_width = 728;
google_ad_height = 90;
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8690484772340382874-737071441755912004?l=unix-linux-tips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unix-linux-tips.blogspot.com/feeds/737071441755912004/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/12/unix-tip-undo-hp-secure-password.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/737071441755912004'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/737071441755912004'/><link rel='alternate' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/12/unix-tip-undo-hp-secure-password.html' title='Unix Tip: UNDO HP SECURE PASSWORD FACILITY'/><author><name>aboen</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://4.bp.blogspot.com/_PNxtMYqpu08/SaIb5xrIbGI/AAAAAAAAAZQ/qB_0YHjo_Y4/S220/Idiot2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8690484772340382874.post-7325437683404299354</id><published>2011-12-10T01:42:00.001-08:00</published><updated>2011-12-10T01:42:51.443-08:00</updated><title type='text'>Unix Tip: COMMENT OUT MULTIPLE LINES</title><content type='html'>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;			      UNIX GURU UNIVERSE &lt;br&gt;			         UNIX HOT TIP&lt;p&gt;			Unix Tip 3592 - December 10, 2011&lt;p&gt;		    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;&lt;br&gt;COMMENT OUT MULTIPLE LINES&lt;p&gt;Ever wanted to comment out &lt;br&gt;multiple lines of code while &lt;br&gt;writing shell&lt;br&gt;scripts in vi, but didn&amp;#39;t want &lt;br&gt;to pound your keyboard for half &lt;br&gt;an hour doing it?&lt;p&gt;(I#Escape j.j.j.j. = carpal tunnel)&lt;p&gt;Here&amp;#39;s the nerdy way to do it:&lt;p&gt;:.,+N-1 s/^/#/g&lt;p&gt;Where N-1 is the number of lines &lt;br&gt;minus one that you want to comment &lt;br&gt;out, and s/^/#/g is the regular &lt;br&gt;expression (the pattern between the &lt;br&gt;first two slashes is what you want &lt;br&gt;to replace, in this case the &lt;br&gt;beginning of the line, and the &lt;br&gt;pattern between the last two slashes &lt;br&gt;is what you want to replace it with).&lt;p&gt;For example, if you&amp;#39;re a bad &lt;br&gt;coder like me and want to comment &lt;br&gt;out 500 lines of code, you would do:&lt;p&gt;:.,+499 s/^/#/g&lt;p&gt;&lt;p&gt;This tip generously supported by: &lt;a href="mailto:maddox@xmission.com"&gt;maddox@xmission.com&lt;/a&gt;&lt;p&gt;&lt;br&gt;--------------------------------------------------------------------------&lt;br&gt;To Subscribe:    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.subscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.subscribe&lt;/a&gt;&lt;br&gt;To Unsubscribe:  &lt;a href="http://www.ugu.com/sui/ugu/show?tip.unsubscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.unsubscribe&lt;/a&gt;&lt;br&gt;To Submit A Tip: &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;==========================================================================&lt;br&gt;DISCLAIMER: All UNIX HOT TIPS ARE OWNED BY THE UNIX GURU UNIVERSE AND ARE&lt;br&gt;NOT TO BE SOLD, PRINTED OR USED WITHOUT THE WRITTEN CONSENT OF THE UNIX &lt;br&gt;GURU UNIVERSE. ALL TIPS ARE &amp;quot;USE AT YOUR OWN RISK&amp;quot;. UGU  ADVISES THAT &lt;br&gt;ALL TIPS BE TESTED IN A NON-PRODUCTION DEVELOPMENT ENVIRONMENT FIRST.&lt;p&gt;Unix Guru Universe - &lt;a href="http://www.ugu.com"&gt;www.ugu.com&lt;/a&gt; - &lt;a href="mailto:tips@ugu.com"&gt;tips@ugu.com&lt;/a&gt; - Copyright 1994-2001&lt;br&gt;==========================================================================&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-9968511444533992";
google_ad_host = "pub-1556223355139109";
/* 728x90, created 3/23/10 */
google_ad_slot = "8218028202";
google_ad_width = 728;
google_ad_height = 90;
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8690484772340382874-7325437683404299354?l=unix-linux-tips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unix-linux-tips.blogspot.com/feeds/7325437683404299354/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/12/unix-tip-comment-out-multiple-lines.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/7325437683404299354'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/7325437683404299354'/><link rel='alternate' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/12/unix-tip-comment-out-multiple-lines.html' title='Unix Tip: COMMENT OUT MULTIPLE LINES'/><author><name>aboen</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://4.bp.blogspot.com/_PNxtMYqpu08/SaIb5xrIbGI/AAAAAAAAAZQ/qB_0YHjo_Y4/S220/Idiot2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8690484772340382874.post-5454699987543276680</id><published>2011-12-09T01:42:00.001-08:00</published><updated>2011-12-09T01:42:48.345-08:00</updated><title type='text'>Unix Tip: HOW MUCH SOLARIS MEMORY?</title><content type='html'>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;			      UNIX GURU UNIVERSE &lt;br&gt;			         UNIX HOT TIP&lt;p&gt;			Unix Tip 3591 - December  9, 2011&lt;p&gt;		    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;&lt;br&gt;HOW MUCH SOLARIS MEMORY?&lt;p&gt;To determine the amount of main memory on Solaris:&lt;br&gt;1) /usr/platform/sun4u/sbin/prtdiag&lt;br&gt;2) wsinfo&lt;br&gt;3) &amp;#39;/usr/sbin/prtconf | grep -i memory&amp;#39;&lt;p&gt;&lt;br&gt;This tip generously supported by: &lt;a href="mailto:M.Nithyanandham@blr.spcnl.co.in"&gt;M.Nithyanandham@blr.spcnl.co.in&lt;/a&gt;&lt;p&gt;&lt;p&gt;&lt;br&gt;--------------------------------------------------------------------------&lt;br&gt;To Subscribe:    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.subscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.subscribe&lt;/a&gt;&lt;br&gt;To Unsubscribe:  &lt;a href="http://www.ugu.com/sui/ugu/show?tip.unsubscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.unsubscribe&lt;/a&gt;&lt;br&gt;To Submit A Tip: &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;==========================================================================&lt;br&gt;DISCLAIMER: All UNIX HOT TIPS ARE OWNED BY THE UNIX GURU UNIVERSE AND ARE&lt;br&gt;NOT TO BE SOLD, PRINTED OR USED WITHOUT THE WRITTEN CONSENT OF THE UNIX &lt;br&gt;GURU UNIVERSE. ALL TIPS ARE &amp;quot;USE AT YOUR OWN RISK&amp;quot;. UGU  ADVISES THAT &lt;br&gt;ALL TIPS BE TESTED IN A NON-PRODUCTION DEVELOPMENT ENVIRONMENT FIRST.&lt;p&gt;Unix Guru Universe - &lt;a href="http://www.ugu.com"&gt;www.ugu.com&lt;/a&gt; - &lt;a href="mailto:tips@ugu.com"&gt;tips@ugu.com&lt;/a&gt; - Copyright 1994-2001&lt;br&gt;==========================================================================&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-9968511444533992";
google_ad_host = "pub-1556223355139109";
/* 728x90, created 3/23/10 */
google_ad_slot = "8218028202";
google_ad_width = 728;
google_ad_height = 90;
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8690484772340382874-5454699987543276680?l=unix-linux-tips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unix-linux-tips.blogspot.com/feeds/5454699987543276680/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/12/unix-tip-how-much-solaris-memory.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/5454699987543276680'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/5454699987543276680'/><link rel='alternate' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/12/unix-tip-how-much-solaris-memory.html' title='Unix Tip: HOW MUCH SOLARIS MEMORY?'/><author><name>aboen</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://4.bp.blogspot.com/_PNxtMYqpu08/SaIb5xrIbGI/AAAAAAAAAZQ/qB_0YHjo_Y4/S220/Idiot2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8690484772340382874.post-4056553648689625733</id><published>2011-12-08T01:42:00.001-08:00</published><updated>2011-12-08T01:42:48.789-08:00</updated><title type='text'>Unix Tip: EDITING OF LARGE FILES</title><content type='html'>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;			      UNIX GURU UNIVERSE &lt;br&gt;			         UNIX HOT TIP&lt;p&gt;			Unix Tip 3590 - December  8, 2011&lt;p&gt;		    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;&lt;br&gt;EDITING OF LARGE FILES&lt;p&gt;Ever failed to open a very large &lt;br&gt;file for editing in vi. Just try &lt;br&gt;this tip:&lt;p&gt;Suppose you want to make changes &lt;br&gt;in top 500 lines of a 100 line file &lt;br&gt;abc.txt.&lt;p&gt;tail +500 abc.txt &amp;gt; tail.txt&lt;br&gt;head -500 abc.txt &amp;gt; head.txt&lt;p&gt;Edit file head.txt by opening in &lt;br&gt;a vi editor.&lt;p&gt;Now append file tail.txt to &lt;br&gt;head.txt by:&lt;p&gt;cat tail.txt &amp;gt;&amp;gt; head.txt&lt;br&gt;mv head.txt &amp;gt; abc.txt&lt;br&gt;rm head.txt tail.txt&lt;p&gt;&lt;br&gt;This tip generously supported by: &lt;a href="mailto:akash@cadence.com"&gt;akash@cadence.com&lt;/a&gt;&lt;p&gt;&lt;p&gt;&lt;br&gt;--------------------------------------------------------------------------&lt;br&gt;To Subscribe:    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.subscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.subscribe&lt;/a&gt;&lt;br&gt;To Unsubscribe:  &lt;a href="http://www.ugu.com/sui/ugu/show?tip.unsubscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.unsubscribe&lt;/a&gt;&lt;br&gt;To Submit A Tip: &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;==========================================================================&lt;br&gt;DISCLAIMER: All UNIX HOT TIPS ARE OWNED BY THE UNIX GURU UNIVERSE AND ARE&lt;br&gt;NOT TO BE SOLD, PRINTED OR USED WITHOUT THE WRITTEN CONSENT OF THE UNIX &lt;br&gt;GURU UNIVERSE. ALL TIPS ARE &amp;quot;USE AT YOUR OWN RISK&amp;quot;. UGU  ADVISES THAT &lt;br&gt;ALL TIPS BE TESTED IN A NON-PRODUCTION DEVELOPMENT ENVIRONMENT FIRST.&lt;p&gt;Unix Guru Universe - &lt;a href="http://www.ugu.com"&gt;www.ugu.com&lt;/a&gt; - &lt;a href="mailto:tips@ugu.com"&gt;tips@ugu.com&lt;/a&gt; - Copyright 1994-2001&lt;br&gt;==========================================================================&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-9968511444533992";
google_ad_host = "pub-1556223355139109";
/* 728x90, created 3/23/10 */
google_ad_slot = "8218028202";
google_ad_width = 728;
google_ad_height = 90;
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8690484772340382874-4056553648689625733?l=unix-linux-tips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unix-linux-tips.blogspot.com/feeds/4056553648689625733/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/12/unix-tip-editing-of-large-files.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/4056553648689625733'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/4056553648689625733'/><link rel='alternate' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/12/unix-tip-editing-of-large-files.html' title='Unix Tip: EDITING OF LARGE FILES'/><author><name>aboen</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://4.bp.blogspot.com/_PNxtMYqpu08/SaIb5xrIbGI/AAAAAAAAAZQ/qB_0YHjo_Y4/S220/Idiot2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8690484772340382874.post-5391461886045588097</id><published>2011-12-07T01:42:00.001-08:00</published><updated>2011-12-07T01:42:50.313-08:00</updated><title type='text'>Unix Tip: LEAKING MEMORY?</title><content type='html'>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;			      UNIX GURU UNIVERSE &lt;br&gt;			         UNIX HOT TIP&lt;p&gt;			Unix Tip 3589 - December  7, 2011&lt;p&gt;		    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;&lt;br&gt;LEAKING MEMORY?&lt;p&gt;Do you want to know the list &lt;br&gt;of memory leak detecting tools: &lt;p&gt;&lt;a href="http://www.cs.colorado.edu/homes/zorn/public_html/MallocDebug.html"&gt;http://www.cs.colorado.edu/homes/zorn/public_html/MallocDebug.html&lt;/a&gt;&lt;p&gt;&lt;br&gt;This tip generously supported by: &lt;a href="mailto:M.Nithyanandham@blr.spcnl.co.in"&gt;M.Nithyanandham@blr.spcnl.co.in&lt;/a&gt;&lt;p&gt;&lt;p&gt;&lt;br&gt;--------------------------------------------------------------------------&lt;br&gt;To Subscribe:    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.subscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.subscribe&lt;/a&gt;&lt;br&gt;To Unsubscribe:  &lt;a href="http://www.ugu.com/sui/ugu/show?tip.unsubscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.unsubscribe&lt;/a&gt;&lt;br&gt;To Submit A Tip: &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;==========================================================================&lt;br&gt;DISCLAIMER: All UNIX HOT TIPS ARE OWNED BY THE UNIX GURU UNIVERSE AND ARE&lt;br&gt;NOT TO BE SOLD, PRINTED OR USED WITHOUT THE WRITTEN CONSENT OF THE UNIX &lt;br&gt;GURU UNIVERSE. ALL TIPS ARE &amp;quot;USE AT YOUR OWN RISK&amp;quot;. UGU  ADVISES THAT &lt;br&gt;ALL TIPS BE TESTED IN A NON-PRODUCTION DEVELOPMENT ENVIRONMENT FIRST.&lt;p&gt;Unix Guru Universe - &lt;a href="http://www.ugu.com"&gt;www.ugu.com&lt;/a&gt; - &lt;a href="mailto:tips@ugu.com"&gt;tips@ugu.com&lt;/a&gt; - Copyright 1994-2001&lt;br&gt;==========================================================================&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-9968511444533992";
google_ad_host = "pub-1556223355139109";
/* 728x90, created 3/23/10 */
google_ad_slot = "8218028202";
google_ad_width = 728;
google_ad_height = 90;
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8690484772340382874-5391461886045588097?l=unix-linux-tips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unix-linux-tips.blogspot.com/feeds/5391461886045588097/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/12/unix-tip-leaking-memory.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/5391461886045588097'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/5391461886045588097'/><link rel='alternate' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/12/unix-tip-leaking-memory.html' title='Unix Tip: LEAKING MEMORY?'/><author><name>aboen</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://4.bp.blogspot.com/_PNxtMYqpu08/SaIb5xrIbGI/AAAAAAAAAZQ/qB_0YHjo_Y4/S220/Idiot2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8690484772340382874.post-6641247173388937449</id><published>2011-12-06T01:42:00.001-08:00</published><updated>2011-12-06T01:42:53.147-08:00</updated><title type='text'>Unix Tip: TRUSS THE PID.....</title><content type='html'>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;			      UNIX GURU UNIVERSE &lt;br&gt;			         UNIX HOT TIP&lt;p&gt;			Unix Tip 3588 - December  6, 2011&lt;p&gt;		    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;&lt;br&gt;TRUSS THE PID.....&lt;p&gt;To check the system calls and signals &lt;br&gt;coming into and going out of a&lt;br&gt;process use /usr/bin/truss.&lt;p&gt;i.e. truss pid&lt;p&gt;&lt;br&gt;This tip generously supported by: &lt;a href="mailto:bareddy_sm@yahoo.com"&gt;bareddy_sm@yahoo.com&lt;/a&gt;&lt;p&gt;&lt;p&gt;--------------------------------------------------------------------------&lt;br&gt;To Subscribe:    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.subscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.subscribe&lt;/a&gt;&lt;br&gt;To Unsubscribe:  &lt;a href="http://www.ugu.com/sui/ugu/show?tip.unsubscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.unsubscribe&lt;/a&gt;&lt;br&gt;To Submit A Tip: &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;==========================================================================&lt;br&gt;DISCLAIMER: All UNIX HOT TIPS ARE OWNED BY THE UNIX GURU UNIVERSE AND ARE&lt;br&gt;NOT TO BE SOLD, PRINTED OR USED WITHOUT THE WRITTEN CONSENT OF THE UNIX &lt;br&gt;GURU UNIVERSE. ALL TIPS ARE &amp;quot;USE AT YOUR OWN RISK&amp;quot;. UGU  ADVISES THAT &lt;br&gt;ALL TIPS BE TESTED IN A NON-PRODUCTION DEVELOPMENT ENVIRONMENT FIRST.&lt;p&gt;Unix Guru Universe - &lt;a href="http://www.ugu.com"&gt;www.ugu.com&lt;/a&gt; - &lt;a href="mailto:tips@ugu.com"&gt;tips@ugu.com&lt;/a&gt; - Copyright 1994-2001&lt;br&gt;==========================================================================&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-9968511444533992";
google_ad_host = "pub-1556223355139109";
/* 728x90, created 3/23/10 */
google_ad_slot = "8218028202";
google_ad_width = 728;
google_ad_height = 90;
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8690484772340382874-6641247173388937449?l=unix-linux-tips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unix-linux-tips.blogspot.com/feeds/6641247173388937449/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/12/unix-tip-truss-pid.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/6641247173388937449'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/6641247173388937449'/><link rel='alternate' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/12/unix-tip-truss-pid.html' title='Unix Tip: TRUSS THE PID.....'/><author><name>aboen</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://4.bp.blogspot.com/_PNxtMYqpu08/SaIb5xrIbGI/AAAAAAAAAZQ/qB_0YHjo_Y4/S220/Idiot2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8690484772340382874.post-2066274357117399386</id><published>2011-12-05T01:42:00.001-08:00</published><updated>2011-12-05T01:42:52.804-08:00</updated><title type='text'>Unix Tip: VERIFY AFTER VACATIONS</title><content type='html'>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;			      UNIX GURU UNIVERSE &lt;br&gt;			         UNIX HOT TIP&lt;p&gt;			Unix Tip 3587 - December  5, 2011&lt;p&gt;		    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;&lt;br&gt;VERIFY AFTER VACATIONS&lt;p&gt;Be sure to check all vital systems and&lt;br&gt;processes once returning froma vacation.&lt;p&gt;Don&amp;#39;t ignore your log files or backup&lt;br&gt;reports. You may have alot of email&lt;br&gt;from automated jobs. READ ALL OF THEM!&lt;p&gt;&lt;p&gt;&lt;br&gt;--------------------------------------------------------------------------&lt;br&gt;To Subscribe:    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.subscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.subscribe&lt;/a&gt;&lt;br&gt;To Unsubscribe:  &lt;a href="http://www.ugu.com/sui/ugu/show?tip.unsubscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.unsubscribe&lt;/a&gt;&lt;br&gt;To Submit A Tip: &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;==========================================================================&lt;br&gt;DISCLAIMER: All UNIX HOT TIPS ARE OWNED BY THE UNIX GURU UNIVERSE AND ARE&lt;br&gt;NOT TO BE SOLD, PRINTED OR USED WITHOUT THE WRITTEN CONSENT OF THE UNIX &lt;br&gt;GURU UNIVERSE. ALL TIPS ARE &amp;quot;USE AT YOUR OWN RISK&amp;quot;. UGU  ADVISES THAT &lt;br&gt;ALL TIPS BE TESTED IN A NON-PRODUCTION DEVELOPMENT ENVIRONMENT FIRST.&lt;p&gt;Unix Guru Universe - &lt;a href="http://www.ugu.com"&gt;www.ugu.com&lt;/a&gt; - &lt;a href="mailto:tips@ugu.com"&gt;tips@ugu.com&lt;/a&gt; - Copyright 1994-2001&lt;br&gt;==========================================================================&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-9968511444533992";
google_ad_host = "pub-1556223355139109";
/* 728x90, created 3/23/10 */
google_ad_slot = "8218028202";
google_ad_width = 728;
google_ad_height = 90;
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8690484772340382874-2066274357117399386?l=unix-linux-tips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unix-linux-tips.blogspot.com/feeds/2066274357117399386/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/12/unix-tip-verify-after-vacations_05.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/2066274357117399386'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/2066274357117399386'/><link rel='alternate' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/12/unix-tip-verify-after-vacations_05.html' title='Unix Tip: VERIFY AFTER VACATIONS'/><author><name>aboen</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://4.bp.blogspot.com/_PNxtMYqpu08/SaIb5xrIbGI/AAAAAAAAAZQ/qB_0YHjo_Y4/S220/Idiot2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8690484772340382874.post-1545992531506442318</id><published>2011-12-04T01:42:00.001-08:00</published><updated>2011-12-04T01:42:52.817-08:00</updated><title type='text'>Unix Tip: VERIFY AFTER VACATIONS</title><content type='html'>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;			      UNIX GURU UNIVERSE &lt;br&gt;			         UNIX HOT TIP&lt;p&gt;			Unix Tip 3586 - December  4, 2011&lt;p&gt;		    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;&lt;br&gt;VERIFY AFTER VACATIONS&lt;p&gt;Be sure to check all vital systems and&lt;br&gt;processes once returning froma vacation.&lt;p&gt;Don&amp;#39;t ignore your log files or backup&lt;br&gt;reports. You may have alot of email&lt;br&gt;from automated jobs. READ ALL OF THEM!&lt;p&gt;&lt;p&gt;&lt;br&gt;--------------------------------------------------------------------------&lt;br&gt;To Subscribe:    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.subscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.subscribe&lt;/a&gt;&lt;br&gt;To Unsubscribe:  &lt;a href="http://www.ugu.com/sui/ugu/show?tip.unsubscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.unsubscribe&lt;/a&gt;&lt;br&gt;To Submit A Tip: &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;==========================================================================&lt;br&gt;DISCLAIMER: All UNIX HOT TIPS ARE OWNED BY THE UNIX GURU UNIVERSE AND ARE&lt;br&gt;NOT TO BE SOLD, PRINTED OR USED WITHOUT THE WRITTEN CONSENT OF THE UNIX &lt;br&gt;GURU UNIVERSE. ALL TIPS ARE &amp;quot;USE AT YOUR OWN RISK&amp;quot;. UGU  ADVISES THAT &lt;br&gt;ALL TIPS BE TESTED IN A NON-PRODUCTION DEVELOPMENT ENVIRONMENT FIRST.&lt;p&gt;Unix Guru Universe - &lt;a href="http://www.ugu.com"&gt;www.ugu.com&lt;/a&gt; - &lt;a href="mailto:tips@ugu.com"&gt;tips@ugu.com&lt;/a&gt; - Copyright 1994-2001&lt;br&gt;==========================================================================&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-9968511444533992";
google_ad_host = "pub-1556223355139109";
/* 728x90, created 3/23/10 */
google_ad_slot = "8218028202";
google_ad_width = 728;
google_ad_height = 90;
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8690484772340382874-1545992531506442318?l=unix-linux-tips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unix-linux-tips.blogspot.com/feeds/1545992531506442318/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/12/unix-tip-verify-after-vacations.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/1545992531506442318'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/1545992531506442318'/><link rel='alternate' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/12/unix-tip-verify-after-vacations.html' title='Unix Tip: VERIFY AFTER VACATIONS'/><author><name>aboen</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://4.bp.blogspot.com/_PNxtMYqpu08/SaIb5xrIbGI/AAAAAAAAAZQ/qB_0YHjo_Y4/S220/Idiot2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8690484772340382874.post-4415416419524126037</id><published>2011-12-03T01:42:00.001-08:00</published><updated>2011-12-03T01:42:53.537-08:00</updated><title type='text'>Unix Tip: FIND AND EDIT IN ONE</title><content type='html'>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;			      UNIX GURU UNIVERSE &lt;br&gt;			         UNIX HOT TIP&lt;p&gt;			Unix Tip 3585 - December  3, 2011&lt;p&gt;		    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;&lt;br&gt;FIND AND EDIT IN ONE&lt;p&gt;Have You Ever found a need to find a file for a particular pattern and then&lt;br&gt;edit the same ?? &lt;p&gt;Here is an easiest way....&lt;p&gt;At the UNIX prompt,&lt;br&gt;Just type:&lt;p&gt;vi `find . -name &amp;quot;*&amp;quot; -exec grep -l &amp;quot;pattern&amp;quot; {} \; -print`&lt;p&gt;Where &amp;quot;pattern&amp;quot; is the string to be searched.&lt;p&gt;&lt;p&gt;&lt;br&gt;--------------------------------------------------------------------------&lt;br&gt;To Subscribe:    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.subscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.subscribe&lt;/a&gt;&lt;br&gt;To Unsubscribe:  &lt;a href="http://www.ugu.com/sui/ugu/show?tip.unsubscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.unsubscribe&lt;/a&gt;&lt;br&gt;To Submit A Tip: &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;==========================================================================&lt;br&gt;DISCLAIMER: All UNIX HOT TIPS ARE OWNED BY THE UNIX GURU UNIVERSE AND ARE&lt;br&gt;NOT TO BE SOLD, PRINTED OR USED WITHOUT THE WRITTEN CONSENT OF THE UNIX &lt;br&gt;GURU UNIVERSE. ALL TIPS ARE &amp;quot;USE AT YOUR OWN RISK&amp;quot;. UGU  ADVISES THAT &lt;br&gt;ALL TIPS BE TESTED IN A NON-PRODUCTION DEVELOPMENT ENVIRONMENT FIRST.&lt;p&gt;Unix Guru Universe - &lt;a href="http://www.ugu.com"&gt;www.ugu.com&lt;/a&gt; - &lt;a href="mailto:tips@ugu.com"&gt;tips@ugu.com&lt;/a&gt; - Copyright 1994-2001&lt;br&gt;==========================================================================&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-9968511444533992";
google_ad_host = "pub-1556223355139109";
/* 728x90, created 3/23/10 */
google_ad_slot = "8218028202";
google_ad_width = 728;
google_ad_height = 90;
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8690484772340382874-4415416419524126037?l=unix-linux-tips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unix-linux-tips.blogspot.com/feeds/4415416419524126037/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/12/unix-tip-find-and-edit-in-one.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/4415416419524126037'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/4415416419524126037'/><link rel='alternate' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/12/unix-tip-find-and-edit-in-one.html' title='Unix Tip: FIND AND EDIT IN ONE'/><author><name>aboen</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://4.bp.blogspot.com/_PNxtMYqpu08/SaIb5xrIbGI/AAAAAAAAAZQ/qB_0YHjo_Y4/S220/Idiot2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8690484772340382874.post-7242582365078365894</id><published>2011-12-02T01:42:00.001-08:00</published><updated>2011-12-02T01:42:52.414-08:00</updated><title type='text'>Unix Tip: CARROTS ARE GOOD FOR YOU</title><content type='html'>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;			      UNIX GURU UNIVERSE &lt;br&gt;			         UNIX HOT TIP&lt;p&gt;			Unix Tip 3584 - December  2, 2011&lt;p&gt;		    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;&lt;br&gt;CARROTS ARE GOOD FOR YOU&lt;p&gt;Most often when we try to execute a command at the shell we do &lt;br&gt;some mistakes like missing out a char or misspelling it. &lt;br&gt;Here is a easy way of correcting the mistake without having &lt;br&gt;to type the entire command again!.&lt;p&gt;In the below command &amp;quot;name&amp;quot; has been misspelled as &amp;quot;naem&amp;quot;&lt;p&gt;$ find . -naem &amp;quot;*.txt&amp;quot; -print&lt;br&gt;find: invalid predicate `-naem&amp;#39;&lt;p&gt;The above command would be valid if we replace &amp;quot;em&amp;quot; (in naem) &lt;br&gt;to &amp;quot;me&amp;quot;( to have name ). Use carrots to make this change&lt;p&gt;$ ^em^me^&lt;br&gt;find . -name &amp;quot;*.txt&amp;quot; -print&lt;p&gt;This technique works well with bash and csh.&lt;p&gt;This tip generously supported by: &lt;a href="mailto:desikann@future.futsoft.com"&gt;desikann@future.futsoft.com&lt;/a&gt;&lt;p&gt;&lt;p&gt;&lt;br&gt;--------------------------------------------------------------------------&lt;br&gt;To Subscribe:    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.subscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.subscribe&lt;/a&gt;&lt;br&gt;To Unsubscribe:  &lt;a href="http://www.ugu.com/sui/ugu/show?tip.unsubscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.unsubscribe&lt;/a&gt;&lt;br&gt;To Submit A Tip: &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;==========================================================================&lt;br&gt;DISCLAIMER: All UNIX HOT TIPS ARE OWNED BY THE UNIX GURU UNIVERSE AND ARE&lt;br&gt;NOT TO BE SOLD, PRINTED OR USED WITHOUT THE WRITTEN CONSENT OF THE UNIX &lt;br&gt;GURU UNIVERSE. ALL TIPS ARE &amp;quot;USE AT YOUR OWN RISK&amp;quot;. UGU  ADVISES THAT &lt;br&gt;ALL TIPS BE TESTED IN A NON-PRODUCTION DEVELOPMENT ENVIRONMENT FIRST.&lt;p&gt;Unix Guru Universe - &lt;a href="http://www.ugu.com"&gt;www.ugu.com&lt;/a&gt; - &lt;a href="mailto:tips@ugu.com"&gt;tips@ugu.com&lt;/a&gt; - Copyright 1994-2001&lt;br&gt;==========================================================================&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-9968511444533992";
google_ad_host = "pub-1556223355139109";
/* 728x90, created 3/23/10 */
google_ad_slot = "8218028202";
google_ad_width = 728;
google_ad_height = 90;
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8690484772340382874-7242582365078365894?l=unix-linux-tips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unix-linux-tips.blogspot.com/feeds/7242582365078365894/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/12/unix-tip-carrots-are-good-for-you.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/7242582365078365894'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/7242582365078365894'/><link rel='alternate' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/12/unix-tip-carrots-are-good-for-you.html' title='Unix Tip: CARROTS ARE GOOD FOR YOU'/><author><name>aboen</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://4.bp.blogspot.com/_PNxtMYqpu08/SaIb5xrIbGI/AAAAAAAAAZQ/qB_0YHjo_Y4/S220/Idiot2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8690484772340382874.post-2615716852335926575</id><published>2011-12-01T01:42:00.001-08:00</published><updated>2011-12-01T01:42:56.603-08:00</updated><title type='text'>Unix Tip: WHERE ARE THOSE PARENTHESES?</title><content type='html'>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;			      UNIX GURU UNIVERSE &lt;br&gt;			         UNIX HOT TIP&lt;p&gt;			Unix Tip 3583 - December  1, 2011&lt;p&gt;		    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;&lt;br&gt;WHERE ARE THOSE PARENTHESES?&lt;p&gt;Do you ever lose your way in multiple levels of parentheses&lt;br&gt;or braces?  If you program in Perl or C, you know what I&lt;br&gt;mean.  Let the vi &amp;quot;%&amp;quot; command help you.  Move the cursor to &lt;br&gt;a parenthesis or brace and type %.  vi will move the&lt;br&gt;cursor to the corresponding character.  Hit % again and vi &lt;br&gt;will return to the original parenthesis or brace.  &lt;p&gt;For extra power, issue &amp;quot;/{&amp;quot; to find the first open brace.  &lt;br&gt;Hit &amp;quot;%&amp;quot; twice to find the corresponding brace and return.&lt;br&gt;Hit &amp;quot;n&amp;quot; to find the next open brace.  This allows you to &lt;br&gt;zip through the file checking your program structure.&lt;p&gt;It makes you feel sorry for Windows-based editors!&lt;p&gt;&lt;p&gt;&lt;br&gt;--------------------------------------------------------------------------&lt;br&gt;To Subscribe:    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.subscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.subscribe&lt;/a&gt;&lt;br&gt;To Unsubscribe:  &lt;a href="http://www.ugu.com/sui/ugu/show?tip.unsubscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.unsubscribe&lt;/a&gt;&lt;br&gt;To Submit A Tip: &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;==========================================================================&lt;br&gt;DISCLAIMER: All UNIX HOT TIPS ARE OWNED BY THE UNIX GURU UNIVERSE AND ARE&lt;br&gt;NOT TO BE SOLD, PRINTED OR USED WITHOUT THE WRITTEN CONSENT OF THE UNIX &lt;br&gt;GURU UNIVERSE. ALL TIPS ARE &amp;quot;USE AT YOUR OWN RISK&amp;quot;. UGU  ADVISES THAT &lt;br&gt;ALL TIPS BE TESTED IN A NON-PRODUCTION DEVELOPMENT ENVIRONMENT FIRST.&lt;p&gt;Unix Guru Universe - &lt;a href="http://www.ugu.com"&gt;www.ugu.com&lt;/a&gt; - &lt;a href="mailto:tips@ugu.com"&gt;tips@ugu.com&lt;/a&gt; - Copyright 1994-2001&lt;br&gt;==========================================================================&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-9968511444533992";
google_ad_host = "pub-1556223355139109";
/* 728x90, created 3/23/10 */
google_ad_slot = "8218028202";
google_ad_width = 728;
google_ad_height = 90;
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8690484772340382874-2615716852335926575?l=unix-linux-tips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unix-linux-tips.blogspot.com/feeds/2615716852335926575/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/12/unix-tip-where-are-those-parentheses.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/2615716852335926575'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/2615716852335926575'/><link rel='alternate' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/12/unix-tip-where-are-those-parentheses.html' title='Unix Tip: WHERE ARE THOSE PARENTHESES?'/><author><name>aboen</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://4.bp.blogspot.com/_PNxtMYqpu08/SaIb5xrIbGI/AAAAAAAAAZQ/qB_0YHjo_Y4/S220/Idiot2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8690484772340382874.post-2875561349433363080</id><published>2011-11-30T01:42:00.001-08:00</published><updated>2011-11-30T01:42:54.998-08:00</updated><title type='text'>Unix Tip: GREP TEXT NOT BINARY</title><content type='html'>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;			      UNIX GURU UNIVERSE &lt;br&gt;			         UNIX HOT TIP&lt;p&gt;			Unix Tip 3582 - November 30, 2011&lt;p&gt;		    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;&lt;br&gt;GREP TEXT NOT BINARY&lt;p&gt;In some directories such as /etc you have a mix of file types.  &lt;br&gt;You may want to grep out a string from one of the files but &lt;br&gt;don&amp;#39;t want to worry about the binaries, data, etc.  To accomplish &lt;br&gt;this, searching only text files do this:&lt;p&gt;grep &amp;lt;string&amp;gt; `file * | egrep &amp;#39;script|text&amp;#39; | awk -F: &amp;#39;{print $1}&amp;#39;`&lt;p&gt;&lt;br&gt;This tip generously supported by: &lt;a href="mailto:Richard.place-eds@eds.com"&gt;Richard.place-eds@eds.com&lt;/a&gt;&lt;p&gt;&lt;p&gt;--------------------------------------------------------------------------&lt;br&gt;To Subscribe:    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.subscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.subscribe&lt;/a&gt;&lt;br&gt;To Unsubscribe:  &lt;a href="http://www.ugu.com/sui/ugu/show?tip.unsubscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.unsubscribe&lt;/a&gt;&lt;br&gt;To Submit A Tip: &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;==========================================================================&lt;br&gt;DISCLAIMER: All UNIX HOT TIPS ARE OWNED BY THE UNIX GURU UNIVERSE AND ARE&lt;br&gt;NOT TO BE SOLD, PRINTED OR USED WITHOUT THE WRITTEN CONSENT OF THE UNIX &lt;br&gt;GURU UNIVERSE. ALL TIPS ARE &amp;quot;USE AT YOUR OWN RISK&amp;quot;. UGU  ADVISES THAT &lt;br&gt;ALL TIPS BE TESTED IN A NON-PRODUCTION DEVELOPMENT ENVIRONMENT FIRST.&lt;p&gt;Unix Guru Universe - &lt;a href="http://www.ugu.com"&gt;www.ugu.com&lt;/a&gt; - &lt;a href="mailto:tips@ugu.com"&gt;tips@ugu.com&lt;/a&gt; - Copyright 1994-2001&lt;br&gt;==========================================================================&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-9968511444533992";
google_ad_host = "pub-1556223355139109";
/* 728x90, created 3/23/10 */
google_ad_slot = "8218028202";
google_ad_width = 728;
google_ad_height = 90;
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8690484772340382874-2875561349433363080?l=unix-linux-tips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unix-linux-tips.blogspot.com/feeds/2875561349433363080/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/11/unix-tip-grep-text-not-binary.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/2875561349433363080'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/2875561349433363080'/><link rel='alternate' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/11/unix-tip-grep-text-not-binary.html' title='Unix Tip: GREP TEXT NOT BINARY'/><author><name>aboen</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://4.bp.blogspot.com/_PNxtMYqpu08/SaIb5xrIbGI/AAAAAAAAAZQ/qB_0YHjo_Y4/S220/Idiot2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8690484772340382874.post-5310809639737338722</id><published>2011-11-29T01:42:00.001-08:00</published><updated>2011-11-29T01:42:57.484-08:00</updated><title type='text'>Unix Tip: GET THE HIDDEN FILES</title><content type='html'>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;			      UNIX GURU UNIVERSE &lt;br&gt;			         UNIX HOT TIP&lt;p&gt;			Unix Tip 3581 - November 29, 2011&lt;p&gt;		    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;&lt;br&gt;GET THE HIDDEN FILES&lt;p&gt;A safe way of grabbing all &amp;quot;hidden&amp;quot; files is to use &amp;#39;.??*&amp;#39;&lt;br&gt;rather than &amp;#39;.*&amp;#39; since this will only match 3 or more&lt;br&gt;characters.  Admittedly, this will miss any hidden files&lt;br&gt;that are only a single character after the ., but it&lt;br&gt;will always miss &amp;#39;.&amp;#39; &amp;amp; &amp;#39;..&amp;#39;, which is probably more&lt;br&gt;important...&lt;p&gt;This tip generously supported by: &lt;a href="mailto:leopard@midwinter.com"&gt;leopard@midwinter.com&lt;/a&gt;&lt;p&gt;&lt;p&gt;--------------------------------------------------------------------------&lt;br&gt;To Subscribe:    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.subscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.subscribe&lt;/a&gt;&lt;br&gt;To Unsubscribe:  &lt;a href="http://www.ugu.com/sui/ugu/show?tip.unsubscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.unsubscribe&lt;/a&gt;&lt;br&gt;To Submit A Tip: &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;==========================================================================&lt;br&gt;DISCLAIMER: All UNIX HOT TIPS ARE OWNED BY THE UNIX GURU UNIVERSE AND ARE&lt;br&gt;NOT TO BE SOLD, PRINTED OR USED WITHOUT THE WRITTEN CONSENT OF THE UNIX &lt;br&gt;GURU UNIVERSE. ALL TIPS ARE &amp;quot;USE AT YOUR OWN RISK&amp;quot;. UGU  ADVISES THAT &lt;br&gt;ALL TIPS BE TESTED IN A NON-PRODUCTION DEVELOPMENT ENVIRONMENT FIRST.&lt;p&gt;Unix Guru Universe - &lt;a href="http://www.ugu.com"&gt;www.ugu.com&lt;/a&gt; - &lt;a href="mailto:tips@ugu.com"&gt;tips@ugu.com&lt;/a&gt; - Copyright 1994-2001&lt;br&gt;==========================================================================&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-9968511444533992";
google_ad_host = "pub-1556223355139109";
/* 728x90, created 3/23/10 */
google_ad_slot = "8218028202";
google_ad_width = 728;
google_ad_height = 90;
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8690484772340382874-5310809639737338722?l=unix-linux-tips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unix-linux-tips.blogspot.com/feeds/5310809639737338722/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/11/unix-tip-get-hidden-files.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/5310809639737338722'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/5310809639737338722'/><link rel='alternate' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/11/unix-tip-get-hidden-files.html' title='Unix Tip: GET THE HIDDEN FILES'/><author><name>aboen</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://4.bp.blogspot.com/_PNxtMYqpu08/SaIb5xrIbGI/AAAAAAAAAZQ/qB_0YHjo_Y4/S220/Idiot2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8690484772340382874.post-3878814876725976761</id><published>2011-11-28T01:42:00.001-08:00</published><updated>2011-11-28T01:42:56.299-08:00</updated><title type='text'>Unix Tip: FINDING A STRING</title><content type='html'>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;			      UNIX GURU UNIVERSE &lt;br&gt;			         UNIX HOT TIP&lt;p&gt;			Unix Tip 3580 - November 28, 2011&lt;p&gt;		    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;&lt;br&gt;FINDING A STRING&lt;p&gt;How to find a string somewhere on the system.  Many times we are &lt;br&gt;called to search for a string, but we have no idea where it may &lt;br&gt;be lurking.  Judicious use of the find and grep commands will &lt;br&gt;make you a hero with your co-workers. &lt;p&gt;# find . -type f -exec grep &amp;quot;string or options&amp;quot; /dev/null {} \;&lt;p&gt;Normally using only:&lt;br&gt;# find . -type f -exec grep &amp;quot;string/options&amp;quot; {} \; &lt;p&gt;Produces the target string, but you will have no clue as to where &lt;br&gt;it is located, making this almost as frustrating as using windoze!  &lt;br&gt;Remember when grep&amp;#39;ing against multiple files the filename will be &lt;br&gt;listed before the match.&lt;p&gt;$ grep there *&lt;br&gt;foo:I found the target here&lt;br&gt;bar:You are there&lt;p&gt;In our find command we use /dev/null as a file to search against, since &lt;br&gt;we know the search will always fail if the string is found in &amp;quot;{}&amp;quot; there &lt;br&gt;filename is printed.  To borrow from a famous quote:&lt;br&gt;&amp;quot;Pretty tricky sis!&amp;quot;&lt;p&gt;This tip generously supported by: &lt;a href="mailto:james_b_horwath@glic.com"&gt;james_b_horwath@glic.com&lt;/a&gt;&lt;p&gt;&lt;br&gt;--------------------------------------------------------------------------&lt;br&gt;To Subscribe:    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.subscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.subscribe&lt;/a&gt;&lt;br&gt;To Unsubscribe:  &lt;a href="http://www.ugu.com/sui/ugu/show?tip.unsubscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.unsubscribe&lt;/a&gt;&lt;br&gt;To Submit A Tip: &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;==========================================================================&lt;br&gt;DISCLAIMER: All UNIX HOT TIPS ARE OWNED BY THE UNIX GURU UNIVERSE AND ARE&lt;br&gt;NOT TO BE SOLD, PRINTED OR USED WITHOUT THE WRITTEN CONSENT OF THE UNIX &lt;br&gt;GURU UNIVERSE. ALL TIPS ARE &amp;quot;USE AT YOUR OWN RISK&amp;quot;. UGU  ADVISES THAT &lt;br&gt;ALL TIPS BE TESTED IN A NON-PRODUCTION DEVELOPMENT ENVIRONMENT FIRST.&lt;p&gt;Unix Guru Universe - &lt;a href="http://www.ugu.com"&gt;www.ugu.com&lt;/a&gt; - &lt;a href="mailto:tips@ugu.com"&gt;tips@ugu.com&lt;/a&gt; - Copyright 1994-2001&lt;br&gt;==========================================================================&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-9968511444533992";
google_ad_host = "pub-1556223355139109";
/* 728x90, created 3/23/10 */
google_ad_slot = "8218028202";
google_ad_width = 728;
google_ad_height = 90;
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8690484772340382874-3878814876725976761?l=unix-linux-tips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unix-linux-tips.blogspot.com/feeds/3878814876725976761/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/11/unix-tip-finding-string.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/3878814876725976761'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/3878814876725976761'/><link rel='alternate' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/11/unix-tip-finding-string.html' title='Unix Tip: FINDING A STRING'/><author><name>aboen</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://4.bp.blogspot.com/_PNxtMYqpu08/SaIb5xrIbGI/AAAAAAAAAZQ/qB_0YHjo_Y4/S220/Idiot2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8690484772340382874.post-2883772424947656428</id><published>2011-11-27T01:42:00.001-08:00</published><updated>2011-11-27T01:42:56.047-08:00</updated><title type='text'>Unix Tip: RANDOM LINES FROM A FILE</title><content type='html'>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;			      UNIX GURU UNIVERSE &lt;br&gt;			         UNIX HOT TIP&lt;p&gt;			Unix Tip 3579 - November 27, 2011&lt;p&gt;		    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;&lt;br&gt;RANDOM LINES FROM A FILE&lt;p&gt;A easy way to retrieve random lines from a text file:&lt;p&gt;perl -e &amp;#39;$count = 10; @line = &amp;lt;&amp;gt;; for (1..$count) { print $line[int rand @line] }&amp;#39;&lt;p&gt;example:&lt;br&gt;% cat /etc/passwd | perl -e &amp;#39;$count = 10; @line = &amp;lt;&amp;gt;; for (1..$count) { print $line[int rand @line] }&amp;#39;&lt;p&gt;This tip generously supported by: &lt;a href="mailto:abend@110.net"&gt;abend@110.net&lt;/a&gt;&lt;p&gt;&lt;p&gt;&lt;br&gt;--------------------------------------------------------------------------&lt;br&gt;To Subscribe:    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.subscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.subscribe&lt;/a&gt;&lt;br&gt;To Unsubscribe:  &lt;a href="http://www.ugu.com/sui/ugu/show?tip.unsubscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.unsubscribe&lt;/a&gt;&lt;br&gt;To Submit A Tip: &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;==========================================================================&lt;br&gt;DISCLAIMER: All UNIX HOT TIPS ARE OWNED BY THE UNIX GURU UNIVERSE AND ARE&lt;br&gt;NOT TO BE SOLD, PRINTED OR USED WITHOUT THE WRITTEN CONSENT OF THE UNIX &lt;br&gt;GURU UNIVERSE. ALL TIPS ARE &amp;quot;USE AT YOUR OWN RISK&amp;quot;. UGU  ADVISES THAT &lt;br&gt;ALL TIPS BE TESTED IN A NON-PRODUCTION DEVELOPMENT ENVIRONMENT FIRST.&lt;p&gt;Unix Guru Universe - &lt;a href="http://www.ugu.com"&gt;www.ugu.com&lt;/a&gt; - &lt;a href="mailto:tips@ugu.com"&gt;tips@ugu.com&lt;/a&gt; - Copyright 1994-2001&lt;br&gt;==========================================================================&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-9968511444533992";
google_ad_host = "pub-1556223355139109";
/* 728x90, created 3/23/10 */
google_ad_slot = "8218028202";
google_ad_width = 728;
google_ad_height = 90;
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8690484772340382874-2883772424947656428?l=unix-linux-tips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unix-linux-tips.blogspot.com/feeds/2883772424947656428/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/11/unix-tip-random-lines-from-file.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/2883772424947656428'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/2883772424947656428'/><link rel='alternate' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/11/unix-tip-random-lines-from-file.html' title='Unix Tip: RANDOM LINES FROM A FILE'/><author><name>aboen</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://4.bp.blogspot.com/_PNxtMYqpu08/SaIb5xrIbGI/AAAAAAAAAZQ/qB_0YHjo_Y4/S220/Idiot2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8690484772340382874.post-6884485706064717676</id><published>2011-11-26T01:42:00.000-08:00</published><updated>2011-11-26T01:43:01.418-08:00</updated><title type='text'>Unix Tip: EXTRACT THAT LAST FIELD</title><content type='html'>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;			      UNIX GURU UNIVERSE &lt;br&gt;			         UNIX HOT TIP&lt;p&gt;			Unix Tip 3578 - November 26, 2011&lt;p&gt;		    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;&lt;br&gt;EXTRACT THAT LAST FIELD&lt;p&gt;You can use &amp;#39;cut&amp;#39; to extract the last field of a line if you know&lt;br&gt;how many fields there are, eg:&lt;p&gt;field=`cut -d: -f8 file`&lt;p&gt;But if you don&amp;#39;t know the maximum number of fields or the number&lt;br&gt;of fields per line are not consistent, awk can come to the rescue.&lt;br&gt;awk has the inbuilt variable NF for the number of fields.  By using&lt;br&gt;this variable we can use it to extract the last field by using:&lt;p&gt;field=`awk -F: &amp;#39;{print $NF}&amp;#39;`&lt;p&gt;or you can use calculations to retrieve any field relative to the last field.  &lt;br&gt;For example to retrieve the second last field, use:&lt;p&gt;field=`awk -F: &amp;#39;{print $(NF-1)}&amp;#39;`&lt;p&gt;&lt;br&gt;This tip generously supported by: &lt;a href="mailto:peters@ginini.com.au"&gt;peters@ginini.com.au&lt;/a&gt;&lt;p&gt;&lt;p&gt;&lt;br&gt;--------------------------------------------------------------------------&lt;br&gt;To Subscribe:    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.subscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.subscribe&lt;/a&gt;&lt;br&gt;To Unsubscribe:  &lt;a href="http://www.ugu.com/sui/ugu/show?tip.unsubscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.unsubscribe&lt;/a&gt;&lt;br&gt;To Submit A Tip: &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;==========================================================================&lt;br&gt;DISCLAIMER: All UNIX HOT TIPS ARE OWNED BY THE UNIX GURU UNIVERSE AND ARE&lt;br&gt;NOT TO BE SOLD, PRINTED OR USED WITHOUT THE WRITTEN CONSENT OF THE UNIX &lt;br&gt;GURU UNIVERSE. ALL TIPS ARE &amp;quot;USE AT YOUR OWN RISK&amp;quot;. UGU  ADVISES THAT &lt;br&gt;ALL TIPS BE TESTED IN A NON-PRODUCTION DEVELOPMENT ENVIRONMENT FIRST.&lt;p&gt;Unix Guru Universe - &lt;a href="http://www.ugu.com"&gt;www.ugu.com&lt;/a&gt; - &lt;a href="mailto:tips@ugu.com"&gt;tips@ugu.com&lt;/a&gt; - Copyright 1994-2001&lt;br&gt;==========================================================================&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-9968511444533992";
google_ad_host = "pub-1556223355139109";
/* 728x90, created 3/23/10 */
google_ad_slot = "8218028202";
google_ad_width = 728;
google_ad_height = 90;
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8690484772340382874-6884485706064717676?l=unix-linux-tips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unix-linux-tips.blogspot.com/feeds/6884485706064717676/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/11/unix-tip-extract-that-last-field.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/6884485706064717676'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/6884485706064717676'/><link rel='alternate' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/11/unix-tip-extract-that-last-field.html' title='Unix Tip: EXTRACT THAT LAST FIELD'/><author><name>aboen</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://4.bp.blogspot.com/_PNxtMYqpu08/SaIb5xrIbGI/AAAAAAAAAZQ/qB_0YHjo_Y4/S220/Idiot2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8690484772340382874.post-8008273570764721150</id><published>2011-11-25T01:42:00.001-08:00</published><updated>2011-11-25T01:42:58.446-08:00</updated><title type='text'>Unix Tip: FULL OF FILESYSTEM INODES</title><content type='html'>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;			      UNIX GURU UNIVERSE &lt;br&gt;			         UNIX HOT TIP&lt;p&gt;			Unix Tip 3577 - November 25, 2011&lt;p&gt;		    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;&lt;br&gt;FULL OF FILESYSTEM INODES&lt;p&gt;We recently had a problem where a file system had 100% inode usage.&lt;br&gt;Unfortunately there isn&amp;#39;t an easy way to search for directories with &lt;br&gt;a lot of files in them (1 file = 1 inode). And if the files are small, &lt;br&gt;you can&amp;#39;t rely on du to help you out.&lt;p&gt;Here is a find command that will print all the directories in the &lt;br&gt;current filesystem, with the number of files (inodes) in that directory.&lt;p&gt;find . -xdev -type d -exec /bin/echo -n {} \; -exec sh -c &amp;quot;ls {} | wc -l&amp;quot; \;&lt;p&gt;This tip generously supported by: &lt;a href="mailto:rickb@cmhcsys.com"&gt;rickb@cmhcsys.com&lt;/a&gt;&lt;p&gt;&lt;p&gt;--------------------------------------------------------------------------&lt;br&gt;To Subscribe:    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.subscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.subscribe&lt;/a&gt;&lt;br&gt;To Unsubscribe:  &lt;a href="http://www.ugu.com/sui/ugu/show?tip.unsubscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.unsubscribe&lt;/a&gt;&lt;br&gt;To Submit A Tip: &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;==========================================================================&lt;br&gt;DISCLAIMER: All UNIX HOT TIPS ARE OWNED BY THE UNIX GURU UNIVERSE AND ARE&lt;br&gt;NOT TO BE SOLD, PRINTED OR USED WITHOUT THE WRITTEN CONSENT OF THE UNIX &lt;br&gt;GURU UNIVERSE. ALL TIPS ARE &amp;quot;USE AT YOUR OWN RISK&amp;quot;. UGU  ADVISES THAT &lt;br&gt;ALL TIPS BE TESTED IN A NON-PRODUCTION DEVELOPMENT ENVIRONMENT FIRST.&lt;p&gt;Unix Guru Universe - &lt;a href="http://www.ugu.com"&gt;www.ugu.com&lt;/a&gt; - &lt;a href="mailto:tips@ugu.com"&gt;tips@ugu.com&lt;/a&gt; - Copyright 1994-2001&lt;br&gt;==========================================================================&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-9968511444533992";
google_ad_host = "pub-1556223355139109";
/* 728x90, created 3/23/10 */
google_ad_slot = "8218028202";
google_ad_width = 728;
google_ad_height = 90;
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8690484772340382874-8008273570764721150?l=unix-linux-tips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unix-linux-tips.blogspot.com/feeds/8008273570764721150/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/11/unix-tip-full-of-filesystem-inodes.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/8008273570764721150'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/8008273570764721150'/><link rel='alternate' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/11/unix-tip-full-of-filesystem-inodes.html' title='Unix Tip: FULL OF FILESYSTEM INODES'/><author><name>aboen</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://4.bp.blogspot.com/_PNxtMYqpu08/SaIb5xrIbGI/AAAAAAAAAZQ/qB_0YHjo_Y4/S220/Idiot2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8690484772340382874.post-177883671096405380</id><published>2011-11-24T01:42:00.001-08:00</published><updated>2011-11-24T01:42:58.328-08:00</updated><title type='text'>Unix Tip: FORGET THE CRONTAB MAN</title><content type='html'>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;			      UNIX GURU UNIVERSE &lt;br&gt;			         UNIX HOT TIP&lt;p&gt;			Unix Tip 3576 - November 24, 2011&lt;p&gt;		    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;&lt;br&gt;FORGET THE CRONTAB MAN&lt;p&gt;For some reason many admins forget the field order of the&lt;br&gt;crontab file and alway reference the man pages over-and-over.&lt;br&gt;Make your life easy. Just put the field definitions in&lt;br&gt;your crontab file and comment (#) the lines out so the&lt;br&gt;crontab file ignores it.&lt;p&gt;#minute (0-59),&lt;br&gt;#|      hour (0-23),&lt;br&gt;#|      |       day of the month (1-31),&lt;br&gt;#|      |       |       month of the year (1-12),&lt;br&gt;#|      |       |       |       day of the week (0-6 with 0=Sunday).&lt;br&gt;#|      |       |       |       |       commands&lt;br&gt;0       2       *       *       0,4     /etc/cron.d/logchecker&lt;p&gt;&lt;p&gt;&lt;p&gt;--------------------------------------------------------------------------&lt;br&gt;To Subscribe:    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.subscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.subscribe&lt;/a&gt;&lt;br&gt;To Unsubscribe:  &lt;a href="http://www.ugu.com/sui/ugu/show?tip.unsubscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.unsubscribe&lt;/a&gt;&lt;br&gt;To Submit A Tip: &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;==========================================================================&lt;br&gt;DISCLAIMER: All UNIX HOT TIPS ARE OWNED BY THE UNIX GURU UNIVERSE AND ARE&lt;br&gt;NOT TO BE SOLD, PRINTED OR USED WITHOUT THE WRITTEN CONSENT OF THE UNIX &lt;br&gt;GURU UNIVERSE. ALL TIPS ARE &amp;quot;USE AT YOUR OWN RISK&amp;quot;. UGU  ADVISES THAT &lt;br&gt;ALL TIPS BE TESTED IN A NON-PRODUCTION DEVELOPMENT ENVIRONMENT FIRST.&lt;p&gt;Unix Guru Universe - &lt;a href="http://www.ugu.com"&gt;www.ugu.com&lt;/a&gt; - &lt;a href="mailto:tips@ugu.com"&gt;tips@ugu.com&lt;/a&gt; - Copyright 1994-2001&lt;br&gt;==========================================================================&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-9968511444533992";
google_ad_host = "pub-1556223355139109";
/* 728x90, created 3/23/10 */
google_ad_slot = "8218028202";
google_ad_width = 728;
google_ad_height = 90;
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8690484772340382874-177883671096405380?l=unix-linux-tips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unix-linux-tips.blogspot.com/feeds/177883671096405380/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/11/unix-tip-forget-crontab-man.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/177883671096405380'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/177883671096405380'/><link rel='alternate' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/11/unix-tip-forget-crontab-man.html' title='Unix Tip: FORGET THE CRONTAB MAN'/><author><name>aboen</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://4.bp.blogspot.com/_PNxtMYqpu08/SaIb5xrIbGI/AAAAAAAAAZQ/qB_0YHjo_Y4/S220/Idiot2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8690484772340382874.post-5550786742760277429</id><published>2011-11-23T01:42:00.001-08:00</published><updated>2011-11-23T01:42:57.861-08:00</updated><title type='text'>Unix Tip: POWER OF BACKQUOTES</title><content type='html'>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;			      UNIX GURU UNIVERSE &lt;br&gt;			         UNIX HOT TIP&lt;p&gt;			Unix Tip 3575 - November 23, 2011&lt;p&gt;		    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;&lt;br&gt;POWER OF BACKQUOTES&lt;p&gt;Backquotes are the most powerful things in Unix. More than one &lt;br&gt;Unix commands can be run simultaneously on the prompt.&lt;br&gt;In csh,&lt;p&gt;% find . -name &amp;quot;*.txt&amp;quot; -print&lt;p&gt;gives the path &amp;amp; names of the files with extension &amp;quot;.txt&amp;quot; in &lt;br&gt;current directory and its subdirectories. If you want to open&lt;br&gt;these files in vi together then&lt;p&gt;% vi `find . -name &amp;quot;*.txt&amp;quot; -print`&lt;p&gt;Similarly,&lt;p&gt;% find . -name &amp;quot;*.txt&amp;quot; -print&lt;br&gt;&amp;lt;listing of all txt files. in current directory/sub-dirs&amp;gt;&lt;br&gt;% vi `!!`&lt;p&gt;this will open all those files in vi listed by find command. &lt;p&gt;&lt;br&gt;This tip generously supported by: &lt;a href="mailto:dhruvm@duettech.com"&gt;dhruvm@duettech.com&lt;/a&gt;&lt;p&gt;&lt;p&gt;--------------------------------------------------------------------------&lt;br&gt;To Subscribe:    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.subscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.subscribe&lt;/a&gt;&lt;br&gt;To Unsubscribe:  &lt;a href="http://www.ugu.com/sui/ugu/show?tip.unsubscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.unsubscribe&lt;/a&gt;&lt;br&gt;To Submit A Tip: &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;==========================================================================&lt;br&gt;DISCLAIMER: All UNIX HOT TIPS ARE OWNED BY THE UNIX GURU UNIVERSE AND ARE&lt;br&gt;NOT TO BE SOLD, PRINTED OR USED WITHOUT THE WRITTEN CONSENT OF THE UNIX &lt;br&gt;GURU UNIVERSE. ALL TIPS ARE &amp;quot;USE AT YOUR OWN RISK&amp;quot;. UGU  ADVISES THAT &lt;br&gt;ALL TIPS BE TESTED IN A NON-PRODUCTION DEVELOPMENT ENVIRONMENT FIRST.&lt;p&gt;Unix Guru Universe - &lt;a href="http://www.ugu.com"&gt;www.ugu.com&lt;/a&gt; - &lt;a href="mailto:tips@ugu.com"&gt;tips@ugu.com&lt;/a&gt; - Copyright 1994-2001&lt;br&gt;==========================================================================&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-9968511444533992";
google_ad_host = "pub-1556223355139109";
/* 728x90, created 3/23/10 */
google_ad_slot = "8218028202";
google_ad_width = 728;
google_ad_height = 90;
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8690484772340382874-5550786742760277429?l=unix-linux-tips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unix-linux-tips.blogspot.com/feeds/5550786742760277429/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/11/unix-tip-power-of-backquotes.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/5550786742760277429'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/5550786742760277429'/><link rel='alternate' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/11/unix-tip-power-of-backquotes.html' title='Unix Tip: POWER OF BACKQUOTES'/><author><name>aboen</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://4.bp.blogspot.com/_PNxtMYqpu08/SaIb5xrIbGI/AAAAAAAAAZQ/qB_0YHjo_Y4/S220/Idiot2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8690484772340382874.post-1273799397258400229</id><published>2011-11-22T01:42:00.001-08:00</published><updated>2011-11-22T01:42:56.995-08:00</updated><title type='text'>Unix Tip: PING THE HOST TABLE</title><content type='html'>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;			      UNIX GURU UNIVERSE &lt;br&gt;			         UNIX HOT TIP&lt;p&gt;			Unix Tip 3574 - November 22, 2011&lt;p&gt;		    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;&lt;br&gt;PING THE HOST TABLE&lt;p&gt;Here is a quick way to ping all the hosts in your host table. &lt;br&gt;NOTE: Just make sure that there are no blank lines in it, and&lt;br&gt;verify the ping command on your system exist after one ping. Your&lt;br&gt;mileage may differ slightly.&lt;p&gt;$ grep -v &amp;quot;#&amp;quot; /etc/hosts | awk &amp;#39;{print $1}&amp;#39; | while read host&lt;br&gt;&amp;gt; do&lt;br&gt;&amp;gt; ping -c 1 $host&lt;br&gt;&amp;gt; done      &lt;p&gt;Or script it:&lt;p&gt;#!/bin/sh&lt;br&gt;grep -v &amp;quot;#&amp;quot; /etc/hosts | awk &amp;#39;{print $1}&amp;#39; | while read host&lt;br&gt;do&lt;br&gt;  ping -c 1 $host&lt;br&gt;done      &lt;p&gt;&lt;p&gt;&lt;br&gt;--------------------------------------------------------------------------&lt;br&gt;To Subscribe:    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.subscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.subscribe&lt;/a&gt;&lt;br&gt;To Unsubscribe:  &lt;a href="http://www.ugu.com/sui/ugu/show?tip.unsubscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.unsubscribe&lt;/a&gt;&lt;br&gt;To Submit A Tip: &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;==========================================================================&lt;br&gt;DISCLAIMER: All UNIX HOT TIPS ARE OWNED BY THE UNIX GURU UNIVERSE AND ARE&lt;br&gt;NOT TO BE SOLD, PRINTED OR USED WITHOUT THE WRITTEN CONSENT OF THE UNIX &lt;br&gt;GURU UNIVERSE. ALL TIPS ARE &amp;quot;USE AT YOUR OWN RISK&amp;quot;. UGU  ADVISES THAT &lt;br&gt;ALL TIPS BE TESTED IN A NON-PRODUCTION DEVELOPMENT ENVIRONMENT FIRST.&lt;p&gt;Unix Guru Universe - &lt;a href="http://www.ugu.com"&gt;www.ugu.com&lt;/a&gt; - &lt;a href="mailto:tips@ugu.com"&gt;tips@ugu.com&lt;/a&gt; - Copyright 1994-2001&lt;br&gt;==========================================================================&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-9968511444533992";
google_ad_host = "pub-1556223355139109";
/* 728x90, created 3/23/10 */
google_ad_slot = "8218028202";
google_ad_width = 728;
google_ad_height = 90;
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8690484772340382874-1273799397258400229?l=unix-linux-tips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unix-linux-tips.blogspot.com/feeds/1273799397258400229/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/11/unix-tip-ping-host-table.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/1273799397258400229'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/1273799397258400229'/><link rel='alternate' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/11/unix-tip-ping-host-table.html' title='Unix Tip: PING THE HOST TABLE'/><author><name>aboen</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://4.bp.blogspot.com/_PNxtMYqpu08/SaIb5xrIbGI/AAAAAAAAAZQ/qB_0YHjo_Y4/S220/Idiot2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8690484772340382874.post-5423480624113223908</id><published>2011-11-21T01:42:00.001-08:00</published><updated>2011-11-21T01:42:57.243-08:00</updated><title type='text'>Unix Tip: A SHAMELESS PLUG</title><content type='html'>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;			      UNIX GURU UNIVERSE &lt;br&gt;			         UNIX HOT TIP&lt;p&gt;			Unix Tip 3573 - November 21, 2011&lt;p&gt;		    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;&lt;br&gt;A SHAMELESS PLUG&lt;p&gt;The Best Tip I can give you right now is to pick up a copy of &lt;br&gt;UNIX HINTS AND HACKS By the Creator of UGU. &lt;p&gt;It is available at Barnes &amp;amp; Nobles, Borders, and Technical book stores.&lt;p&gt;Some of the past tips from UGU can also be seen in the book.&lt;p&gt;&lt;a href="http://www.amazon.com/exec/obidos/ASIN/0789719274/unixguruuniverse"&gt;http://www.amazon.com/exec/obidos/ASIN/0789719274/unixguruuniverse&lt;/a&gt;&lt;p&gt;Here are what some UGU&amp;#39;ers are saying about the book:&lt;br&gt;-----------------------------------------------------&lt;br&gt;&lt;a href="mailto:mikec@sficorp.com"&gt;mikec@sficorp.com&lt;/a&gt; from Green Bay, WI , August 21, 1999   &lt;br&gt;FANTASTIC  - FIVE STARS *****&lt;br&gt;This is a great book for those looking for quick solutions &lt;br&gt;to common real work scenarios. If you are responsible for &lt;br&gt;Unix (yes including Linux) systems this is one book you have &lt;br&gt;to have. For coding solutions the book usually shows both shell &lt;br&gt;script and perl examples for the same problem&lt;p&gt;&lt;a href="mailto:jbaduria@hotmail.com"&gt;jbaduria@hotmail.com&lt;/a&gt; from San Mateo, CA, USA , August 19, 1999   &lt;br&gt;GREAT BOOK!!  - FIVE STARS *****&lt;br&gt;Finally a book that deals with the real things that most UNIX &lt;br&gt;system administrators face. It saves you the trouble of finding &lt;br&gt;out things only after you face it. You could save yourself &lt;br&gt;a lot of time solving problems that could have been avoided &lt;br&gt;by reading this book. With the price nothing beats it. Not even&lt;br&gt;those $30+ books.&lt;p&gt;&lt;a href="mailto:link2000@n-link.com"&gt;link2000@n-link.com&lt;/a&gt; from Tx, Usa , June 25, 1999  &lt;br&gt;GREAT BOOK - FIVE STARS *****&lt;br&gt;This is a great book. It has many tricks that are geared toward real &lt;br&gt;world experience that are not covered in any other book I have seen. &lt;br&gt;I especially liked the section geared toward getting your first &lt;br&gt;job as an system admin. It is one book worth buying. For all kinds &lt;br&gt;of information for less than 15 dollars how could you go wrong. &lt;p&gt;&lt;br&gt;--------------------------------------------------------------------------&lt;br&gt;To Subscribe:    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.subscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.subscribe&lt;/a&gt;&lt;br&gt;To Unsubscribe:  &lt;a href="http://www.ugu.com/sui/ugu/show?tip.unsubscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.unsubscribe&lt;/a&gt;&lt;br&gt;To Submit A Tip: &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;==========================================================================&lt;br&gt;DISCLAIMER: All UNIX HOT TIPS ARE OWNED BY THE UNIX GURU UNIVERSE AND ARE&lt;br&gt;NOT TO BE SOLD, PRINTED OR USED WITHOUT THE WRITTEN CONSENT OF THE UNIX &lt;br&gt;GURU UNIVERSE. ALL TIPS ARE &amp;quot;USE AT YOUR OWN RISK&amp;quot;. UGU  ADVISES THAT &lt;br&gt;ALL TIPS BE TESTED IN A NON-PRODUCTION DEVELOPMENT ENVIRONMENT FIRST.&lt;p&gt;Unix Guru Universe - &lt;a href="http://www.ugu.com"&gt;www.ugu.com&lt;/a&gt; - &lt;a href="mailto:tips@ugu.com"&gt;tips@ugu.com&lt;/a&gt; - Copyright 1994-2001&lt;br&gt;==========================================================================&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-9968511444533992";
google_ad_host = "pub-1556223355139109";
/* 728x90, created 3/23/10 */
google_ad_slot = "8218028202";
google_ad_width = 728;
google_ad_height = 90;
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8690484772340382874-5423480624113223908?l=unix-linux-tips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unix-linux-tips.blogspot.com/feeds/5423480624113223908/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/11/unix-tip-shameless-plug.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/5423480624113223908'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/5423480624113223908'/><link rel='alternate' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/11/unix-tip-shameless-plug.html' title='Unix Tip: A SHAMELESS PLUG'/><author><name>aboen</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://4.bp.blogspot.com/_PNxtMYqpu08/SaIb5xrIbGI/AAAAAAAAAZQ/qB_0YHjo_Y4/S220/Idiot2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8690484772340382874.post-5327450875526042975</id><published>2011-11-20T01:42:00.001-08:00</published><updated>2011-11-20T01:43:00.051-08:00</updated><title type='text'>Unix Tip: REPETITIVE TASKS WITH XARGS</title><content type='html'>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;			      UNIX GURU UNIVERSE &lt;br&gt;			         UNIX HOT TIP&lt;p&gt;			Unix Tip 3572 - November 20, 2011&lt;p&gt;		    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;&lt;br&gt;REPETITIVE TASKS WITH XARGS&lt;p&gt;Save yourself a lot of typing when you have to perform repetitive&lt;br&gt;commands on a list of files.  Put the list of files in a text file&lt;br&gt;with one file per line ie: find . -name version.C &amp;gt; filename&lt;br&gt;Then have xargs build a command line for each file in the list as &lt;br&gt;follows:&lt;p&gt;cat filename |xargs -n 1 cp anotherfile&lt;p&gt;This will copy anotherfile over all the files listed in&lt;br&gt;filename one at a time until the end of filename is reached. &lt;p&gt;&lt;br&gt;--------------------------------------------------------------------------&lt;br&gt;To Subscribe:    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.subscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.subscribe&lt;/a&gt;&lt;br&gt;To Unsubscribe:  &lt;a href="http://www.ugu.com/sui/ugu/show?tip.unsubscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.unsubscribe&lt;/a&gt;&lt;br&gt;To Submit A Tip: &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;==========================================================================&lt;br&gt;DISCLAIMER: All UNIX HOT TIPS ARE OWNED BY THE UNIX GURU UNIVERSE AND ARE&lt;br&gt;NOT TO BE SOLD, PRINTED OR USED WITHOUT THE WRITTEN CONSENT OF THE UNIX &lt;br&gt;GURU UNIVERSE. ALL TIPS ARE &amp;quot;USE AT YOUR OWN RISK&amp;quot;. UGU  ADVISES THAT &lt;br&gt;ALL TIPS BE TESTED IN A NON-PRODUCTION DEVELOPMENT ENVIRONMENT FIRST.&lt;p&gt;Unix Guru Universe - &lt;a href="http://www.ugu.com"&gt;www.ugu.com&lt;/a&gt; - &lt;a href="mailto:tips@ugu.com"&gt;tips@ugu.com&lt;/a&gt; - Copyright 1994-2001&lt;br&gt;==========================================================================&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-9968511444533992";
google_ad_host = "pub-1556223355139109";
/* 728x90, created 3/23/10 */
google_ad_slot = "8218028202";
google_ad_width = 728;
google_ad_height = 90;
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8690484772340382874-5327450875526042975?l=unix-linux-tips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unix-linux-tips.blogspot.com/feeds/5327450875526042975/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/11/unix-tip-repetitive-tasks-with-xargs.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/5327450875526042975'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/5327450875526042975'/><link rel='alternate' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/11/unix-tip-repetitive-tasks-with-xargs.html' title='Unix Tip: REPETITIVE TASKS WITH XARGS'/><author><name>aboen</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://4.bp.blogspot.com/_PNxtMYqpu08/SaIb5xrIbGI/AAAAAAAAAZQ/qB_0YHjo_Y4/S220/Idiot2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8690484772340382874.post-2672041844978705754</id><published>2011-11-19T01:42:00.001-08:00</published><updated>2011-11-19T01:42:58.802-08:00</updated><title type='text'>Unix Tip: Suppose we want to check whether the web server is running or</title><content type='html'>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;			      UNIX GURU UNIVERSE &lt;br&gt;			         UNIX HOT TIP&lt;p&gt;			Unix Tip 3571 - November 19, 2011&lt;p&gt;		    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;&lt;br&gt;Suppose we want to check whether the web server is running or &lt;br&gt;not, but we don&amp;#39;t have any browsers ( lynx, IE, Netscape ...),&lt;br&gt;then there is a simple way of doing that. Just telnet to that &lt;br&gt;machine on the http port ( port no 80 in general).&lt;p&gt;% telnet &amp;lt;ip addr&amp;gt; &amp;lt;port no&amp;gt;    &lt;p&gt;And then, say &amp;quot;get /&amp;quot; (without quotes). If the webserver is running, &lt;br&gt;it displays the HTML script of the homepage or basic info and closes the&lt;br&gt;connection to the remote host.&lt;p&gt;% telnet &lt;a href="http://yahoo.com"&gt;yahoo.com&lt;/a&gt; 80&lt;br&gt;Trying 204.71.200.245...&lt;br&gt;Connected to &lt;a href="http://yahoo.com"&gt;yahoo.com&lt;/a&gt;.&lt;br&gt;Escape character is &amp;#39;^]&amp;#39;.&lt;br&gt;get /&lt;br&gt;HTTP/1.0 302 RD&lt;br&gt;Location: &lt;a href="http://www.yahoo.com/"&gt;http://www.yahoo.com/&lt;/a&gt;&lt;p&gt;Connection closed by foreign host.&lt;p&gt;&lt;p&gt;--------------------------------------------------------------------------&lt;br&gt;To Subscribe:    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.subscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.subscribe&lt;/a&gt;&lt;br&gt;To Unsubscribe:  &lt;a href="http://www.ugu.com/sui/ugu/show?tip.unsubscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.unsubscribe&lt;/a&gt;&lt;br&gt;To Submit A Tip: &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;==========================================================================&lt;br&gt;DISCLAIMER: All UNIX HOT TIPS ARE OWNED BY THE UNIX GURU UNIVERSE AND ARE&lt;br&gt;NOT TO BE SOLD, PRINTED OR USED WITHOUT THE WRITTEN CONSENT OF THE UNIX &lt;br&gt;GURU UNIVERSE. ALL TIPS ARE &amp;quot;USE AT YOUR OWN RISK&amp;quot;. UGU  ADVISES THAT &lt;br&gt;ALL TIPS BE TESTED IN A NON-PRODUCTION DEVELOPMENT ENVIRONMENT FIRST.&lt;p&gt;Unix Guru Universe - &lt;a href="http://www.ugu.com"&gt;www.ugu.com&lt;/a&gt; - &lt;a href="mailto:tips@ugu.com"&gt;tips@ugu.com&lt;/a&gt; - Copyright 1994-2001&lt;br&gt;==========================================================================&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-9968511444533992";
google_ad_host = "pub-1556223355139109";
/* 728x90, created 3/23/10 */
google_ad_slot = "8218028202";
google_ad_width = 728;
google_ad_height = 90;
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8690484772340382874-2672041844978705754?l=unix-linux-tips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unix-linux-tips.blogspot.com/feeds/2672041844978705754/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/11/unix-tip-suppose-we-want-to-check.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/2672041844978705754'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/2672041844978705754'/><link rel='alternate' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/11/unix-tip-suppose-we-want-to-check.html' title='Unix Tip: Suppose we want to check whether the web server is running or'/><author><name>aboen</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://4.bp.blogspot.com/_PNxtMYqpu08/SaIb5xrIbGI/AAAAAAAAAZQ/qB_0YHjo_Y4/S220/Idiot2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8690484772340382874.post-3288615666805043770</id><published>2011-11-18T01:42:00.000-08:00</published><updated>2011-11-18T01:43:00.358-08:00</updated><title type='text'>Unix Tip: CTRL-D ANOTHER USE</title><content type='html'>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;			      UNIX GURU UNIVERSE &lt;br&gt;			         UNIX HOT TIP&lt;p&gt;			Unix Tip 3570 - November 18, 2011&lt;p&gt;		    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;&lt;br&gt;CTRL-D ANOTHER USE&lt;p&gt;Many Unix Admins use the C shell as their interactive shell.&lt;br&gt;An often used feature of Csh is file completion - initiated &lt;br&gt;with &amp;#39;set filec&amp;#39;. It allows the Csh user to type in partial &lt;br&gt;file names, and then press escape to get them completed where &lt;br&gt;possible. A little known side effect of this is that &lt;br&gt;Control-D (^D) will now generate file listings in the middle of &lt;br&gt;command lines.&lt;p&gt;Example 1: (where @ is a space)&lt;br&gt;host &amp;gt; @^D&lt;br&gt;Lists the current directory&lt;p&gt;Example 2:&lt;br&gt;host &amp;gt;ln -s /usr/^D&lt;br&gt;Lists the /usr directory&lt;p&gt;host &amp;gt;tar cvf /dev/nrtape /usr/m^D&lt;br&gt;Lists all m* files in the /usr directory&lt;p&gt;In each case, after the listing, you get a new command line and are &lt;br&gt;placed at the last point of edit.&lt;p&gt;Very handy if you you know what you wanted to do but forgot what you &lt;br&gt;wanted to do it with!&lt;p&gt;&lt;br&gt;This tip generously supported by: &lt;a href="mailto:mikal.dunn@halliburton.com"&gt;mikal.dunn@halliburton.com&lt;/a&gt;&lt;p&gt;&lt;p&gt;&lt;br&gt;--------------------------------------------------------------------------&lt;br&gt;To Subscribe:    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.subscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.subscribe&lt;/a&gt;&lt;br&gt;To Unsubscribe:  &lt;a href="http://www.ugu.com/sui/ugu/show?tip.unsubscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.unsubscribe&lt;/a&gt;&lt;br&gt;To Submit A Tip: &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;==========================================================================&lt;br&gt;DISCLAIMER: All UNIX HOT TIPS ARE OWNED BY THE UNIX GURU UNIVERSE AND ARE&lt;br&gt;NOT TO BE SOLD, PRINTED OR USED WITHOUT THE WRITTEN CONSENT OF THE UNIX &lt;br&gt;GURU UNIVERSE. ALL TIPS ARE &amp;quot;USE AT YOUR OWN RISK&amp;quot;. UGU  ADVISES THAT &lt;br&gt;ALL TIPS BE TESTED IN A NON-PRODUCTION DEVELOPMENT ENVIRONMENT FIRST.&lt;p&gt;Unix Guru Universe - &lt;a href="http://www.ugu.com"&gt;www.ugu.com&lt;/a&gt; - &lt;a href="mailto:tips@ugu.com"&gt;tips@ugu.com&lt;/a&gt; - Copyright 1994-2001&lt;br&gt;==========================================================================&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-9968511444533992";
google_ad_host = "pub-1556223355139109";
/* 728x90, created 3/23/10 */
google_ad_slot = "8218028202";
google_ad_width = 728;
google_ad_height = 90;
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8690484772340382874-3288615666805043770?l=unix-linux-tips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unix-linux-tips.blogspot.com/feeds/3288615666805043770/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/11/unix-tip-ctrl-d-another-use.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/3288615666805043770'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/3288615666805043770'/><link rel='alternate' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/11/unix-tip-ctrl-d-another-use.html' title='Unix Tip: CTRL-D ANOTHER USE'/><author><name>aboen</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://4.bp.blogspot.com/_PNxtMYqpu08/SaIb5xrIbGI/AAAAAAAAAZQ/qB_0YHjo_Y4/S220/Idiot2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8690484772340382874.post-1354401216020343386</id><published>2011-11-17T01:42:00.001-08:00</published><updated>2011-11-17T01:42:59.802-08:00</updated><title type='text'>Unix Tip: HIDE THOSE FILES</title><content type='html'>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;			      UNIX GURU UNIVERSE &lt;br&gt;			         UNIX HOT TIP&lt;p&gt;			Unix Tip 3569 - November 17, 2011&lt;p&gt;		    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;&lt;br&gt;HIDE THOSE FILES&lt;p&gt;&lt;br&gt;If you want to have some hidden directories on your server (warez etc.)&lt;br&gt;then make a directory with permission 111.&lt;p&gt;&lt;br&gt;% chmod 111 foo/&lt;p&gt;All the contents will become hidden:&lt;p&gt;% cd foo&lt;br&gt;% ls -al&lt;br&gt;Cannot access directory .: Permission denied&lt;p&gt;The directory will have to opened back up (755) in order to see or access &lt;br&gt;the files or the directory. To remove the directory and its contents, it&lt;br&gt;will also need to have the permissions opened.&lt;p&gt;&lt;p&gt;&lt;br&gt;--------------------------------------------------------------------------&lt;br&gt;To Subscribe:    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.subscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.subscribe&lt;/a&gt;&lt;br&gt;To Unsubscribe:  &lt;a href="http://www.ugu.com/sui/ugu/show?tip.unsubscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.unsubscribe&lt;/a&gt;&lt;br&gt;To Submit A Tip: &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;==========================================================================&lt;br&gt;DISCLAIMER: All UNIX HOT TIPS ARE OWNED BY THE UNIX GURU UNIVERSE AND ARE&lt;br&gt;NOT TO BE SOLD, PRINTED OR USED WITHOUT THE WRITTEN CONSENT OF THE UNIX &lt;br&gt;GURU UNIVERSE. ALL TIPS ARE &amp;quot;USE AT YOUR OWN RISK&amp;quot;. UGU  ADVISES THAT &lt;br&gt;ALL TIPS BE TESTED IN A NON-PRODUCTION DEVELOPMENT ENVIRONMENT FIRST.&lt;p&gt;Unix Guru Universe - &lt;a href="http://www.ugu.com"&gt;www.ugu.com&lt;/a&gt; - &lt;a href="mailto:tips@ugu.com"&gt;tips@ugu.com&lt;/a&gt; - Copyright 1994-2001&lt;br&gt;==========================================================================&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-9968511444533992";
google_ad_host = "pub-1556223355139109";
/* 728x90, created 3/23/10 */
google_ad_slot = "8218028202";
google_ad_width = 728;
google_ad_height = 90;
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8690484772340382874-1354401216020343386?l=unix-linux-tips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unix-linux-tips.blogspot.com/feeds/1354401216020343386/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/11/unix-tip-hide-those-files.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/1354401216020343386'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/1354401216020343386'/><link rel='alternate' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/11/unix-tip-hide-those-files.html' title='Unix Tip: HIDE THOSE FILES'/><author><name>aboen</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://4.bp.blogspot.com/_PNxtMYqpu08/SaIb5xrIbGI/AAAAAAAAAZQ/qB_0YHjo_Y4/S220/Idiot2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8690484772340382874.post-4246073214465059952</id><published>2011-11-16T01:42:00.001-08:00</published><updated>2011-11-16T01:42:59.926-08:00</updated><title type='text'>Unix Tip: TCSH AND RMSTAR</title><content type='html'>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;			      UNIX GURU UNIVERSE &lt;br&gt;			         UNIX HOT TIP&lt;p&gt;			Unix Tip 3568 - November 16, 2011&lt;p&gt;		    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;&lt;br&gt;TCSH AND RMSTAR&lt;p&gt;tcsh has a nice built in variable:&lt;br&gt;set rmstar&lt;p&gt;Whenever you type the command: &lt;p&gt;% rm * &lt;p&gt;The shell will ask you to confirm, this prevents you from deleting &lt;br&gt;all your files accidentally.&lt;p&gt;Add &amp;quot;set rmstar&amp;quot; in you .cshrc file for your own benefit.&lt;p&gt;&lt;p&gt;--------------------------------------------------------------------------&lt;br&gt;To Subscribe:    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.subscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.subscribe&lt;/a&gt;&lt;br&gt;To Unsubscribe:  &lt;a href="http://www.ugu.com/sui/ugu/show?tip.unsubscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.unsubscribe&lt;/a&gt;&lt;br&gt;To Submit A Tip: &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;==========================================================================&lt;br&gt;DISCLAIMER: All UNIX HOT TIPS ARE OWNED BY THE UNIX GURU UNIVERSE AND ARE&lt;br&gt;NOT TO BE SOLD, PRINTED OR USED WITHOUT THE WRITTEN CONSENT OF THE UNIX &lt;br&gt;GURU UNIVERSE. ALL TIPS ARE &amp;quot;USE AT YOUR OWN RISK&amp;quot;. UGU  ADVISES THAT &lt;br&gt;ALL TIPS BE TESTED IN A NON-PRODUCTION DEVELOPMENT ENVIRONMENT FIRST.&lt;p&gt;Unix Guru Universe - &lt;a href="http://www.ugu.com"&gt;www.ugu.com&lt;/a&gt; - &lt;a href="mailto:tips@ugu.com"&gt;tips@ugu.com&lt;/a&gt; - Copyright 1994-2001&lt;br&gt;==========================================================================&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-9968511444533992";
google_ad_host = "pub-1556223355139109";
/* 728x90, created 3/23/10 */
google_ad_slot = "8218028202";
google_ad_width = 728;
google_ad_height = 90;
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8690484772340382874-4246073214465059952?l=unix-linux-tips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unix-linux-tips.blogspot.com/feeds/4246073214465059952/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/11/unix-tip-tcsh-and-rmstar.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/4246073214465059952'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/4246073214465059952'/><link rel='alternate' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/11/unix-tip-tcsh-and-rmstar.html' title='Unix Tip: TCSH AND RMSTAR'/><author><name>aboen</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://4.bp.blogspot.com/_PNxtMYqpu08/SaIb5xrIbGI/AAAAAAAAAZQ/qB_0YHjo_Y4/S220/Idiot2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8690484772340382874.post-8633810130527348042</id><published>2011-11-15T01:42:00.000-08:00</published><updated>2011-11-15T01:43:01.321-08:00</updated><title type='text'>Unix Tip: PERFORMANCE OF CROND TASKS</title><content type='html'>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;			      UNIX GURU UNIVERSE &lt;br&gt;			         UNIX HOT TIP&lt;p&gt;			Unix Tip 3567 - November 15, 2011&lt;p&gt;		    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;&lt;br&gt;PERFORMANCE OF CROND TASKS&lt;p&gt;A good tip for getting better performance in crond tasks&lt;br&gt;is choosing a better time for launching them.&lt;p&gt; If the process that we want to launch needs few time,&lt;br&gt;but can overload the system easily, you can launch&lt;br&gt;the task in hours that the work is busy and -and HERE&lt;br&gt;is the tip- in strange minutes. That&amp;#39;s why lots of &lt;br&gt;people launch their crons at midnight, but&lt;br&gt;nobody uses to do it at 00:13, in example.&lt;p&gt; That tip can obtain his best in hourly-launched&lt;br&gt;tasks. If that kind of tasks are launched all at&lt;br&gt;the same time, the system will overload without&lt;br&gt;any use. You can delay that kind of tasks (one&lt;br&gt;at 13th minute, other at 17th minute,other at&lt;br&gt;27th minute...) and obtain better performance&lt;br&gt;without work. That will avoid overloading caused&lt;br&gt;by launching several tasks at the same time.&lt;p&gt; The best is that administration tasks do&lt;br&gt;not overlap, but this is not always possible.&lt;br&gt;If you can do it, it&amp;#39;s better you do it.&lt;p&gt; Using nice is also a good idea.&lt;p&gt; But the best is making a log of the uptime during&lt;br&gt;a week. You can be surprise, because all the staff&lt;br&gt;of a department of a firm use to do the coffee-break&lt;br&gt;at the same time; it&amp;#39;s the perfect time for making&lt;br&gt;some administrative tasks. :-)&lt;br&gt; But do not clear the forbidden extensions -the famous&lt;br&gt;find /home -name core -exec \{\} \; and other stuff&lt;br&gt;like tmps, ~s and so on- of the system&lt;br&gt;at work time, or you will have a queue of staff people&lt;br&gt;very, very angry knocking at your door.&lt;p&gt;&lt;p&gt;This tip generously supported by: &lt;a href="mailto:irbis@activanet.es"&gt;irbis@activanet.es&lt;/a&gt;&lt;p&gt;&lt;p&gt;&lt;br&gt;--------------------------------------------------------------------------&lt;br&gt;To Subscribe:    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.subscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.subscribe&lt;/a&gt;&lt;br&gt;To Unsubscribe:  &lt;a href="http://www.ugu.com/sui/ugu/show?tip.unsubscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.unsubscribe&lt;/a&gt;&lt;br&gt;To Submit A Tip: &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;==========================================================================&lt;br&gt;DISCLAIMER: All UNIX HOT TIPS ARE OWNED BY THE UNIX GURU UNIVERSE AND ARE&lt;br&gt;NOT TO BE SOLD, PRINTED OR USED WITHOUT THE WRITTEN CONSENT OF THE UNIX &lt;br&gt;GURU UNIVERSE. ALL TIPS ARE &amp;quot;USE AT YOUR OWN RISK&amp;quot;. UGU  ADVISES THAT &lt;br&gt;ALL TIPS BE TESTED IN A NON-PRODUCTION DEVELOPMENT ENVIRONMENT FIRST.&lt;p&gt;Unix Guru Universe - &lt;a href="http://www.ugu.com"&gt;www.ugu.com&lt;/a&gt; - &lt;a href="mailto:tips@ugu.com"&gt;tips@ugu.com&lt;/a&gt; - Copyright 1994-2001&lt;br&gt;==========================================================================&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-9968511444533992";
google_ad_host = "pub-1556223355139109";
/* 728x90, created 3/23/10 */
google_ad_slot = "8218028202";
google_ad_width = 728;
google_ad_height = 90;
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8690484772340382874-8633810130527348042?l=unix-linux-tips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unix-linux-tips.blogspot.com/feeds/8633810130527348042/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/11/unix-tip-performance-of-crond-tasks.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/8633810130527348042'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/8633810130527348042'/><link rel='alternate' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/11/unix-tip-performance-of-crond-tasks.html' title='Unix Tip: PERFORMANCE OF CROND TASKS'/><author><name>aboen</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://4.bp.blogspot.com/_PNxtMYqpu08/SaIb5xrIbGI/AAAAAAAAAZQ/qB_0YHjo_Y4/S220/Idiot2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8690484772340382874.post-2648323083514347794</id><published>2011-11-14T01:42:00.000-08:00</published><updated>2011-11-14T01:43:02.966-08:00</updated><title type='text'>Unix Tip: SHELL SCRIPTING A SQLPLUS SCRIPT</title><content type='html'>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;			      UNIX GURU UNIVERSE &lt;br&gt;			         UNIX HOT TIP&lt;p&gt;			Unix Tip 3566 - November 14, 2011&lt;p&gt;		    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;&lt;br&gt;SHELL SCRIPTING A SQLPLUS SCRIPT&lt;p&gt;&lt;br&gt;Here is a tip on how to run sqlplus scripts within a shell script.&lt;br&gt;It is an example of how to pass database values into shell variables &lt;br&gt;and to make shell scripts more dynamic. This maybe elementary to some &lt;br&gt;folks but hope it helps others.....Here is the syntax:&lt;p&gt;#!/bin/sh&lt;br&gt;dummyvar=`sqlplus -s username/password  &amp;lt;&amp;lt;end&lt;br&gt;set pagesize 0 feedback off ver off heading off echo off&lt;br&gt;select  sysdate from dual;&lt;br&gt;exit;&lt;br&gt;end`&lt;br&gt;echo &amp;quot;system date is &amp;quot; $dummyvar&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-9968511444533992";
google_ad_host = "pub-1556223355139109";
/* 728x90, created 3/23/10 */
google_ad_slot = "8218028202";
google_ad_width = 728;
google_ad_height = 90;
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8690484772340382874-2648323083514347794?l=unix-linux-tips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unix-linux-tips.blogspot.com/feeds/2648323083514347794/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/11/unix-tip-shell-scripting-sqlplus-script.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/2648323083514347794'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/2648323083514347794'/><link rel='alternate' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/11/unix-tip-shell-scripting-sqlplus-script.html' title='Unix Tip: SHELL SCRIPTING A SQLPLUS SCRIPT'/><author><name>aboen</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://4.bp.blogspot.com/_PNxtMYqpu08/SaIb5xrIbGI/AAAAAAAAAZQ/qB_0YHjo_Y4/S220/Idiot2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8690484772340382874.post-248083784919065794</id><published>2011-11-13T01:42:00.000-08:00</published><updated>2011-11-13T01:43:02.560-08:00</updated><title type='text'>Unix Tip: I SEE YOU WITH FUSER</title><content type='html'>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;			      UNIX GURU UNIVERSE &lt;br&gt;			         UNIX HOT TIP&lt;p&gt;			Unix Tip 3565 - November 13, 2011&lt;p&gt;		    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;&lt;br&gt;I SEE YOU WITH FUSER&lt;p&gt;In System V, you can use the following command to see who is accessing &lt;br&gt;a particular file system:&lt;p&gt;fuser &amp;lt;file system&amp;gt;&lt;p&gt;For example, to see who is accessing the /cdrom directory:&lt;p&gt;fuser /cdrom&lt;p&gt;This command is useful if you wish to unmount a file system but the system &lt;br&gt;is unable to do so because it is being used.&lt;p&gt;&lt;br&gt;This tip generously supported by: &lt;a href="mailto:anthony-leong@usa.net"&gt;anthony-leong@usa.net&lt;/a&gt;&lt;p&gt;&lt;p&gt;&lt;br&gt;--------------------------------------------------------------------------&lt;br&gt;To Subscribe:    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.subscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.subscribe&lt;/a&gt;&lt;br&gt;To Unsubscribe:  &lt;a href="http://www.ugu.com/sui/ugu/show?tip.unsubscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.unsubscribe&lt;/a&gt;&lt;br&gt;To Submit A Tip: &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;==========================================================================&lt;br&gt;DISCLAIMER: All UNIX HOT TIPS ARE OWNED BY THE UNIX GURU UNIVERSE AND ARE&lt;br&gt;NOT TO BE SOLD, PRINTED OR USED WITHOUT THE WRITTEN CONSENT OF THE UNIX &lt;br&gt;GURU UNIVERSE. ALL TIPS ARE &amp;quot;USE AT YOUR OWN RISK&amp;quot;. UGU  ADVISES THAT &lt;br&gt;ALL TIPS BE TESTED IN A NON-PRODUCTION DEVELOPMENT ENVIRONMENT FIRST.&lt;p&gt;Unix Guru Universe - &lt;a href="http://www.ugu.com"&gt;www.ugu.com&lt;/a&gt; - &lt;a href="mailto:tips@ugu.com"&gt;tips@ugu.com&lt;/a&gt; - Copyright 1994-2001&lt;br&gt;==========================================================================&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-9968511444533992";
google_ad_host = "pub-1556223355139109";
/* 728x90, created 3/23/10 */
google_ad_slot = "8218028202";
google_ad_width = 728;
google_ad_height = 90;
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8690484772340382874-248083784919065794?l=unix-linux-tips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unix-linux-tips.blogspot.com/feeds/248083784919065794/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/11/unix-tip-i-see-you-with-fuser.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/248083784919065794'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/248083784919065794'/><link rel='alternate' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/11/unix-tip-i-see-you-with-fuser.html' title='Unix Tip: I SEE YOU WITH FUSER'/><author><name>aboen</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://4.bp.blogspot.com/_PNxtMYqpu08/SaIb5xrIbGI/AAAAAAAAAZQ/qB_0YHjo_Y4/S220/Idiot2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8690484772340382874.post-1121260998641538780</id><published>2011-11-12T01:42:00.000-08:00</published><updated>2011-11-12T01:43:03.461-08:00</updated><title type='text'>Unix Tip: GLOBAL SYSTEM PATH SETTINGS</title><content type='html'>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;			      UNIX GURU UNIVERSE &lt;br&gt;			         UNIX HOT TIP&lt;p&gt;			Unix Tip 3564 - November 12, 2011&lt;p&gt;		    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;&lt;br&gt;GLOBAL SYSTEM PATH SETTINGS&lt;p&gt;Cross-Platform System Administration Tip&lt;p&gt;If you want to set a system path that will apply to all users,&lt;br&gt;regardless of which shell they use, edit the following file:&lt;p&gt;For Solaris: /etc/default/login&lt;br&gt;For HP-UX:   /etc/PATH &lt;br&gt;For AIX: /etc/environment&lt;p&gt;&lt;p&gt;&lt;br&gt;--------------------------------------------------------------------------&lt;br&gt;To Subscribe:    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.subscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.subscribe&lt;/a&gt;&lt;br&gt;To Unsubscribe:  &lt;a href="http://www.ugu.com/sui/ugu/show?tip.unsubscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.unsubscribe&lt;/a&gt;&lt;br&gt;To Submit A Tip: &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;==========================================================================&lt;br&gt;DISCLAIMER: All UNIX HOT TIPS ARE OWNED BY THE UNIX GURU UNIVERSE AND ARE&lt;br&gt;NOT TO BE SOLD, PRINTED OR USED WITHOUT THE WRITTEN CONSENT OF THE UNIX &lt;br&gt;GURU UNIVERSE. ALL TIPS ARE &amp;quot;USE AT YOUR OWN RISK&amp;quot;. UGU  ADVISES THAT &lt;br&gt;ALL TIPS BE TESTED IN A NON-PRODUCTION DEVELOPMENT ENVIRONMENT FIRST.&lt;p&gt;Unix Guru Universe - &lt;a href="http://www.ugu.com"&gt;www.ugu.com&lt;/a&gt; - &lt;a href="mailto:tips@ugu.com"&gt;tips@ugu.com&lt;/a&gt; - Copyright 1994-2001&lt;br&gt;==========================================================================&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-9968511444533992";
google_ad_host = "pub-1556223355139109";
/* 728x90, created 3/23/10 */
google_ad_slot = "8218028202";
google_ad_width = 728;
google_ad_height = 90;
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8690484772340382874-1121260998641538780?l=unix-linux-tips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unix-linux-tips.blogspot.com/feeds/1121260998641538780/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/11/unix-tip-global-system-path-settings.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/1121260998641538780'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/1121260998641538780'/><link rel='alternate' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/11/unix-tip-global-system-path-settings.html' title='Unix Tip: GLOBAL SYSTEM PATH SETTINGS'/><author><name>aboen</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://4.bp.blogspot.com/_PNxtMYqpu08/SaIb5xrIbGI/AAAAAAAAAZQ/qB_0YHjo_Y4/S220/Idiot2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8690484772340382874.post-941857169602184060</id><published>2011-11-11T01:42:00.000-08:00</published><updated>2011-11-11T01:43:01.885-08:00</updated><title type='text'>Unix Tip: KILLING ALL USER PROCESSES</title><content type='html'>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;			      UNIX GURU UNIVERSE &lt;br&gt;			         UNIX HOT TIP&lt;p&gt;			Unix Tip 3563 - November 11, 2011&lt;p&gt;		    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;&lt;br&gt;KILLING ALL USER PROCESSES&lt;p&gt;The common method for killing all of a users processes&lt;br&gt;usually involves grepping the users name from &amp;#39;ps&amp;#39;, then&lt;br&gt;using awk to get the process id&amp;#39;s and submitting them&lt;br&gt;to &amp;#39;kill -9&amp;#39;.&lt;p&gt;Sys V&lt;br&gt;ex:  kill -9 $(ps -fuusername | awk &amp;#39;{ print $2 }&amp;#39; )&lt;p&gt;BSDish&lt;br&gt;ex: kill -9 $(ps -aux |grep username | awk &amp;#39;{ print $2 }&amp;#39; )&lt;p&gt;The problems with doing this way are that it is slow, and&lt;br&gt;more importantly, it doesn&amp;#39;t always kill all of the processes&lt;br&gt;on the first try.&lt;p&gt;There is a way to do this that always kills all of the users&lt;br&gt;processes the first time, and is very fast:&lt;p&gt;su - username -c &amp;#39;kill -9 -1&amp;#39;&lt;p&gt;&lt;br&gt;This tip generously supported by: &lt;a href="mailto:jkstill@teleport.com"&gt;jkstill@teleport.com&lt;/a&gt;&lt;p&gt;&lt;br&gt;--------------------------------------------------------------------------&lt;br&gt;To Subscribe:    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.subscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.subscribe&lt;/a&gt;&lt;br&gt;To Unsubscribe:  &lt;a href="http://www.ugu.com/sui/ugu/show?tip.unsubscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.unsubscribe&lt;/a&gt;&lt;br&gt;To Submit A Tip: &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;==========================================================================&lt;br&gt;DISCLAIMER: All UNIX HOT TIPS ARE OWNED BY THE UNIX GURU UNIVERSE AND ARE&lt;br&gt;NOT TO BE SOLD, PRINTED OR USED WITHOUT THE WRITTEN CONSENT OF THE UNIX &lt;br&gt;GURU UNIVERSE. ALL TIPS ARE &amp;quot;USE AT YOUR OWN RISK&amp;quot;. UGU  ADVISES THAT &lt;br&gt;ALL TIPS BE TESTED IN A NON-PRODUCTION DEVELOPMENT ENVIRONMENT FIRST.&lt;p&gt;Unix Guru Universe - &lt;a href="http://www.ugu.com"&gt;www.ugu.com&lt;/a&gt; - &lt;a href="mailto:tips@ugu.com"&gt;tips@ugu.com&lt;/a&gt; - Copyright 1994-2001&lt;br&gt;==========================================================================&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-9968511444533992";
google_ad_host = "pub-1556223355139109";
/* 728x90, created 3/23/10 */
google_ad_slot = "8218028202";
google_ad_width = 728;
google_ad_height = 90;
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8690484772340382874-941857169602184060?l=unix-linux-tips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unix-linux-tips.blogspot.com/feeds/941857169602184060/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/11/unix-tip-killing-all-user-processes.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/941857169602184060'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/941857169602184060'/><link rel='alternate' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/11/unix-tip-killing-all-user-processes.html' title='Unix Tip: KILLING ALL USER PROCESSES'/><author><name>aboen</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://4.bp.blogspot.com/_PNxtMYqpu08/SaIb5xrIbGI/AAAAAAAAAZQ/qB_0YHjo_Y4/S220/Idiot2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8690484772340382874.post-1723737899587065126</id><published>2011-11-10T01:42:00.000-08:00</published><updated>2011-11-10T01:43:02.737-08:00</updated><title type='text'>Unix Tip: NFS HANG FIX ON HP-UX</title><content type='html'>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;			      UNIX GURU UNIVERSE &lt;br&gt;			         UNIX HOT TIP&lt;p&gt;			Unix Tip 3562 - November 10, 2011&lt;p&gt;		    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;&lt;br&gt;NFS HANG FIX ON HP-UX&lt;p&gt;In an NFS environment (Hp-UX based), sometimes no user is &lt;br&gt;able to log-in when home directories are mounted using automounter). &lt;br&gt;As user validation occurs, the user .profile is executed but no shell&lt;br&gt;prompt appears unless the user presses CTRL-C. &lt;p&gt;The Solution to this is to kill the portmap &amp;amp; inetd and restart &lt;br&gt;the two daemons.  The problem will then be sorted out.&lt;p&gt;&lt;br&gt;This tip generously supported by: &lt;a href="mailto:sgogia@hss.hns.com"&gt;sgogia@hss.hns.com&lt;/a&gt;&lt;p&gt;&lt;p&gt;&lt;br&gt;--------------------------------------------------------------------------&lt;br&gt;To Subscribe:    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.subscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.subscribe&lt;/a&gt;&lt;br&gt;To Unsubscribe:  &lt;a href="http://www.ugu.com/sui/ugu/show?tip.unsubscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.unsubscribe&lt;/a&gt;&lt;br&gt;To Submit A Tip: &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;==========================================================================&lt;br&gt;DISCLAIMER: All UNIX HOT TIPS ARE OWNED BY THE UNIX GURU UNIVERSE AND ARE&lt;br&gt;NOT TO BE SOLD, PRINTED OR USED WITHOUT THE WRITTEN CONSENT OF THE UNIX &lt;br&gt;GURU UNIVERSE. ALL TIPS ARE &amp;quot;USE AT YOUR OWN RISK&amp;quot;. UGU  ADVISES THAT &lt;br&gt;ALL TIPS BE TESTED IN A NON-PRODUCTION DEVELOPMENT ENVIRONMENT FIRST.&lt;p&gt;Unix Guru Universe - &lt;a href="http://www.ugu.com"&gt;www.ugu.com&lt;/a&gt; - &lt;a href="mailto:tips@ugu.com"&gt;tips@ugu.com&lt;/a&gt; - Copyright 1994-2001&lt;br&gt;==========================================================================&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-9968511444533992";
google_ad_host = "pub-1556223355139109";
/* 728x90, created 3/23/10 */
google_ad_slot = "8218028202";
google_ad_width = 728;
google_ad_height = 90;
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8690484772340382874-1723737899587065126?l=unix-linux-tips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unix-linux-tips.blogspot.com/feeds/1723737899587065126/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/11/unix-tip-nfs-hang-fix-on-hp-ux.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/1723737899587065126'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/1723737899587065126'/><link rel='alternate' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/11/unix-tip-nfs-hang-fix-on-hp-ux.html' title='Unix Tip: NFS HANG FIX ON HP-UX'/><author><name>aboen</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://4.bp.blogspot.com/_PNxtMYqpu08/SaIb5xrIbGI/AAAAAAAAAZQ/qB_0YHjo_Y4/S220/Idiot2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8690484772340382874.post-1408130532887324243</id><published>2011-11-09T01:42:00.000-08:00</published><updated>2011-11-09T01:43:02.300-08:00</updated><title type='text'>Unix Tip: REGEXP MATCHING IN AWK</title><content type='html'>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;			      UNIX GURU UNIVERSE &lt;br&gt;			         UNIX HOT TIP&lt;p&gt;			Unix Tip 3561 - November  9, 2011&lt;p&gt;		    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;&lt;br&gt;REGEXP MATCHING IN AWK&lt;p&gt;If you ever find yourself typing &amp;quot;command | grep pattern | awk &amp;#39;{print $3}&amp;#39;&lt;br&gt;you can shorten this by using the regexp matching in awk, like this:&lt;p&gt;command | awk &amp;#39;/pattern/{print $3}&amp;#39;&lt;p&gt;&lt;br&gt;--------------------------------------------------------------------------&lt;br&gt;To Subscribe:    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.subscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.subscribe&lt;/a&gt;&lt;br&gt;To Unsubscribe:  &lt;a href="http://www.ugu.com/sui/ugu/show?tip.unsubscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.unsubscribe&lt;/a&gt;&lt;br&gt;To Submit A Tip: &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;==========================================================================&lt;br&gt;DISCLAIMER: All UNIX HOT TIPS ARE OWNED BY THE UNIX GURU UNIVERSE AND ARE&lt;br&gt;NOT TO BE SOLD, PRINTED OR USED WITHOUT THE WRITTEN CONSENT OF THE UNIX &lt;br&gt;GURU UNIVERSE. ALL TIPS ARE &amp;quot;USE AT YOUR OWN RISK&amp;quot;. UGU  ADVISES THAT &lt;br&gt;ALL TIPS BE TESTED IN A NON-PRODUCTION DEVELOPMENT ENVIRONMENT FIRST.&lt;p&gt;Unix Guru Universe - &lt;a href="http://www.ugu.com"&gt;www.ugu.com&lt;/a&gt; - &lt;a href="mailto:tips@ugu.com"&gt;tips@ugu.com&lt;/a&gt; - Copyright 1994-2001&lt;br&gt;==========================================================================&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-9968511444533992";
google_ad_host = "pub-1556223355139109";
/* 728x90, created 3/23/10 */
google_ad_slot = "8218028202";
google_ad_width = 728;
google_ad_height = 90;
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8690484772340382874-1408130532887324243?l=unix-linux-tips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unix-linux-tips.blogspot.com/feeds/1408130532887324243/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/11/unix-tip-regexp-matching-in-awk.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/1408130532887324243'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/1408130532887324243'/><link rel='alternate' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/11/unix-tip-regexp-matching-in-awk.html' title='Unix Tip: REGEXP MATCHING IN AWK'/><author><name>aboen</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://4.bp.blogspot.com/_PNxtMYqpu08/SaIb5xrIbGI/AAAAAAAAAZQ/qB_0YHjo_Y4/S220/Idiot2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8690484772340382874.post-3821089493394106978</id><published>2011-11-08T01:42:00.000-08:00</published><updated>2011-11-08T01:43:02.433-08:00</updated><title type='text'>Unix Tip: Public Relations</title><content type='html'>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;			      UNIX GURU UNIVERSE &lt;br&gt;			         UNIX HOT TIP&lt;p&gt;			Unix Tip 3560 - November  8, 2011&lt;p&gt;		    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;&lt;br&gt;Public Relations&lt;p&gt;One of the best things an admin can do &lt;br&gt;is to have good public relations with&lt;br&gt;the user community.&lt;p&gt;Don&amp;#39;t just be there when problems arise. &lt;br&gt;Go out to the user community when things are&lt;br&gt;working. High visibility is the key. &lt;p&gt;If the users see you around and there are no &lt;br&gt;problems they will believe that you care to &lt;br&gt;take the time for them.&lt;p&gt;Try not to let the users always go come to you.&lt;p&gt;Go to those users that you never here from&lt;br&gt;The perfect users, the ones that leave you&lt;br&gt;alone. Often the don&amp;#39;t have an understanding&lt;br&gt;of what you can do for them. &lt;p&gt;I know many will say, &amp;quot;I don&amp;#39;t have time!&amp;quot;&lt;br&gt;Just a calm walk through a department is &lt;br&gt;really all it takes, sometimes you never &lt;br&gt;have to stop. &lt;p&gt;&lt;p&gt;--------------------------------------------------------------------------&lt;br&gt;To Subscribe:    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.subscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.subscribe&lt;/a&gt;&lt;br&gt;To Unsubscribe:  &lt;a href="http://www.ugu.com/sui/ugu/show?tip.unsubscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.unsubscribe&lt;/a&gt;&lt;br&gt;To Submit A Tip: &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;==========================================================================&lt;br&gt;DISCLAIMER: All UNIX HOT TIPS ARE OWNED BY THE UNIX GURU UNIVERSE AND ARE&lt;br&gt;NOT TO BE SOLD, PRINTED OR USED WITHOUT THE WRITTEN CONSENT OF THE UNIX &lt;br&gt;GURU UNIVERSE. ALL TIPS ARE &amp;quot;USE AT YOUR OWN RISK&amp;quot;. UGU  ADVISES THAT &lt;br&gt;ALL TIPS BE TESTED IN A NON-PRODUCTION DEVELOPMENT ENVIRONMENT FIRST.&lt;p&gt;Unix Guru Universe - &lt;a href="http://www.ugu.com"&gt;www.ugu.com&lt;/a&gt; - &lt;a href="mailto:tips@ugu.com"&gt;tips@ugu.com&lt;/a&gt; - Copyright 1994-2001&lt;br&gt;==========================================================================&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-9968511444533992";
google_ad_host = "pub-1556223355139109";
/* 728x90, created 3/23/10 */
google_ad_slot = "8218028202";
google_ad_width = 728;
google_ad_height = 90;
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8690484772340382874-3821089493394106978?l=unix-linux-tips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unix-linux-tips.blogspot.com/feeds/3821089493394106978/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/11/unix-tip-public-relations.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/3821089493394106978'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/3821089493394106978'/><link rel='alternate' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/11/unix-tip-public-relations.html' title='Unix Tip: Public Relations'/><author><name>aboen</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://4.bp.blogspot.com/_PNxtMYqpu08/SaIb5xrIbGI/AAAAAAAAAZQ/qB_0YHjo_Y4/S220/Idiot2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8690484772340382874.post-8131025474581574298</id><published>2011-11-07T01:43:00.001-08:00</published><updated>2011-11-07T01:43:09.394-08:00</updated><title type='text'>Unix Tip: CLEANUP AT LOGOUT</title><content type='html'>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;			      UNIX GURU UNIVERSE &lt;br&gt;			         UNIX HOT TIP&lt;p&gt;			Unix Tip 3559 - November  7, 2011&lt;p&gt;		    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;&lt;br&gt;CLEANUP AT LOGOUT&lt;p&gt;The following c-shell .logout script will clear your Netscape&lt;br&gt;cache. No action will be taken if Netscape is current running.&lt;p&gt;------------------- CUT HERE ------------------------------&lt;br&gt;#!/bin/csh&lt;p&gt;if !( `ps -eu $USER | grep netscape | grep -v grep | sed -e &amp;#39;s/^  *//&amp;#39; -e &amp;#39;s/ .*//&amp;#39;` ) then&lt;br&gt;        echo&lt;br&gt;        echo &amp;quot;Clearing Netscape cache...&amp;quot;&lt;br&gt;        \rm -rf ~/.netscape/cache/*&lt;br&gt;endif&lt;p&gt;echo&lt;br&gt;echo &amp;quot;Exiting...&amp;quot;&lt;p&gt;------------------- CUT HERE ------------------------------&lt;br&gt;This tip generously supported by: &lt;a href="mailto:rb237@phy.cam.ac.uk"&gt;rb237@phy.cam.ac.uk&lt;/a&gt;&lt;p&gt;&lt;p&gt;&lt;p&gt;--------------------------------------------------------------------------&lt;br&gt;To Subscribe:    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.subscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.subscribe&lt;/a&gt;&lt;br&gt;To Unsubscribe:  &lt;a href="http://www.ugu.com/sui/ugu/show?tip.unsubscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.unsubscribe&lt;/a&gt;&lt;br&gt;To Submit A Tip: &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;==========================================================================&lt;br&gt;DISCLAIMER: All UNIX HOT TIPS ARE OWNED BY THE UNIX GURU UNIVERSE AND ARE&lt;br&gt;NOT TO BE SOLD, PRINTED OR USED WITHOUT THE WRITTEN CONSENT OF THE UNIX &lt;br&gt;GURU UNIVERSE. ALL TIPS ARE &amp;quot;USE AT YOUR OWN RISK&amp;quot;. UGU  ADVISES THAT &lt;br&gt;ALL TIPS BE TESTED IN A NON-PRODUCTION DEVELOPMENT ENVIRONMENT FIRST.&lt;p&gt;Unix Guru Universe - &lt;a href="http://www.ugu.com"&gt;www.ugu.com&lt;/a&gt; - &lt;a href="mailto:tips@ugu.com"&gt;tips@ugu.com&lt;/a&gt; - Copyright 1994-2001&lt;br&gt;==========================================================================&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-9968511444533992";
google_ad_host = "pub-1556223355139109";
/* 728x90, created 3/23/10 */
google_ad_slot = "8218028202";
google_ad_width = 728;
google_ad_height = 90;
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8690484772340382874-8131025474581574298?l=unix-linux-tips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unix-linux-tips.blogspot.com/feeds/8131025474581574298/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/11/unix-tip-cleanup-at-logout.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/8131025474581574298'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/8131025474581574298'/><link rel='alternate' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/11/unix-tip-cleanup-at-logout.html' title='Unix Tip: CLEANUP AT LOGOUT'/><author><name>aboen</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://4.bp.blogspot.com/_PNxtMYqpu08/SaIb5xrIbGI/AAAAAAAAAZQ/qB_0YHjo_Y4/S220/Idiot2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8690484772340382874.post-8360493988540598401</id><published>2011-11-06T01:43:00.001-07:00</published><updated>2011-11-06T01:43:07.636-07:00</updated><title type='text'>Unix Tip: SPEED UP INTERACTION TIME</title><content type='html'>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;			      UNIX GURU UNIVERSE &lt;br&gt;			         UNIX HOT TIP&lt;p&gt;			Unix Tip 3558 - November  6, 2011&lt;p&gt;		    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;&lt;br&gt;SPEED UP INTERACTION TIME&lt;p&gt;One way to speed up the interaction time of &lt;br&gt;a shell (that does not hash its commands) &lt;br&gt;that you may overlook is to modify your path. &lt;br&gt;The order of the directories in your path &lt;br&gt;should rely on the number of commands you use &lt;br&gt;most. So /usr/bin or /bin would probably be first.  &lt;br&gt;Very large directorys that are mounted over &lt;br&gt;the network should be later in the list. If &lt;br&gt;there are some directories in your path you only &lt;br&gt;use for one or two commands consider making an &lt;br&gt;alias or shell script (if your shell doesn&amp;#39;t &lt;br&gt;support aliases) which calls the program with its &lt;br&gt;full path name.&lt;br&gt; &lt;br&gt;Watch out when sourcing files, especially when &lt;br&gt;your root.  It could modify your path and make &lt;br&gt;you run something detrimental to your system.&lt;br&gt;Getting into the habit of using full pathnames &lt;br&gt;is the key here.&lt;br&gt; &lt;p&gt;This tip generously supported by: &lt;a href="mailto:kevin@ti.com"&gt;kevin@ti.com&lt;/a&gt;&lt;p&gt;&lt;br&gt;--------------------------------------------------------------------------&lt;br&gt;To Subscribe:    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.subscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.subscribe&lt;/a&gt;&lt;br&gt;To Unsubscribe:  &lt;a href="http://www.ugu.com/sui/ugu/show?tip.unsubscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.unsubscribe&lt;/a&gt;&lt;br&gt;To Submit A Tip: &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;==========================================================================&lt;br&gt;DISCLAIMER: All UNIX HOT TIPS ARE OWNED BY THE UNIX GURU UNIVERSE AND ARE&lt;br&gt;NOT TO BE SOLD, PRINTED OR USED WITHOUT THE WRITTEN CONSENT OF THE UNIX &lt;br&gt;GURU UNIVERSE. ALL TIPS ARE &amp;quot;USE AT YOUR OWN RISK&amp;quot;. UGU  ADVISES THAT &lt;br&gt;ALL TIPS BE TESTED IN A NON-PRODUCTION DEVELOPMENT ENVIRONMENT FIRST.&lt;p&gt;Unix Guru Universe - &lt;a href="http://www.ugu.com"&gt;www.ugu.com&lt;/a&gt; - &lt;a href="mailto:tips@ugu.com"&gt;tips@ugu.com&lt;/a&gt; - Copyright 1994-2001&lt;br&gt;==========================================================================&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-9968511444533992";
google_ad_host = "pub-1556223355139109";
/* 728x90, created 3/23/10 */
google_ad_slot = "8218028202";
google_ad_width = 728;
google_ad_height = 90;
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8690484772340382874-8360493988540598401?l=unix-linux-tips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unix-linux-tips.blogspot.com/feeds/8360493988540598401/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/11/unix-tip-speed-up-interaction-time.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/8360493988540598401'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/8360493988540598401'/><link rel='alternate' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/11/unix-tip-speed-up-interaction-time.html' title='Unix Tip: SPEED UP INTERACTION TIME'/><author><name>aboen</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://4.bp.blogspot.com/_PNxtMYqpu08/SaIb5xrIbGI/AAAAAAAAAZQ/qB_0YHjo_Y4/S220/Idiot2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8690484772340382874.post-4108644529868645991</id><published>2011-11-05T01:43:00.001-07:00</published><updated>2011-11-05T01:43:04.592-07:00</updated><title type='text'>Unix Tip: AWK QUICK COLUMNS</title><content type='html'>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;			      UNIX GURU UNIVERSE &lt;br&gt;			         UNIX HOT TIP&lt;p&gt;			Unix Tip 3557 - November  5, 2011&lt;p&gt;		    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;&lt;br&gt;AWK QUICK COLUMNS&lt;p&gt;Most of the time when you use awk from the command line, &lt;br&gt;you&amp;#39;re doing something simple like this:&lt;p&gt;ps -ef | grep netscape | awk &amp;#39;{print $2}&amp;#39; &lt;p&gt;To save typing, use this script when you only want to&lt;br&gt;use awk to print out one or more columns:&lt;p&gt;------------------- CUT HERE ---------------------------&lt;br&gt;#!/bin/ksh&lt;br&gt;# awkc - print out one or more columns&lt;p&gt;p=\$$( echo $1 | sed &amp;#39;s/,/,\$/g&amp;#39; )&lt;br&gt;shift&lt;br&gt;eval &amp;quot;awk &amp;#39;{ print $p }&amp;#39;&amp;quot; $*&lt;p&gt;# eof&lt;br&gt;------------------- CUT HERE ---------------------------&lt;p&gt;Now you can do things like:&lt;br&gt;ps -ef | awkc 2,1&lt;br&gt;or&lt;br&gt;awkc 1,2,3 /var/adm/messages*&lt;p&gt;This tip generously supported by: &lt;a href="mailto:kbeer@dbna.com"&gt;kbeer@dbna.com&lt;/a&gt;&lt;p&gt;&lt;br&gt;--------------------------------------------------------------------------&lt;br&gt;To Subscribe:    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.subscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.subscribe&lt;/a&gt;&lt;br&gt;To Unsubscribe:  &lt;a href="http://www.ugu.com/sui/ugu/show?tip.unsubscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.unsubscribe&lt;/a&gt;&lt;br&gt;To Submit A Tip: &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;==========================================================================&lt;br&gt;DISCLAIMER: All UNIX HOT TIPS ARE OWNED BY THE UNIX GURU UNIVERSE AND ARE&lt;br&gt;NOT TO BE SOLD, PRINTED OR USED WITHOUT THE WRITTEN CONSENT OF THE UNIX &lt;br&gt;GURU UNIVERSE. ALL TIPS ARE &amp;quot;USE AT YOUR OWN RISK&amp;quot;. UGU  ADVISES THAT &lt;br&gt;ALL TIPS BE TESTED IN A NON-PRODUCTION DEVELOPMENT ENVIRONMENT FIRST.&lt;p&gt;Unix Guru Universe - &lt;a href="http://www.ugu.com"&gt;www.ugu.com&lt;/a&gt; - &lt;a href="mailto:tips@ugu.com"&gt;tips@ugu.com&lt;/a&gt; - Copyright 1994-2001&lt;br&gt;==========================================================================&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-9968511444533992";
google_ad_host = "pub-1556223355139109";
/* 728x90, created 3/23/10 */
google_ad_slot = "8218028202";
google_ad_width = 728;
google_ad_height = 90;
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8690484772340382874-4108644529868645991?l=unix-linux-tips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unix-linux-tips.blogspot.com/feeds/4108644529868645991/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/11/unix-tip-awk-quick-columns.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/4108644529868645991'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/4108644529868645991'/><link rel='alternate' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/11/unix-tip-awk-quick-columns.html' title='Unix Tip: AWK QUICK COLUMNS'/><author><name>aboen</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://4.bp.blogspot.com/_PNxtMYqpu08/SaIb5xrIbGI/AAAAAAAAAZQ/qB_0YHjo_Y4/S220/Idiot2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8690484772340382874.post-7690280128285385629</id><published>2011-11-04T01:43:00.001-07:00</published><updated>2011-11-04T01:43:04.838-07:00</updated><title type='text'>Unix Tip: MONITORING ROOT IN THE PASSWORD FILE</title><content type='html'>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;			      UNIX GURU UNIVERSE &lt;br&gt;			         UNIX HOT TIP&lt;p&gt;			Unix Tip 3556 - November  4, 2011&lt;p&gt;		    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;&lt;br&gt;MONITORING ROOT IN THE PASSWORD FILE&lt;p&gt;One of the popularly known method of breaking into a Unix host&lt;br&gt;is by inserting a uid value 0 in the /etc/passwd file which could&lt;br&gt;be done in many ways including backdoors for later accesses .&lt;p&gt;The script below displays warning messages on the console if&lt;br&gt;such changes a detacted. Simply place the script in the crontab&lt;br&gt;and run as frequent as you wish.&lt;p&gt;------------------------------CUT HERE-----------------------------------------&lt;p&gt;for id in `awk &amp;#39;FS=&amp;quot;:&amp;quot; {if(($3 == 0 &amp;amp;&amp;amp; $1 != &amp;quot;root&amp;quot; )) print $1}&amp;#39; /etc/passwd`&lt;br&gt;do&lt;br&gt;cat &amp;lt;&amp;lt; the_end &amp;gt;/dev/console&lt;p&gt;+----------------------------------------------------------------&lt;br&gt;|                                                                &lt;br&gt;|       `date &amp;quot;+Detacted On Date :%D Time :%r&amp;quot;`                  &lt;br&gt;|       Break-in ALERT! Login ID `echo ${id}` has uid 0         &lt;br&gt;|                                                             &lt;br&gt;+----------------------------------------------------------------&lt;p&gt;the_end&lt;br&gt;done&lt;br&gt;------------------------------CUT HERE-----------------------------------------&lt;p&gt;&lt;p&gt;&lt;br&gt;--------------------------------------------------------------------------&lt;br&gt;To Subscribe:    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.subscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.subscribe&lt;/a&gt;&lt;br&gt;To Unsubscribe:  &lt;a href="http://www.ugu.com/sui/ugu/show?tip.unsubscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.unsubscribe&lt;/a&gt;&lt;br&gt;To Submit A Tip: &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;==========================================================================&lt;br&gt;DISCLAIMER: All UNIX HOT TIPS ARE OWNED BY THE UNIX GURU UNIVERSE AND ARE&lt;br&gt;NOT TO BE SOLD, PRINTED OR USED WITHOUT THE WRITTEN CONSENT OF THE UNIX &lt;br&gt;GURU UNIVERSE. ALL TIPS ARE &amp;quot;USE AT YOUR OWN RISK&amp;quot;. UGU  ADVISES THAT &lt;br&gt;ALL TIPS BE TESTED IN A NON-PRODUCTION DEVELOPMENT ENVIRONMENT FIRST.&lt;p&gt;Unix Guru Universe - &lt;a href="http://www.ugu.com"&gt;www.ugu.com&lt;/a&gt; - &lt;a href="mailto:tips@ugu.com"&gt;tips@ugu.com&lt;/a&gt; - Copyright 1994-2001&lt;br&gt;==========================================================================&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-9968511444533992";
google_ad_host = "pub-1556223355139109";
/* 728x90, created 3/23/10 */
google_ad_slot = "8218028202";
google_ad_width = 728;
google_ad_height = 90;
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8690484772340382874-7690280128285385629?l=unix-linux-tips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unix-linux-tips.blogspot.com/feeds/7690280128285385629/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/11/unix-tip-monitoring-root-in-password.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/7690280128285385629'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/7690280128285385629'/><link rel='alternate' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/11/unix-tip-monitoring-root-in-password.html' title='Unix Tip: MONITORING ROOT IN THE PASSWORD FILE'/><author><name>aboen</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://4.bp.blogspot.com/_PNxtMYqpu08/SaIb5xrIbGI/AAAAAAAAAZQ/qB_0YHjo_Y4/S220/Idiot2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8690484772340382874.post-2355415128086954165</id><published>2011-11-03T01:43:00.001-07:00</published><updated>2011-11-03T01:43:08.278-07:00</updated><title type='text'>Unix Tip: CREATE YOUR OWN GROUP ALIASES</title><content type='html'>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;			      UNIX GURU UNIVERSE &lt;br&gt;			         UNIX HOT TIP&lt;p&gt;			Unix Tip 3555 - November  3, 2011&lt;p&gt;		    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;&lt;br&gt;CREATE YOUR OWN GROUP ALIASES&lt;p&gt;If you want to create an alias for a group of people with&lt;br&gt;similar interests, on your workstation (Say a SUN&lt;br&gt;workstation), then include the following line at the end&lt;br&gt;of the file /etc/aliases and run the command /bin/newaliases&lt;p&gt;unixtips: &lt;a href="mailto:bhavin@foobar.com"&gt;bhavin@foobar.com&lt;/a&gt;, &lt;a href="mailto:atulk@foobar.com"&gt;atulk@foobar.com&lt;/a&gt;, &lt;a href="mailto:virajpikle@mail.com"&gt;virajpikle@mail.com&lt;/a&gt;&lt;p&gt;Now, an e-mail sent to&lt;br&gt;&lt;a href="mailto:alias_name@workstation_name.foobar.com"&gt;alias_name@workstation_name.foobar.com&lt;/a&gt;&lt;br&gt;will be bounced to the addresses listed above in the &lt;br&gt;/etc/aliases file.&lt;p&gt;In other words, if my workstation name is &amp;quot;soorya&amp;quot;,&lt;br&gt;an e-mail sent to &lt;br&gt;  &lt;a href="mailto:unixtips@soorya.foobar.com"&gt;unixtips@soorya.foobar.com&lt;/a&gt; &lt;br&gt;will be bounced to &lt;br&gt;  &lt;a href="mailto:bhavin@foobar.com"&gt;bhavin@foobar.com&lt;/a&gt;,&lt;br&gt;  &lt;a href="mailto:atulk@foobar.com"&gt;atulk@foobar.com&lt;/a&gt;, and&lt;br&gt;  &lt;a href="mailto:virajpikle@mail.com"&gt;virajpikle@mail.com&lt;/a&gt;&lt;p&gt;&lt;br&gt;This tip generously supported by: &lt;a href="mailto:bhavin@informix.com"&gt;bhavin@informix.com&lt;/a&gt;&lt;p&gt;&lt;br&gt;--------------------------------------------------------------------------&lt;br&gt;To Subscribe:    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.subscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.subscribe&lt;/a&gt;&lt;br&gt;To Unsubscribe:  &lt;a href="http://www.ugu.com/sui/ugu/show?tip.unsubscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.unsubscribe&lt;/a&gt;&lt;br&gt;To Submit A Tip: &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;==========================================================================&lt;br&gt;DISCLAIMER: All UNIX HOT TIPS ARE OWNED BY THE UNIX GURU UNIVERSE AND ARE&lt;br&gt;NOT TO BE SOLD, PRINTED OR USED WITHOUT THE WRITTEN CONSENT OF THE UNIX &lt;br&gt;GURU UNIVERSE. ALL TIPS ARE &amp;quot;USE AT YOUR OWN RISK&amp;quot;. UGU  ADVISES THAT &lt;br&gt;ALL TIPS BE TESTED IN A NON-PRODUCTION DEVELOPMENT ENVIRONMENT FIRST.&lt;p&gt;Unix Guru Universe - &lt;a href="http://www.ugu.com"&gt;www.ugu.com&lt;/a&gt; - &lt;a href="mailto:tips@ugu.com"&gt;tips@ugu.com&lt;/a&gt; - Copyright 1994-2001&lt;br&gt;==========================================================================&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-9968511444533992";
google_ad_host = "pub-1556223355139109";
/* 728x90, created 3/23/10 */
google_ad_slot = "8218028202";
google_ad_width = 728;
google_ad_height = 90;
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8690484772340382874-2355415128086954165?l=unix-linux-tips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unix-linux-tips.blogspot.com/feeds/2355415128086954165/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/11/unix-tip-create-your-own-group-aliases.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/2355415128086954165'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/2355415128086954165'/><link rel='alternate' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/11/unix-tip-create-your-own-group-aliases.html' title='Unix Tip: CREATE YOUR OWN GROUP ALIASES'/><author><name>aboen</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://4.bp.blogspot.com/_PNxtMYqpu08/SaIb5xrIbGI/AAAAAAAAAZQ/qB_0YHjo_Y4/S220/Idiot2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8690484772340382874.post-2772969118887812894</id><published>2011-11-02T01:43:00.001-07:00</published><updated>2011-11-02T01:43:10.350-07:00</updated><title type='text'>Unix Tip: KILL X</title><content type='html'>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;			      UNIX GURU UNIVERSE &lt;br&gt;			         UNIX HOT TIP&lt;p&gt;			Unix Tip 3554 - November  2, 2011&lt;p&gt;		    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;&lt;br&gt;KILL X&lt;p&gt;Quick way to close your X login session (for SysV)&lt;p&gt;for PID in `ps -u$USER | grep &amp;quot;fv[wm]&amp;quot; | awk &amp;#39;{print $1}&amp;#39;`; do kill -9 $PID; done&lt;p&gt;Or throw it into a shell script:&lt;p&gt;--- cut here ---&lt;br&gt;#!/bin/sh&lt;p&gt;for PID in `ps -u$USER | grep &amp;quot;fv[wm]&amp;quot; | awk &amp;#39;{print $1}&amp;#39;`; do&lt;br&gt;     kill -9 -$PID&lt;br&gt;done&lt;br&gt;--- cut here ---&lt;p&gt;(the [] conceal the grep from ps, which would mean it would &lt;br&gt;kill itself before doing anything useful. as written up, &lt;br&gt;it looks for fvwm&amp;#39;s process, which is the window manager I &lt;br&gt;use; rewrite it as needed i.e. for Motif - mwm, &lt;br&gt;Open Look - olwm, etc.)&lt;p&gt;Write this up in a shell script contained in your $PATH &lt;br&gt;or alias it and you&amp;#39;re cooking with gas.&lt;p&gt;This tip generously supported by: &lt;a href="mailto:klaus@imprint.uwaterloo.ca"&gt;klaus@imprint.uwaterloo.ca&lt;/a&gt;&lt;p&gt;&lt;br&gt;--------------------------------------------------------------------------&lt;br&gt;To Subscribe:    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.subscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.subscribe&lt;/a&gt;&lt;br&gt;To Unsubscribe:  &lt;a href="http://www.ugu.com/sui/ugu/show?tip.unsubscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.unsubscribe&lt;/a&gt;&lt;br&gt;To Submit A Tip: &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;==========================================================================&lt;br&gt;DISCLAIMER: All UNIX HOT TIPS ARE OWNED BY THE UNIX GURU UNIVERSE AND ARE&lt;br&gt;NOT TO BE SOLD, PRINTED OR USED WITHOUT THE WRITTEN CONSENT OF THE UNIX &lt;br&gt;GURU UNIVERSE. ALL TIPS ARE &amp;quot;USE AT YOUR OWN RISK&amp;quot;. UGU  ADVISES THAT &lt;br&gt;ALL TIPS BE TESTED IN A NON-PRODUCTION DEVELOPMENT ENVIRONMENT FIRST.&lt;p&gt;Unix Guru Universe - &lt;a href="http://www.ugu.com"&gt;www.ugu.com&lt;/a&gt; - &lt;a href="mailto:tips@ugu.com"&gt;tips@ugu.com&lt;/a&gt; - Copyright 1994-2001&lt;br&gt;==========================================================================&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-9968511444533992";
google_ad_host = "pub-1556223355139109";
/* 728x90, created 3/23/10 */
google_ad_slot = "8218028202";
google_ad_width = 728;
google_ad_height = 90;
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8690484772340382874-2772969118887812894?l=unix-linux-tips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unix-linux-tips.blogspot.com/feeds/2772969118887812894/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/11/unix-tip-kill-x.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/2772969118887812894'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/2772969118887812894'/><link rel='alternate' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/11/unix-tip-kill-x.html' title='Unix Tip: KILL X'/><author><name>aboen</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://4.bp.blogspot.com/_PNxtMYqpu08/SaIb5xrIbGI/AAAAAAAAAZQ/qB_0YHjo_Y4/S220/Idiot2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8690484772340382874.post-5213403899758698124</id><published>2011-11-01T01:43:00.001-07:00</published><updated>2011-11-01T01:43:11.447-07:00</updated><title type='text'>Unix Tip: ALTERNATIVE TO CP</title><content type='html'>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;			      UNIX GURU UNIVERSE &lt;br&gt;			         UNIX HOT TIP&lt;p&gt;			Unix Tip 3553 - November  1, 2011&lt;p&gt;		    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;&lt;br&gt;ALTERNATIVE TO CP&lt;p&gt;Define the following alias:&lt;p&gt;tar cvf - . | ( cd \!* ; tar xvf - )&lt;p&gt;or as an alias:&lt;p&gt;alias cpbytar &amp;#39;tar cvf - . | ( cd \!* ; tar xvf - )&amp;#39;&lt;br&gt;(The alias definition above is for CSH)&lt;p&gt;To do a recursive copy of a directory to another location,&lt;br&gt;preserving the PERMISSIONS and OWNERSHIP of the files.&lt;br&gt;&amp;quot;cd&amp;quot; to the source location and invoke the following alias&lt;p&gt;cpbytar &amp;lt;destination_directory&amp;gt;&lt;p&gt;This tip generously supported by: &lt;a href="mailto:bhavin@informix.com"&gt;bhavin@informix.com&lt;/a&gt;&lt;p&gt;&lt;p&gt;--------------------------------------------------------------------------&lt;br&gt;To Subscribe:    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.subscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.subscribe&lt;/a&gt;&lt;br&gt;To Unsubscribe:  &lt;a href="http://www.ugu.com/sui/ugu/show?tip.unsubscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.unsubscribe&lt;/a&gt;&lt;br&gt;To Submit A Tip: &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;==========================================================================&lt;br&gt;DISCLAIMER: All UNIX HOT TIPS ARE OWNED BY THE UNIX GURU UNIVERSE AND ARE&lt;br&gt;NOT TO BE SOLD, PRINTED OR USED WITHOUT THE WRITTEN CONSENT OF THE UNIX &lt;br&gt;GURU UNIVERSE. ALL TIPS ARE &amp;quot;USE AT YOUR OWN RISK&amp;quot;. UGU  ADVISES THAT &lt;br&gt;ALL TIPS BE TESTED IN A NON-PRODUCTION DEVELOPMENT ENVIRONMENT FIRST.&lt;p&gt;Unix Guru Universe - &lt;a href="http://www.ugu.com"&gt;www.ugu.com&lt;/a&gt; - &lt;a href="mailto:tips@ugu.com"&gt;tips@ugu.com&lt;/a&gt; - Copyright 1994-2001&lt;br&gt;==========================================================================&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-9968511444533992";
google_ad_host = "pub-1556223355139109";
/* 728x90, created 3/23/10 */
google_ad_slot = "8218028202";
google_ad_width = 728;
google_ad_height = 90;
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8690484772340382874-5213403899758698124?l=unix-linux-tips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unix-linux-tips.blogspot.com/feeds/5213403899758698124/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/11/unix-tip-alternative-to-cp.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/5213403899758698124'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/5213403899758698124'/><link rel='alternate' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/11/unix-tip-alternative-to-cp.html' title='Unix Tip: ALTERNATIVE TO CP'/><author><name>aboen</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://4.bp.blogspot.com/_PNxtMYqpu08/SaIb5xrIbGI/AAAAAAAAAZQ/qB_0YHjo_Y4/S220/Idiot2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8690484772340382874.post-5832700909664376337</id><published>2011-10-31T01:43:00.001-07:00</published><updated>2011-10-31T01:43:13.888-07:00</updated><title type='text'>Unix Tip: -------- REMOVE THE DASHES</title><content type='html'>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;			      UNIX GURU UNIVERSE &lt;br&gt;			         UNIX HOT TIP&lt;p&gt;			Unix Tip 3552 - October 31, 2011&lt;p&gt;		    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;&lt;br&gt;-------- REMOVE THE DASHES&lt;p&gt;Have you ever accidentally created a file beginning with &amp;#39;-&amp;#39;?&lt;br&gt;It happens often by mistake and from the first look it seems&lt;br&gt;like you can&amp;#39;t delete the file (rm thinks the initial - is an&lt;br&gt;option, and doesn&amp;#39;t recognize the file).&lt;p&gt;The simple, quick way around this is the -- option to rm.&lt;br&gt;Say you had the file ---hey in the current directory:&lt;p&gt;$ ls ---hey&lt;p&gt;/bin/ls: unrecognized option `---hey&amp;#39;&lt;br&gt;Try `/bin/ls --help&amp;#39; for more information.&lt;p&gt;$ ls|grep hey&lt;br&gt;---hey&lt;p&gt;$ rm ---hey&lt;br&gt;rm: unrecognized option `---hey&amp;#39;&lt;p&gt;Try `rm --help&amp;#39; for more information.&lt;br&gt;$ rm -- ---hey&lt;p&gt;( ls also has an -- option: )&lt;p&gt;$ ls -- ---hey&lt;br&gt;/bin/ls: ---hey: No such file or directory&lt;br&gt;$&lt;p&gt;This tip generously supported by: &lt;a href="mailto:root@analog.org"&gt;root@analog.org&lt;/a&gt;&lt;p&gt;&lt;br&gt;--------------------------------------------------------------------------&lt;br&gt;To Subscribe:    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.subscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.subscribe&lt;/a&gt;&lt;br&gt;To Unsubscribe:  &lt;a href="http://www.ugu.com/sui/ugu/show?tip.unsubscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.unsubscribe&lt;/a&gt;&lt;br&gt;To Submit A Tip: &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;==========================================================================&lt;br&gt;DISCLAIMER: All UNIX HOT TIPS ARE OWNED BY THE UNIX GURU UNIVERSE AND ARE&lt;br&gt;NOT TO BE SOLD, PRINTED OR USED WITHOUT THE WRITTEN CONSENT OF THE UNIX &lt;br&gt;GURU UNIVERSE. ALL TIPS ARE &amp;quot;USE AT YOUR OWN RISK&amp;quot;. UGU  ADVISES THAT &lt;br&gt;ALL TIPS BE TESTED IN A NON-PRODUCTION DEVELOPMENT ENVIRONMENT FIRST.&lt;p&gt;Unix Guru Universe - &lt;a href="http://www.ugu.com"&gt;www.ugu.com&lt;/a&gt; - &lt;a href="mailto:tips@ugu.com"&gt;tips@ugu.com&lt;/a&gt; - Copyright 1994-2001&lt;br&gt;==========================================================================&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-9968511444533992";
google_ad_host = "pub-1556223355139109";
/* 728x90, created 3/23/10 */
google_ad_slot = "8218028202";
google_ad_width = 728;
google_ad_height = 90;
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8690484772340382874-5832700909664376337?l=unix-linux-tips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unix-linux-tips.blogspot.com/feeds/5832700909664376337/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/10/unix-tip-remove-dashes.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/5832700909664376337'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/5832700909664376337'/><link rel='alternate' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/10/unix-tip-remove-dashes.html' title='Unix Tip: -------- REMOVE THE DASHES'/><author><name>aboen</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://4.bp.blogspot.com/_PNxtMYqpu08/SaIb5xrIbGI/AAAAAAAAAZQ/qB_0YHjo_Y4/S220/Idiot2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8690484772340382874.post-1774494693796876856</id><published>2011-10-30T01:43:00.001-07:00</published><updated>2011-10-30T01:43:11.705-07:00</updated><title type='text'>Unix Tip: SEPARATE SHELL COMMAND HISTORY FILES</title><content type='html'>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;			      UNIX GURU UNIVERSE &lt;br&gt;			         UNIX HOT TIP&lt;p&gt;			Unix Tip 3551 - October 30, 2011&lt;p&gt;		    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;&lt;br&gt;SEPARATE SHELL COMMAND HISTORY FILES&lt;p&gt;In any X based desktop when the number of pseudo terminal &lt;br&gt;windows are more then one, the common shell history &lt;br&gt;file (KSH) becomes a nuisance. Here is a way to have &lt;br&gt;separate, safe and limited shell command history files. &lt;br&gt; &lt;br&gt;Put the following code in your shell RC file. &lt;br&gt; &lt;br&gt;--------------------------------CODE START------------------------------------&lt;br&gt;# Form a unique name for the shell history file using the tty output and&lt;br&gt;# set the shell variable HISTFILE to point to that&lt;br&gt;# This solves the problem of mutiple shells using the same history file&lt;br&gt;# and causing the confusion....&lt;br&gt;histf=`tty | awk &amp;#39;BEGIN {FS=&amp;quot;/&amp;quot;; nm=&amp;quot;.shist_&amp;quot;} { for (i=1; i&amp;lt;=NF; i++)  nm = nm&lt;br&gt;$i;} END { print nm;} &amp;#39;`&lt;br&gt;export HISTFILE=$histf&lt;br&gt;\rm -f $histf&lt;br&gt;echo History file is $histf...&lt;br&gt;--------------------------------CODE END------------------------------------&lt;p&gt;This tip generously supported by: &lt;a href="mailto:atulk@informix.com"&gt;atulk@informix.com&lt;/a&gt;&lt;p&gt;&lt;br&gt;--------------------------------------------------------------------------&lt;br&gt;To Subscribe:    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.subscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.subscribe&lt;/a&gt;&lt;br&gt;To Unsubscribe:  &lt;a href="http://www.ugu.com/sui/ugu/show?tip.unsubscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.unsubscribe&lt;/a&gt;&lt;br&gt;To Submit A Tip: &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;==========================================================================&lt;br&gt;DISCLAIMER: All UNIX HOT TIPS ARE OWNED BY THE UNIX GURU UNIVERSE AND ARE&lt;br&gt;NOT TO BE SOLD, PRINTED OR USED WITHOUT THE WRITTEN CONSENT OF THE UNIX &lt;br&gt;GURU UNIVERSE. ALL TIPS ARE &amp;quot;USE AT YOUR OWN RISK&amp;quot;. UGU  ADVISES THAT &lt;br&gt;ALL TIPS BE TESTED IN A NON-PRODUCTION DEVELOPMENT ENVIRONMENT FIRST.&lt;p&gt;Unix Guru Universe - &lt;a href="http://www.ugu.com"&gt;www.ugu.com&lt;/a&gt; - &lt;a href="mailto:tips@ugu.com"&gt;tips@ugu.com&lt;/a&gt; - Copyright 1994-2001&lt;br&gt;==========================================================================&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-9968511444533992";
google_ad_host = "pub-1556223355139109";
/* 728x90, created 3/23/10 */
google_ad_slot = "8218028202";
google_ad_width = 728;
google_ad_height = 90;
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8690484772340382874-1774494693796876856?l=unix-linux-tips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unix-linux-tips.blogspot.com/feeds/1774494693796876856/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/10/unix-tip-separate-shell-command-history.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/1774494693796876856'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/1774494693796876856'/><link rel='alternate' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/10/unix-tip-separate-shell-command-history.html' title='Unix Tip: SEPARATE SHELL COMMAND HISTORY FILES'/><author><name>aboen</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://4.bp.blogspot.com/_PNxtMYqpu08/SaIb5xrIbGI/AAAAAAAAAZQ/qB_0YHjo_Y4/S220/Idiot2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8690484772340382874.post-5478191399497222524</id><published>2011-10-29T01:43:00.001-07:00</published><updated>2011-10-29T01:43:09.785-07:00</updated><title type='text'>Unix Tip: SHARING STDIN/STDOUT ON 2 TERMINALS</title><content type='html'>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;			      UNIX GURU UNIVERSE &lt;br&gt;			         UNIX HOT TIP&lt;p&gt;			Unix Tip 3550 - October 29, 2011&lt;p&gt;		    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;&lt;br&gt;SHARING STDIN/STDOUT ON 2 TERMINALS&lt;p&gt;&lt;br&gt;Ever wanted the standard input and standard output &lt;br&gt;to be shared on two terminals?&lt;p&gt;Try the following short script, &lt;p&gt;------------------- CUT HERE -------------------------&lt;p&gt;[ $# -lt 2 ] &amp;amp;&amp;amp; echo &amp;quot;Usage: $0 program ttytodupon&amp;quot; &amp;amp;&amp;amp; exit 2&lt;br&gt;mytty=`tty`&lt;br&gt;prog=$1&lt;br&gt;othertty=$2&lt;br&gt;sh -c &amp;quot;$prog|tee -a $mytty&amp;quot; 1&amp;gt;$othertty 2&amp;gt;&amp;amp;1 0&amp;gt;$othertty&lt;p&gt;------------------- CUT HERE -------------------------&lt;br&gt;This tip generously supported by: &lt;a href="mailto:ian@kiwiplan.co.nz"&gt;ian@kiwiplan.co.nz&lt;/a&gt;&lt;p&gt;&lt;br&gt;--------------------------------------------------------------------------&lt;br&gt;To Subscribe:    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.subscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.subscribe&lt;/a&gt;&lt;br&gt;To Unsubscribe:  &lt;a href="http://www.ugu.com/sui/ugu/show?tip.unsubscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.unsubscribe&lt;/a&gt;&lt;br&gt;To Submit A Tip: &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;==========================================================================&lt;br&gt;DISCLAIMER: All UNIX HOT TIPS ARE OWNED BY THE UNIX GURU UNIVERSE AND ARE&lt;br&gt;NOT TO BE SOLD, PRINTED OR USED WITHOUT THE WRITTEN CONSENT OF THE UNIX &lt;br&gt;GURU UNIVERSE. ALL TIPS ARE &amp;quot;USE AT YOUR OWN RISK&amp;quot;. UGU  ADVISES THAT &lt;br&gt;ALL TIPS BE TESTED IN A NON-PRODUCTION DEVELOPMENT ENVIRONMENT FIRST.&lt;p&gt;Unix Guru Universe - &lt;a href="http://www.ugu.com"&gt;www.ugu.com&lt;/a&gt; - &lt;a href="mailto:tips@ugu.com"&gt;tips@ugu.com&lt;/a&gt; - Copyright 1994-2001&lt;br&gt;==========================================================================&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-9968511444533992";
google_ad_host = "pub-1556223355139109";
/* 728x90, created 3/23/10 */
google_ad_slot = "8218028202";
google_ad_width = 728;
google_ad_height = 90;
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8690484772340382874-5478191399497222524?l=unix-linux-tips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unix-linux-tips.blogspot.com/feeds/5478191399497222524/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/10/unix-tip-sharing-stdinstdout-on-2.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/5478191399497222524'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/5478191399497222524'/><link rel='alternate' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/10/unix-tip-sharing-stdinstdout-on-2.html' title='Unix Tip: SHARING STDIN/STDOUT ON 2 TERMINALS'/><author><name>aboen</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://4.bp.blogspot.com/_PNxtMYqpu08/SaIb5xrIbGI/AAAAAAAAAZQ/qB_0YHjo_Y4/S220/Idiot2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8690484772340382874.post-3846727078435191881</id><published>2011-10-28T01:43:00.001-07:00</published><updated>2011-10-28T01:43:16.363-07:00</updated><title type='text'>Unix Tip: SET REMOTE DISPLAY QUICKLY</title><content type='html'>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;			      UNIX GURU UNIVERSE &lt;br&gt;			         UNIX HOT TIP&lt;p&gt;			Unix Tip 3549 - October 28, 2011&lt;p&gt;		    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;&lt;br&gt;SET REMOTE DISPLAY QUICKLY&lt;p&gt;If the environment and home directory structure&lt;br&gt;are centralized, then build a set of alias tables&lt;br&gt;for setting the display for all remote machines&lt;br&gt;that may get logged into remotely or administrate&lt;br&gt;remotely. In the long run it will save time.&lt;p&gt;alias &amp;#39;setwad setenv DISPLAY wad:0&amp;#39;&lt;br&gt;alias &amp;#39;setspot setenv DISPLAY spot:0&amp;#39;&lt;br&gt;alias &amp;#39;settrash setenv DISPLAY trash:0&amp;#39;&lt;p&gt;&lt;br&gt;--------------------------------------------------------------------------&lt;br&gt;To Subscribe:    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.subscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.subscribe&lt;/a&gt;&lt;br&gt;To Unsubscribe:  &lt;a href="http://www.ugu.com/sui/ugu/show?tip.unsubscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.unsubscribe&lt;/a&gt;&lt;br&gt;To Submit A Tip: &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;==========================================================================&lt;br&gt;DISCLAIMER: All UNIX HOT TIPS ARE OWNED BY THE UNIX GURU UNIVERSE AND ARE&lt;br&gt;NOT TO BE SOLD, PRINTED OR USED WITHOUT THE WRITTEN CONSENT OF THE UNIX &lt;br&gt;GURU UNIVERSE. ALL TIPS ARE &amp;quot;USE AT YOUR OWN RISK&amp;quot;. UGU  ADVISES THAT &lt;br&gt;ALL TIPS BE TESTED IN A NON-PRODUCTION DEVELOPMENT ENVIRONMENT FIRST.&lt;p&gt;Unix Guru Universe - &lt;a href="http://www.ugu.com"&gt;www.ugu.com&lt;/a&gt; - &lt;a href="mailto:tips@ugu.com"&gt;tips@ugu.com&lt;/a&gt; - Copyright 1994-2001&lt;br&gt;==========================================================================&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-9968511444533992";
google_ad_host = "pub-1556223355139109";
/* 728x90, created 3/23/10 */
google_ad_slot = "8218028202";
google_ad_width = 728;
google_ad_height = 90;
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8690484772340382874-3846727078435191881?l=unix-linux-tips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unix-linux-tips.blogspot.com/feeds/3846727078435191881/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/10/unix-tip-set-remote-display-quickly.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/3846727078435191881'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/3846727078435191881'/><link rel='alternate' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/10/unix-tip-set-remote-display-quickly.html' title='Unix Tip: SET REMOTE DISPLAY QUICKLY'/><author><name>aboen</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://4.bp.blogspot.com/_PNxtMYqpu08/SaIb5xrIbGI/AAAAAAAAAZQ/qB_0YHjo_Y4/S220/Idiot2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8690484772340382874.post-764242685803218029</id><published>2011-10-27T01:43:00.001-07:00</published><updated>2011-10-27T01:43:11.709-07:00</updated><title type='text'>Unix Tip: MULTI-SYSADMIN MONITORING</title><content type='html'>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;			      UNIX GURU UNIVERSE &lt;br&gt;			         UNIX HOT TIP&lt;p&gt;			Unix Tip 3548 - October 27, 2011&lt;p&gt;		    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;&lt;br&gt;MULTI-SYSADMIN MONITORING&lt;p&gt;To can see what someone logged in as root is running,&lt;br&gt;if root&amp;#39;s shell uses .sh_history ( ksh, for example ) do:&lt;p&gt;# tail -f /.sh_history&lt;p&gt;This is good in multi-Sysadm environments when you want to &lt;br&gt;get an idea of what another admin is doing to fix something.&lt;p&gt;&lt;p&gt;--------------------------------------------------------------------------&lt;br&gt;To Subscribe:    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.subscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.subscribe&lt;/a&gt;&lt;br&gt;To Unsubscribe:  &lt;a href="http://www.ugu.com/sui/ugu/show?tip.unsubscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.unsubscribe&lt;/a&gt;&lt;br&gt;To Submit A Tip: &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;==========================================================================&lt;br&gt;DISCLAIMER: All UNIX HOT TIPS ARE OWNED BY THE UNIX GURU UNIVERSE AND ARE&lt;br&gt;NOT TO BE SOLD, PRINTED OR USED WITHOUT THE WRITTEN CONSENT OF THE UNIX &lt;br&gt;GURU UNIVERSE. ALL TIPS ARE &amp;quot;USE AT YOUR OWN RISK&amp;quot;. UGU  ADVISES THAT &lt;br&gt;ALL TIPS BE TESTED IN A NON-PRODUCTION DEVELOPMENT ENVIRONMENT FIRST.&lt;p&gt;Unix Guru Universe - &lt;a href="http://www.ugu.com"&gt;www.ugu.com&lt;/a&gt; - &lt;a href="mailto:tips@ugu.com"&gt;tips@ugu.com&lt;/a&gt; - Copyright 1994-2001&lt;br&gt;==========================================================================&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-9968511444533992";
google_ad_host = "pub-1556223355139109";
/* 728x90, created 3/23/10 */
google_ad_slot = "8218028202";
google_ad_width = 728;
google_ad_height = 90;
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8690484772340382874-764242685803218029?l=unix-linux-tips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unix-linux-tips.blogspot.com/feeds/764242685803218029/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/10/unix-tip-multi-sysadmin-monitoring.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/764242685803218029'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/764242685803218029'/><link rel='alternate' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/10/unix-tip-multi-sysadmin-monitoring.html' title='Unix Tip: MULTI-SYSADMIN MONITORING'/><author><name>aboen</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://4.bp.blogspot.com/_PNxtMYqpu08/SaIb5xrIbGI/AAAAAAAAAZQ/qB_0YHjo_Y4/S220/Idiot2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8690484772340382874.post-2381171860144232373</id><published>2011-10-26T01:43:00.001-07:00</published><updated>2011-10-26T01:43:11.777-07:00</updated><title type='text'>Unix Tip: ABBREVIATE IN VI</title><content type='html'>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;			      UNIX GURU UNIVERSE &lt;br&gt;			         UNIX HOT TIP&lt;p&gt;			Unix Tip 3547 - October 26, 2011&lt;p&gt;		    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;&lt;br&gt;ABBREVIATE IN VI&lt;p&gt;Using .exrc file&lt;p&gt;Abbreviate in vi...&lt;br&gt;As well as using map in your .exrc file, you can use the command:&lt;p&gt;ab &lt;br&gt;For example:&lt;br&gt;ab xmas Christmas&lt;p&gt;So whenever you type xmas - Christmas will be displayed.&lt;br&gt;Handy for writing the /etc/motd file (maint - maintenance etc).&lt;p&gt;You can also use the standard set commands - for example:&lt;br&gt;set number (handy for programmers)&lt;br&gt;set redraw&lt;br&gt;set warn (flashes screen instead of using the bell)&lt;p&gt;This tip generously supported by: &lt;a href="mailto:mbatchelor@enterprise.net"&gt;mbatchelor@enterprise.net&lt;/a&gt;&lt;p&gt;&lt;br&gt;--------------------------------------------------------------------------&lt;br&gt;To Subscribe:    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.subscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.subscribe&lt;/a&gt;&lt;br&gt;To Unsubscribe:  &lt;a href="http://www.ugu.com/sui/ugu/show?tip.unsubscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.unsubscribe&lt;/a&gt;&lt;br&gt;To Submit A Tip: &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;==========================================================================&lt;br&gt;DISCLAIMER: All UNIX HOT TIPS ARE OWNED BY THE UNIX GURU UNIVERSE AND ARE&lt;br&gt;NOT TO BE SOLD, PRINTED OR USED WITHOUT THE WRITTEN CONSENT OF THE UNIX &lt;br&gt;GURU UNIVERSE. ALL TIPS ARE &amp;quot;USE AT YOUR OWN RISK&amp;quot;. UGU  ADVISES THAT &lt;br&gt;ALL TIPS BE TESTED IN A NON-PRODUCTION DEVELOPMENT ENVIRONMENT FIRST.&lt;p&gt;Unix Guru Universe - &lt;a href="http://www.ugu.com"&gt;www.ugu.com&lt;/a&gt; - &lt;a href="mailto:tips@ugu.com"&gt;tips@ugu.com&lt;/a&gt; - Copyright 1994-2001&lt;br&gt;==========================================================================&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-9968511444533992";
google_ad_host = "pub-1556223355139109";
/* 728x90, created 3/23/10 */
google_ad_slot = "8218028202";
google_ad_width = 728;
google_ad_height = 90;
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8690484772340382874-2381171860144232373?l=unix-linux-tips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unix-linux-tips.blogspot.com/feeds/2381171860144232373/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/10/unix-tip-abbreviate-in-vi.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/2381171860144232373'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/2381171860144232373'/><link rel='alternate' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/10/unix-tip-abbreviate-in-vi.html' title='Unix Tip: ABBREVIATE IN VI'/><author><name>aboen</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://4.bp.blogspot.com/_PNxtMYqpu08/SaIb5xrIbGI/AAAAAAAAAZQ/qB_0YHjo_Y4/S220/Idiot2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8690484772340382874.post-8387187238823393182</id><published>2011-10-25T01:43:00.001-07:00</published><updated>2011-10-25T01:43:13.763-07:00</updated><title type='text'>Unix Tip: BACKUP CRITICAL SYSTEM FILES</title><content type='html'>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;			      UNIX GURU UNIVERSE &lt;br&gt;			         UNIX HOT TIP&lt;p&gt;			Unix Tip 3546 - October 25, 2011&lt;p&gt;		    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;&lt;br&gt;BACKUP CRITICAL SYSTEM FILES&lt;p&gt;Before modifying critical system files, make a backup copy&lt;br&gt;using the date as an extension:&lt;p&gt;$ cp /etc/hosts /etc/hosts.971006&lt;p&gt;If you keep a number of these they provide a potentially&lt;br&gt;valuable archive as well as a means of finding out any&lt;br&gt;changes that have been made and when.&lt;p&gt;&lt;p&gt;--------------------------------------------------------------------------&lt;br&gt;To Subscribe:    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.subscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.subscribe&lt;/a&gt;&lt;br&gt;To Unsubscribe:  &lt;a href="http://www.ugu.com/sui/ugu/show?tip.unsubscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.unsubscribe&lt;/a&gt;&lt;br&gt;To Submit A Tip: &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;==========================================================================&lt;br&gt;DISCLAIMER: All UNIX HOT TIPS ARE OWNED BY THE UNIX GURU UNIVERSE AND ARE&lt;br&gt;NOT TO BE SOLD, PRINTED OR USED WITHOUT THE WRITTEN CONSENT OF THE UNIX &lt;br&gt;GURU UNIVERSE. ALL TIPS ARE &amp;quot;USE AT YOUR OWN RISK&amp;quot;. UGU  ADVISES THAT &lt;br&gt;ALL TIPS BE TESTED IN A NON-PRODUCTION DEVELOPMENT ENVIRONMENT FIRST.&lt;p&gt;Unix Guru Universe - &lt;a href="http://www.ugu.com"&gt;www.ugu.com&lt;/a&gt; - &lt;a href="mailto:tips@ugu.com"&gt;tips@ugu.com&lt;/a&gt; - Copyright 1994-2001&lt;br&gt;==========================================================================&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-9968511444533992";
google_ad_host = "pub-1556223355139109";
/* 728x90, created 3/23/10 */
google_ad_slot = "8218028202";
google_ad_width = 728;
google_ad_height = 90;
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8690484772340382874-8387187238823393182?l=unix-linux-tips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unix-linux-tips.blogspot.com/feeds/8387187238823393182/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/10/unix-tip-backup-critical-system-files.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/8387187238823393182'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/8387187238823393182'/><link rel='alternate' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/10/unix-tip-backup-critical-system-files.html' title='Unix Tip: BACKUP CRITICAL SYSTEM FILES'/><author><name>aboen</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://4.bp.blogspot.com/_PNxtMYqpu08/SaIb5xrIbGI/AAAAAAAAAZQ/qB_0YHjo_Y4/S220/Idiot2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8690484772340382874.post-8274972265460562877</id><published>2011-10-24T01:43:00.001-07:00</published><updated>2011-10-24T01:43:13.273-07:00</updated><title type='text'>Unix Tip: QUICK UNALIAS</title><content type='html'>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;			      UNIX GURU UNIVERSE &lt;br&gt;			         UNIX HOT TIP&lt;p&gt;			Unix Tip 3545 - October 24, 2011&lt;p&gt;		    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;&lt;br&gt;QUICK UNALIAS&lt;p&gt;If you have aliased a command to somehting and want to quickly&lt;br&gt;unalias it, preceed the name with a backslash, &amp;#39;\&amp;#39;, and it&lt;br&gt;will have the original meaning. For example, if you have &amp;#39;rm&amp;#39;&lt;br&gt;aliased to &amp;#39;rm -i&amp;#39; and want to remove one entire directory without&lt;br&gt;being prompted for each file, you would do:&lt;p&gt;$ \rm -fr dirname&lt;p&gt;where &amp;#39;dirname&amp;#39; is the directory you want to trash.&lt;p&gt;This tip generously supported by: &lt;a href="mailto:khamsi@kmrmail.kmr.ll.mit.edu"&gt;khamsi@kmrmail.kmr.ll.mit.edu&lt;/a&gt;&lt;p&gt;&lt;br&gt;--------------------------------------------------------------------------&lt;br&gt;To Subscribe:    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.subscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.subscribe&lt;/a&gt;&lt;br&gt;To Unsubscribe:  &lt;a href="http://www.ugu.com/sui/ugu/show?tip.unsubscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.unsubscribe&lt;/a&gt;&lt;br&gt;To Submit A Tip: &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;==========================================================================&lt;br&gt;DISCLAIMER: All UNIX HOT TIPS ARE OWNED BY THE UNIX GURU UNIVERSE AND ARE&lt;br&gt;NOT TO BE SOLD, PRINTED OR USED WITHOUT THE WRITTEN CONSENT OF THE UNIX &lt;br&gt;GURU UNIVERSE. ALL TIPS ARE &amp;quot;USE AT YOUR OWN RISK&amp;quot;. UGU  ADVISES THAT &lt;br&gt;ALL TIPS BE TESTED IN A NON-PRODUCTION DEVELOPMENT ENVIRONMENT FIRST.&lt;p&gt;Unix Guru Universe - &lt;a href="http://www.ugu.com"&gt;www.ugu.com&lt;/a&gt; - &lt;a href="mailto:tips@ugu.com"&gt;tips@ugu.com&lt;/a&gt; - Copyright 1994-2001&lt;br&gt;==========================================================================&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-9968511444533992";
google_ad_host = "pub-1556223355139109";
/* 728x90, created 3/23/10 */
google_ad_slot = "8218028202";
google_ad_width = 728;
google_ad_height = 90;
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8690484772340382874-8274972265460562877?l=unix-linux-tips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unix-linux-tips.blogspot.com/feeds/8274972265460562877/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/10/unix-tip-quick-unalias.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/8274972265460562877'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/8274972265460562877'/><link rel='alternate' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/10/unix-tip-quick-unalias.html' title='Unix Tip: QUICK UNALIAS'/><author><name>aboen</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://4.bp.blogspot.com/_PNxtMYqpu08/SaIb5xrIbGI/AAAAAAAAAZQ/qB_0YHjo_Y4/S220/Idiot2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8690484772340382874.post-41152616789760477</id><published>2011-10-23T01:43:00.001-07:00</published><updated>2011-10-23T01:43:13.485-07:00</updated><title type='text'>Unix Tip: A REFRESHING X</title><content type='html'>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;			      UNIX GURU UNIVERSE &lt;br&gt;			         UNIX HOT TIP&lt;p&gt;			Unix Tip 3544 - October 23, 2011&lt;p&gt;		    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;&lt;br&gt;A REFRESHING X&lt;p&gt;If your X display gets messed up somehow,&lt;br&gt;run a program called &amp;quot;xrefresh&amp;quot; in your &lt;br&gt;X11R6 bin directory, it will clean up &lt;br&gt;the display so you don&amp;#39;t need to kill X.&lt;p&gt;This tip generously supported by: &lt;a href="mailto:kev@zebradale.com"&gt;kev@zebradale.com&lt;/a&gt;&lt;p&gt;&lt;br&gt;--------------------------------------------------------------------------&lt;br&gt;To Subscribe:    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.subscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.subscribe&lt;/a&gt;&lt;br&gt;To Unsubscribe:  &lt;a href="http://www.ugu.com/sui/ugu/show?tip.unsubscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.unsubscribe&lt;/a&gt;&lt;br&gt;To Submit A Tip: &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;==========================================================================&lt;br&gt;DISCLAIMER: All UNIX HOT TIPS ARE OWNED BY THE UNIX GURU UNIVERSE AND ARE&lt;br&gt;NOT TO BE SOLD, PRINTED OR USED WITHOUT THE WRITTEN CONSENT OF THE UNIX &lt;br&gt;GURU UNIVERSE. ALL TIPS ARE &amp;quot;USE AT YOUR OWN RISK&amp;quot;. UGU  ADVISES THAT &lt;br&gt;ALL TIPS BE TESTED IN A NON-PRODUCTION DEVELOPMENT ENVIRONMENT FIRST.&lt;p&gt;Unix Guru Universe - &lt;a href="http://www.ugu.com"&gt;www.ugu.com&lt;/a&gt; - &lt;a href="mailto:tips@ugu.com"&gt;tips@ugu.com&lt;/a&gt; - Copyright 1994-2001&lt;br&gt;==========================================================================&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-9968511444533992";
google_ad_host = "pub-1556223355139109";
/* 728x90, created 3/23/10 */
google_ad_slot = "8218028202";
google_ad_width = 728;
google_ad_height = 90;
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8690484772340382874-41152616789760477?l=unix-linux-tips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unix-linux-tips.blogspot.com/feeds/41152616789760477/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/10/unix-tip-refreshing-x.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/41152616789760477'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/41152616789760477'/><link rel='alternate' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/10/unix-tip-refreshing-x.html' title='Unix Tip: A REFRESHING X'/><author><name>aboen</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://4.bp.blogspot.com/_PNxtMYqpu08/SaIb5xrIbGI/AAAAAAAAAZQ/qB_0YHjo_Y4/S220/Idiot2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8690484772340382874.post-831162670292865664</id><published>2011-10-22T01:43:00.001-07:00</published><updated>2011-10-22T01:43:14.173-07:00</updated><title type='text'>Unix Tip: GENERATE RANGES OF NUMBERS</title><content type='html'>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;			      UNIX GURU UNIVERSE &lt;br&gt;			         UNIX HOT TIP&lt;p&gt;			Unix Tip 3543 - October 22, 2011&lt;p&gt;		    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=&lt;p&gt;&lt;br&gt;GENERATE RANGES OF NUMBERS&lt;p&gt;Sometimes it is necessary to generate a range of &lt;br&gt;numbers for further use within a command pipe or &lt;br&gt;shell script. This can be done with some simple &lt;br&gt;sh-code:&lt;p&gt;------------------------ CUT HERE ------------------&lt;p&gt;#! /bin/sh&lt;p&gt;# range - Generate of numbers.&lt;p&gt;lo=$1&lt;br&gt;hi=$2&lt;p&gt;while [ $lo -le $hi ]&lt;br&gt;do &lt;br&gt;  echo -n $lo &amp;quot; &amp;quot;&lt;br&gt;  lo=`expr $lo + 1`&lt;br&gt;done&lt;p&gt;------------------------ CUT HERE ------------------&lt;p&gt;It can now be used a way like:&lt;p&gt;for i in `range 69 4711`; do &amp;lt;some code&amp;gt;; done&lt;p&gt;This tip generously supported by: &lt;a href="mailto:ulli@ucrc.org"&gt;ulli@ucrc.org&lt;/a&gt;&lt;p&gt;&lt;p&gt;--------------------------------------------------------------------------&lt;br&gt;To Subscribe:    &lt;a href="http://www.ugu.com/sui/ugu/show?tip.subscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.subscribe&lt;/a&gt;&lt;br&gt;To Unsubscribe:  &lt;a href="http://www.ugu.com/sui/ugu/show?tip.unsubscribe"&gt;http://www.ugu.com/sui/ugu/show?tip.unsubscribe&lt;/a&gt;&lt;br&gt;To Submit A Tip: &lt;a href="http://www.ugu.com/sui/ugu/show?tip.today"&gt;http://www.ugu.com/sui/ugu/show?tip.today&lt;/a&gt;&lt;p&gt;==========================================================================&lt;br&gt;DISCLAIMER: All UNIX HOT TIPS ARE OWNED BY THE UNIX GURU UNIVERSE AND ARE&lt;br&gt;NOT TO BE SOLD, PRINTED OR USED WITHOUT THE WRITTEN CONSENT OF THE UNIX &lt;br&gt;GURU UNIVERSE. ALL TIPS ARE &amp;quot;USE AT YOUR OWN RISK&amp;quot;. UGU  ADVISES THAT &lt;br&gt;ALL TIPS BE TESTED IN A NON-PRODUCTION DEVELOPMENT ENVIRONMENT FIRST.&lt;p&gt;Unix Guru Universe - &lt;a href="http://www.ugu.com"&gt;www.ugu.com&lt;/a&gt; - &lt;a href="mailto:tips@ugu.com"&gt;tips@ugu.com&lt;/a&gt; - Copyright 1994-2001&lt;br&gt;==========================================================================&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-9968511444533992";
google_ad_host = "pub-1556223355139109";
/* 728x90, created 3/23/10 */
google_ad_slot = "8218028202";
google_ad_width = 728;
google_ad_height = 90;
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8690484772340382874-831162670292865664?l=unix-linux-tips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unix-linux-tips.blogspot.com/feeds/831162670292865664/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/10/unix-tip-generate-ranges-of-numbers.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/831162670292865664'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8690484772340382874/posts/default/831162670292865664'/><link rel='alternate' type='text/html' href='http://unix-linux-tips.blogspot.com/2011/10/unix-tip-generate-ranges-of-numbers.html' title='Unix Tip: GENERATE RANGES OF NUMBERS'/><author><name>aboen</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://4.bp.blogspot.com/_PNxtMYqpu08/SaIb5xrIbGI/AAAAAAAAAZQ/qB_0YHjo_Y4/S220/Idiot2.jpg'/></author><thr:total>0</thr:total></entry></feed>
