<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-1692868576301884060</id><updated>2024-08-29T17:39:28.151+05:30</updated><category term="finding hardware information"/><category term="hardware information"/><category term="pendrive application"/><category term="portable application"/><title type='text'>Vidya Sagar Karnati</title><subtitle type='html'>Winners don&#39;t do different things.They do things differently</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://sagarkarnati.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1692868576301884060/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://sagarkarnati.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Vidya Sagar Karnati</name><uri>http://www.blogger.com/profile/10219954276511429617</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>15</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1692868576301884060.post-636885840362206059</id><published>2011-03-03T14:36:00.001+05:30</published><updated>2011-03-03T14:36:31.595+05:30</updated><title type='text'>Debugging maven web application with eclipse</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;Recently I started a new JEE project using Maven2 as build tool, choice  done du to the different services that it offers for project with a lot  of modules and complex dependency ….&lt;br /&gt;
One of the problems that I faced is debugging web layer with respect to the directory structure of the default web archtype.&lt;br /&gt;
&lt;br /&gt;
Here is the best method I found to solve this need:&lt;br /&gt;
&lt;br /&gt;
I suppose that you already created a maven2 web project if not see :&lt;br /&gt;
&lt;a href=&quot;http://maven.apache.org/guides/mini/guide-webapp.html&quot;&gt;http://maven.apache.org/guides/mini/guide-webapp.html&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
To run http web server I use jetty plugin by simply adding the jetty plugin to the pom.xml&lt;br /&gt;
&lt;a href=&quot;http://jetty.mortbay.org/maven-plugin/howto.html&quot;&gt;http://jetty.mortbay.org/maven-plugin/howto.html&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
In  order to validate this phase it’s possible de run the web app from the  command line: mvn jetty:run and wating for maven to download the plugin  and if successful running the application.&lt;br /&gt;
&lt;br /&gt;
After that It’s time to configure eclipse for debugging the web app by selecting the Run &amp;gt; Debug … from the menu&lt;br /&gt;
# Set Main Class to &quot;org.codehaus.classworlds.Launcher&quot;&lt;br /&gt;
&lt;br /&gt;
Go to the argument tab:&lt;br /&gt;
# Set Program arguments to &quot;jetty6:run&quot;&lt;br /&gt;
# Set VM arguments to &quot;-Xmx512M -Dclassworlds.conf=[MAVEN_HOME]/bin/m2.conf -Dmaven.home=[MAVEN_HOME]&quot;&lt;br /&gt;
(Replace MAVEN_HOME with the location of maven on your system)&lt;br /&gt;
&lt;br /&gt;
Go to the classpath tab:&lt;br /&gt;
# remove the application from the user entries&lt;br /&gt;
# add the &quot;[MAVEN_HOME]/core/boot/classworlds-1.1.jar&quot; to the user entries&lt;br /&gt;
&lt;br /&gt;
Go to the source tab:&lt;br /&gt;
# add the current project to debug&lt;br /&gt;
&lt;br /&gt;
Now you can start debugging your application like you do it always&lt;br /&gt;
&lt;br /&gt;
It is very interesting to set the –o option to the maven command in order to accelerate the fix/debug process.&lt;br /&gt;
&lt;br /&gt;
Reference:&lt;br /&gt;
&lt;a href=&quot;http://mahertb.blogspot.com/2006/08/debugging-maven-web-application-with.html&quot;&gt;http://mahertb.blogspot.com/2006/08/debugging-maven-web-application-with.html&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sagarkarnati.blogspot.com/feeds/636885840362206059/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sagarkarnati.blogspot.com/2011/03/debugging-maven-web-application-with.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1692868576301884060/posts/default/636885840362206059'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1692868576301884060/posts/default/636885840362206059'/><link rel='alternate' type='text/html' href='http://sagarkarnati.blogspot.com/2011/03/debugging-maven-web-application-with.html' title='Debugging maven web application with eclipse'/><author><name>Vidya Sagar Karnati</name><uri>http://www.blogger.com/profile/10219954276511429617</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1692868576301884060.post-7255719792122732733</id><published>2011-02-09T14:46:00.003+05:30</published><updated>2011-02-09T14:46:50.046+05:30</updated><title type='text'>Apache -&gt; JBoss Loadbalancing Configuration Generator</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;http://lbconfig.appspot.com/?_sm_au_=iVV3HWj4D6KNk6NV&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sagarkarnati.blogspot.com/feeds/7255719792122732733/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sagarkarnati.blogspot.com/2011/02/apache-jboss-loadbalancing.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1692868576301884060/posts/default/7255719792122732733'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1692868576301884060/posts/default/7255719792122732733'/><link rel='alternate' type='text/html' href='http://sagarkarnati.blogspot.com/2011/02/apache-jboss-loadbalancing.html' title='Apache -&gt; JBoss Loadbalancing Configuration Generator'/><author><name>Vidya Sagar Karnati</name><uri>http://www.blogger.com/profile/10219954276511429617</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1692868576301884060.post-2830331115128470756</id><published>2011-02-09T14:46:00.000+05:30</published><updated>2011-02-09T14:46:11.973+05:30</updated><title type='text'>Load balancing JBoss and Apache2 / mod_jk</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;Having more and more needs to deploy high load and critical  applications, clustering JBoss in a load balancing mode is becoming a  priority.&lt;br /&gt;
&lt;br /&gt;
I will discuss a good old way to use mod_jk on Apache2 to balance the load on multiple JBoss servers, there&#39;s also different &lt;sup&gt;&lt;i&gt;newish&lt;/i&gt;&lt;/sup&gt; approaches using mod_proxy or mod_cluster from JBoss that i will discuss in future posts.&lt;br /&gt;
&lt;br /&gt;
So let&#39;s start installing JBoss AS, you have to download it from the official site &lt;a href=&quot;http://jboss.org/jbossas/downloads/&quot; target=&quot;_blank&quot;&gt;here&lt;/a&gt;,  i&#39;ve taken the last 6.x release (6.0.0.M5) to the date i&#39;m writing this  post, anyway you can even take a 5.x release as it has no difference  for what we&#39;re going to make later.&lt;br /&gt;
&lt;br /&gt;
After downloading, put the  file into your /opt folder and unpack it, you&#39;ll get a  /opt/jboss-6.0.0.20100911-M5, we&#39;ll try to run the JBoss AS server and  check if it runs out of the box:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;code_bloc&quot;&gt;&lt;code&gt;# cd /opt/jboss-6.0.0.20100911-M5/bin&lt;br /&gt;
# sudo ./run.sh&lt;/code&gt;&lt;/div&gt;&lt;br /&gt;
Wait some seconds, you shouldn&#39;t have errors till you get the last line looking like this: &lt;b&gt;Started in 51s:29ms&lt;/b&gt;.&lt;br /&gt;
&lt;br /&gt;
Everything  seems okay, now we&#39;ll start the second JBoss server, all we have to do  is to copy the jboss-6.0.0.20100911-M5 to another server (i use virtual  nodes over &lt;a href=&quot;http://www.xen.org/&quot; target=&quot;_blank&quot;&gt;Xen hypervisor&lt;/a&gt;) and start it.&lt;br /&gt;
&lt;br /&gt;
You  can go with one server and install two instances of JBoss AS on it, but  dont forget to change the listening ports of the second instance to  avoid this kind of errors: &lt;i&gt;java.lang.Exception: Port 8080 already in use&lt;/i&gt;.&lt;br /&gt;
&lt;br /&gt;
Anyway, whatever configuration you&#39;ve chosen, we should end with an architecture like this:&lt;br /&gt;
&lt;br /&gt;
&lt;div align=&quot;center&quot;&gt;&lt;img src=&quot;http://www.tritux.com/index.php/blog/image/38fd4680418b48e621e0f7291d4466d5_jboss-load-balancing.png&quot; /&gt;&lt;br /&gt;
&lt;/div&gt;Before  going to put the load balancer on top of these two nodes (tux1 &amp;amp;  tux2), make sure your JBoss AS is working by pointing your browser to  the JMX console link on the &lt;i&gt;http://&lt;u&gt;host&lt;/u&gt;:8080&lt;/i&gt; page.&lt;br /&gt;
&lt;br /&gt;
Everything is okay ? let&#39;s go to Apache: &lt;br /&gt;
&lt;br /&gt;
I&#39;ll take the latest stable version of Apache2, i recommend you to install it from your package manager (&lt;a href=&quot;https://help.ubuntu.com/community/SynapticHowto&quot; target=&quot;_blank&quot;&gt;Ubuntu&#39;s Synaptic&lt;/a&gt; in my cas) directly rather than compiling it from the source, life is too short.&lt;br /&gt;
&lt;br /&gt;
In order to install the mod_jk module, you have to &lt;a href=&quot;http://apache.inetbridge.net//tomcat/tomcat-connectors/jk/binaries/&quot; target=&quot;_blank&quot;&gt;download the binary version&lt;/a&gt; that fits to your system architecture and copy the &lt;i&gt;mod_jk*.so&lt;/i&gt; file to /usr/lib/apache2/modules/mod_jk.so and run this commands:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;code_bloc&quot;&gt;&lt;code&gt;echo &quot;LoadModule jk_module /usr/lib/apache2/modules/mod_jk.so&quot; &amp;gt; /etc/apache2/mods-available/jk.load&lt;br /&gt;
touch /etc/apache2/mods-available/jk.conf&lt;/code&gt;&lt;code&gt;touch /etc/apache2/workers.conf&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;a2enmod jk&lt;/code&gt;&lt;/div&gt;&lt;br /&gt;
You  should have no errors when running the above commands, that means the  mod_jk is now enabled and we&#39;ll proceed to configuring it to balance the  load between our two JBoss servers.&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote&gt;By the way, I&#39;ve installed Apache2 for load balancing purpose and i&#39;ve chosen to run it on &lt;b&gt;tux1&lt;/b&gt; node, this is not a wise decision since we created a &lt;a href=&quot;http://en.wikipedia.org/wiki/Single_point_of_failure&quot; target=&quot;_blank&quot;&gt;SPOF&lt;/a&gt; node: if &lt;b&gt;tux1&lt;/b&gt; goes down, the whole cluster will go down.&lt;br /&gt;
This can be resolved by putting Apache2 in a fail over mode so when &lt;b&gt;tux1&lt;/b&gt; goes down, &lt;b&gt;tux2&lt;/b&gt;  will take the job and run the load balancer flawlessly making the  solution highly available, at Tritux we use many high availability  solutions including &lt;a href=&quot;http://www.redhat.com/cluster_suite/&quot; target=&quot;_blank&quot;&gt;Red Hat Cluster Suite&lt;/a&gt; which has proven its enterprise class grade service level with many of our deployments.&lt;br /&gt;
I will not cover this part assuming we want only to bring life to a simple load balancing Apache2 configuration, you can &lt;a href=&quot;http://www.tritux.com/contact/&quot; target=&quot;_blank&quot;&gt;contact us&lt;/a&gt; for commercial support on how to design a high availability solution with JBoss or any other web server.&lt;br /&gt;
Below is what it should look like when going with a high availability solution:&lt;/blockquote&gt;&lt;div align=&quot;center&quot;&gt;&lt;img src=&quot;http://www.tritux.com/index.php/blog/image/369635ba86e9f944550835e30815a7a0_jboss-load-balancing-cluster.png&quot; /&gt;&lt;br /&gt;
&lt;/div&gt;Let&#39;s return to the configuration part, first we&#39;ll edit the &lt;i&gt;/etc/apache2/workers.conf&lt;/i&gt; file this way&lt;div class=&quot;code_bloc&quot;&gt;&lt;code&gt;# Defining the workers list:&lt;br /&gt;
worker.list=loadbalancer,status&lt;br /&gt;
# first worker properties, we use the AJB13 connection type:&lt;br /&gt;
worker.worker1.type=ajp13&lt;br /&gt;
worker.worker1.connection_pool_size=20&lt;br /&gt;
worker.worker1.host=tux1-host&lt;br /&gt;
worker.worker1.port=8080&lt;br /&gt;
worker.worker1.lbfactor=1&lt;br /&gt;
# second worker properties, we use the AJB13 connection type:&lt;br /&gt;
worker.worker2.type=ajp13&lt;br /&gt;
worker.worker2.connection_pool_size=20&lt;br /&gt;
worker.worker2.host=tux2-host&lt;br /&gt;
worker.worker2.port=8080&lt;br /&gt;
worker.worker2.lbfactor=1&lt;br /&gt;
# No we set the load balancing config&lt;br /&gt;
worker.loadbalancer.type=lb&lt;br /&gt;
worker.loadbalancer.sticky_session=true&lt;br /&gt;
worker.loadbalancer.balance_workers=worker1,worker2&lt;br /&gt;
worker.status.type=status&lt;/code&gt;&lt;/div&gt;&lt;br /&gt;
And we&#39;ll edit the &lt;i&gt;/etc/apache2/mods-available/jk.conf file this w&lt;/i&gt;ay&lt;div class=&quot;code_bloc&quot;&gt;&lt;code&gt;&lt;ifmodule mod_jk.c=&quot;&quot;&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; # The Jk shared mem location&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; JkShmFile /var/log/apache2/mod_jk.shm&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; # Jk logs&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; JkLogFile /var/log/apache2/mod_jk.log&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; # Jk loglevel&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; JkLogLevel info&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; # Jk logformat&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; JkLogStampFormat &quot;[%a %b %d %H:%M:%S %Y] &quot;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; # Our workers config&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; JkWorkersFile /etc/apache2/workers.conf&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; # The most important:&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; # We will send eveything (/*) to our loadbalancer (set in JkWorkersFile)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; JkMount /* loadbalancer&lt;/ifmodule&gt;&lt;/code&gt;&lt;/div&gt;&lt;br /&gt;
Restart your Apache2, everything is okay ? excellent ! you have a load balancer working !&lt;br /&gt;
&lt;br /&gt;
Open your browser at &lt;b&gt;http://tux1-host:80&lt;/b&gt;  (80 is Apache2&#39;s port) and you&#39;ll get the JBoss page in place of the  Apache2 page, what happened ? your request is sent to one of the JBoss  servers we configured !&lt;br /&gt;
&lt;br /&gt;
Now you can deploy your application on  both JBoss servers and test how the load is balanced between the two  nodes, you can test how the balancer will detect failure on one node and  keep servicing your application with no interruption ...&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;More to do:&lt;/i&gt;&lt;br /&gt;
You  can setup as many workers as you have to get N nodes, the failover can  be set for a preferred active node or even to a standby node.&lt;br /&gt;
The  configuration of Apache2 and JBoss servers is not tuned enough for going  to production, there&#39;s a lot to do before deciding to put a cluster  like this in a production environment.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Taken from ::http://www.tritux.com/blog/2010/10/23/load-balancing-jboss-and-apache2-mod_jk/8/1 &lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sagarkarnati.blogspot.com/feeds/2830331115128470756/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sagarkarnati.blogspot.com/2011/02/load-balancing-jboss-and-apache2-modjk.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1692868576301884060/posts/default/2830331115128470756'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1692868576301884060/posts/default/2830331115128470756'/><link rel='alternate' type='text/html' href='http://sagarkarnati.blogspot.com/2011/02/load-balancing-jboss-and-apache2-modjk.html' title='Load balancing JBoss and Apache2 / mod_jk'/><author><name>Vidya Sagar Karnati</name><uri>http://www.blogger.com/profile/10219954276511429617</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1692868576301884060.post-5841314759582082913</id><published>2011-02-07T17:59:00.000+05:30</published><updated>2011-02-07T17:59:19.968+05:30</updated><title type='text'>UnRar files in ubuntu</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;h3 class=&quot;post-title entry-title&quot;&gt; unrar in ubuntu &lt;/h3&gt;&lt;div class=&quot;post-header&quot;&gt;  &lt;/div&gt;For extracting the rar files&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;% sudo apt-get install unrar&lt;/span&gt;&lt;/blockquote&gt;&lt;br /&gt;
two useful and most  used command is&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;% unrar e  your-file-name.rar  #--- to extract the rar file in the current  directory&lt;/span&gt;&lt;/blockquote&gt;&lt;br /&gt;
&lt;blockquote&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;% unrar l  your-file-name.rar   #-- to list the content of the rar file&lt;/span&gt;&lt;/blockquote&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sagarkarnati.blogspot.com/feeds/5841314759582082913/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sagarkarnati.blogspot.com/2011/02/unrar-files-in-ubuntu.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1692868576301884060/posts/default/5841314759582082913'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1692868576301884060/posts/default/5841314759582082913'/><link rel='alternate' type='text/html' href='http://sagarkarnati.blogspot.com/2011/02/unrar-files-in-ubuntu.html' title='UnRar files in ubuntu'/><author><name>Vidya Sagar Karnati</name><uri>http://www.blogger.com/profile/10219954276511429617</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1692868576301884060.post-3621155857566034874</id><published>2011-01-31T18:08:00.000+05:30</published><updated>2011-01-31T18:08:17.932+05:30</updated><title type='text'>Commonly Used Network Monitoring Commands in Linux</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;Flexibility and usability of networking commands is one of the major  strengths of UNIX like Operating System. Network administrators can  quickly identify and fix the problem using these commands very  effectively. In this article I mentioned some of the basic commands  available in most of the UNIX like operating systems, also I gave small  brief about some of the commonly used options for each commands. More  details&amp;nbsp; of each commands is available in Linux man page. I explained  few commands here in Part – I and the remaining commands will be  explained in the next parts of this article. &lt;br /&gt;
&lt;span id=&quot;more-44&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;h3&gt;&lt;strong&gt;# ping&lt;/strong&gt;&lt;/h3&gt;This command is used to find if the end system is reachable from the  current system or not. It sends ICMP ECHO_REQUEST packet to the  specified system/server/gateway/network element to get the ECHO_RESPONSE  packet.&lt;br /&gt;
&lt;span style=&quot;text-decoration: underline;&quot;&gt;&lt;em&gt;Note: ping uses 28 byte  of data for header information.&lt;/em&gt;&lt;/span&gt;&lt;br /&gt;
In Linux it usually send infinite number of packets unless you  specify -c option. To quit ping command press ctrl+c key.&lt;br /&gt;
Basic syntax for ping command is:&lt;br /&gt;
&lt;strong&gt;&lt;em&gt;ping &lt;ipaddress hostname=&quot;&quot;&gt;&lt;/ipaddress&gt;&lt;/em&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;strong&gt;&lt;em&gt; &lt;/em&gt;&lt;/strong&gt;&lt;br /&gt;
for example &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;em&gt;ping google.com&lt;/em&gt;&lt;br /&gt;
&lt;em&gt; &lt;/em&gt;&lt;br /&gt;
&lt;strong&gt;&lt;em&gt;ping 0/ping localhost/ping 127.0.0.&lt;/em&gt;&lt;/strong&gt;1 –  checks if the local interface is working&lt;br /&gt;
commonly used options for ping are&lt;br /&gt;
&lt;strong&gt;&lt;em&gt;-i &lt;n&gt;&lt;/n&gt;&lt;/em&gt;&lt;/strong&gt; wait n seconds between sending  each packet.&lt;br /&gt;
&lt;em&gt;ping -i 5 192.168.0.3&lt;/em&gt; will send ping requests every 5  seconds&lt;br /&gt;
&lt;em&gt;ping -i 0.1 192.168.0.3&lt;/em&gt; will send 100 ms interval time.&lt;br /&gt;
&lt;em&gt;&lt;span style=&quot;text-decoration: underline;&quot;&gt;Note: Only super user  can send ping packets lesser than 200 ms&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;
&lt;em&gt;&lt;span style=&quot;text-decoration: underline;&quot;&gt; &lt;/span&gt;&lt;/em&gt;&lt;br /&gt;
&lt;strong&gt;&lt;em&gt;-c &lt;n&gt; &lt;/n&gt;&lt;/em&gt;&lt;/strong&gt;sends n packets and terminate.&lt;br /&gt;
&lt;em&gt;ping -c 3 192.168.0.3&lt;/em&gt;&lt;br /&gt;
&lt;em&gt; &lt;/em&gt;&lt;br /&gt;
&lt;strong&gt;&lt;em&gt;-f&lt;/em&gt;&lt;/strong&gt; flood ping. If&amp;nbsp; interval is not given,  it sets interval to zero and outputs packets as fast as they come back  or&amp;nbsp; one&amp;nbsp; hundred&amp;nbsp; times&amp;nbsp; per second, whichever is more.&amp;nbsp; Only the  super-user may use this option with zero interval.&lt;br /&gt;
&lt;strong&gt;&lt;em&gt;-a &lt;/em&gt;&lt;/strong&gt;Audible ping. Beep when the remote  machine is reachable&lt;br /&gt;
&lt;em&gt;&lt;span style=&quot;text-decoration: underline;&quot;&gt;Note: This option don’t  work in gnome-terminals&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;
&lt;em&gt;&lt;span style=&quot;text-decoration: underline;&quot;&gt; &lt;/span&gt;&lt;/em&gt;&lt;br /&gt;
&lt;strong&gt;&lt;em&gt;-q&lt;/em&gt;&lt;/strong&gt; print only summary. This option will not  print ping details of every packet. This option will print only the  summary at the end.&lt;br /&gt;
&lt;strong&gt;&lt;em&gt;-s &lt;n&gt;&lt;/n&gt;&lt;/em&gt;&lt;/strong&gt; change the default packet size  (56) to n byte.&lt;br /&gt;
&lt;strong&gt;&lt;em&gt;-w &lt;n&gt; &lt;/n&gt;&lt;/em&gt;&lt;/strong&gt;terminate after n seconds.  This tells how many seconds it should send the packets. After n seconds  ping will terminate automatically. If you use both -c and -w whatever  happens first will terminate the ping command.&lt;br /&gt;
&lt;strong&gt;&lt;em&gt;ctrl + |&lt;/em&gt;&lt;/strong&gt; (control key and pipe) Whenever  you ctrl+i while ping is running it will print the summary. It will not  terminate the ping, but just prints the summary and continue pinging  till you press ctrl+c or -w or -c which comes first.&lt;br /&gt;
&lt;em&gt;ping 192.168.0.1 10.0.0.1 62.1.2.89&lt;/em&gt; will send ping request  to 62.1.2.89 through 192.168.0.1 and 10.0.0.1. If one hop is not  reachable in the middle the total result will be considered as failed  ping.&lt;br /&gt;
&lt;strong&gt;&lt;em&gt;-R&lt;/em&gt;&lt;/strong&gt; record and print the route of the ping&lt;br /&gt;
&lt;strong&gt;&lt;em&gt;-t &lt;n&gt;&lt;/n&gt;&lt;/em&gt;&lt;/strong&gt; specifies the Time to Live. If  n is 5 ping will succeed only if the destination host is within 5 hops  from the source.&lt;br /&gt;
&lt;a href=&quot;http://tech.varghees.com/wp-content/uploads/2011/01/ping.png&quot;&gt;&lt;img alt=&quot;&quot; class=&quot;alignnone size-full wp-image-41&quot; height=&quot;260&quot; src=&quot;http://tech.varghees.com/wp-content/uploads/2011/01/ping.png&quot; title=&quot;ping&quot; width=&quot;635&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;strong&gt;&lt;em&gt; &lt;/em&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;h3&gt;&lt;strong&gt;# traceroute&lt;/strong&gt;&lt;/h3&gt;This command prints the details of each host it passes through when  it tries to reach the destination host&lt;br /&gt;
the basic syntax of the command is&lt;br /&gt;
&lt;em&gt;traceroute 62.1.2.89&lt;/em&gt;.&lt;br /&gt;
&lt;strong&gt;&lt;em&gt;-4 &lt;/em&gt;&lt;/strong&gt;or &lt;strong&gt;&lt;em&gt;-6 &lt;/em&gt;&lt;/strong&gt;forcing  IPv4 or IPv6 respectively.&lt;br /&gt;
&lt;strong&gt;&lt;em&gt;-I &lt;/em&gt;&lt;/strong&gt;uses ICMP ECHO when sends the packets&lt;br /&gt;
&lt;strong&gt;&lt;em&gt;-T &lt;/em&gt;&lt;/strong&gt;uses TCP SYN to send packets.&lt;br /&gt;
&lt;strong&gt;&lt;em&gt;-U &lt;/em&gt;&lt;/strong&gt;uses UDP for traceroute packets.&lt;br /&gt;
&lt;em&gt;&lt;span style=&quot;text-decoration: underline;&quot;&gt;Note: Traceroute uses  UDP Datagrams by default for probes.&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;
&lt;em&gt;&lt;span style=&quot;text-decoration: underline;&quot;&gt; &lt;/span&gt;&lt;/em&gt;&lt;br /&gt;
&lt;strong&gt;&lt;em&gt;-f &lt;n&gt; &lt;/n&gt;&lt;/em&gt;&lt;/strong&gt;tells TTL (Time to Live) to  start. By default it is 1.&lt;br /&gt;
&lt;strong&gt;&lt;em&gt;-i &lt;interface&gt;&lt;/interface&gt;&lt;/em&gt;&lt;/strong&gt; This option explicitly  tells the interface to use when sending the packets. If this option is  not mentioned, interface will be selected based on the routing table.&lt;br /&gt;
&lt;strong&gt;-m &lt;n&gt;&lt;/n&gt;&lt;/strong&gt; This option tells maximum number of  hops to try before reaching the destination. Default value is 30&lt;br /&gt;
&lt;strong&gt;&lt;em&gt;-N &lt;n&gt; &lt;/n&gt;&lt;/em&gt;&lt;/strong&gt;This option tells simultaneous  probe packets to send. Default value is 15&lt;br /&gt;
&lt;strong&gt;&lt;em&gt;-n &lt;/em&gt;&lt;/strong&gt;is used to avoid a request to a name  server. It will print just the ipaddress of the hops.&lt;br /&gt;
&lt;strong&gt;&lt;em&gt;-w &lt;n&gt;&lt;/n&gt;&lt;/em&gt;&lt;/strong&gt; specifies the time to wait in  seconds for each packet. Default value is 5 seconds&lt;br /&gt;
&lt;strong&gt;&lt;em&gt;-q &lt;n&gt; &lt;/n&gt;&lt;/em&gt;&lt;/strong&gt;sends n packets to each hop.  Default value is 3&lt;br /&gt;
&lt;strong&gt;&lt;em&gt;-r &lt;/em&gt;&lt;/strong&gt;option tells to bypass the routing  table. If the destination host is not in the same network traceroute  will not succeed.&lt;br /&gt;
&lt;strong&gt;&lt;em&gt;-s &lt;source ip=&quot;&quot;&gt;&lt;/source&gt;&lt;/em&gt;&lt;/strong&gt; uses an alternative  source address.&lt;br /&gt;
&lt;a href=&quot;http://tech.varghees.com/wp-content/uploads/2011/01/traceroute.jpg&quot;&gt;&lt;img alt=&quot;&quot; class=&quot;alignnone size-full wp-image-33&quot; height=&quot;383&quot; src=&quot;http://tech.varghees.com/wp-content/uploads/2011/01/traceroute.jpg&quot; title=&quot;traceroute&quot; width=&quot;537&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;em&gt;&lt;span style=&quot;text-decoration: underline;&quot;&gt;Note: you must select  the address of one of the interfaces&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;
&lt;em&gt;&lt;span style=&quot;text-decoration: underline;&quot;&gt; &lt;/span&gt;&lt;/em&gt;&lt;br /&gt;
&lt;em&gt;&lt;span style=&quot;text-decoration: underline;&quot;&gt; &lt;/span&gt;&lt;/em&gt;&lt;br /&gt;
&lt;h3&gt;&lt;strong&gt;# tracepath &lt;/strong&gt;&lt;/h3&gt;It discovers the MTU(Maximum Transmitting Unit) along with the path.  Unlike traceroute even non super users can also run this command.&lt;br /&gt;
&lt;h3&gt;&lt;strong&gt;# host &lt;/strong&gt;&lt;/h3&gt;This command is used for reverse lookup of an ipaddress.&lt;br /&gt;
&lt;strong&gt;&lt;em&gt;-W &lt;n&gt; &lt;/n&gt;&lt;/em&gt;&lt;/strong&gt; wait time to get the  response.&lt;br /&gt;
&lt;strong&gt;&lt;em&gt;-t &lt;type&gt;&lt;/type&gt;&lt;/em&gt;&lt;/strong&gt; used to specify the query  type. query type can be one of CNAME, NS, SOA, SIG, KEY, AXFR, etc. If  query type is not mentioned then host automatically selects an  appropriate query type. By default it looks for A records, if the -C  option is specified queries look for SOA records.&lt;br /&gt;
&lt;em&gt;&lt;span style=&quot;text-decoration: underline;&quot;&gt;Note: If name is an  ipaddress then this will look for PTR records instead of A records.&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;
&lt;em&gt;&lt;span style=&quot;text-decoration: underline;&quot;&gt; &lt;/span&gt;&lt;/em&gt;&lt;br /&gt;
&lt;em&gt;&lt;span style=&quot;text-decoration: underline;&quot;&gt; &lt;/span&gt;&lt;/em&gt;&lt;br /&gt;
&lt;strong&gt;&lt;em&gt;-4 or -6&lt;/em&gt;&lt;/strong&gt; forces IPv4 or IPv6 respectively.&lt;br /&gt;
-a will make a query for type ANY&lt;br /&gt;
-T forces to use TCP when querying the name server. By default it  uses UDP.&lt;br /&gt;
-R specifies the number of retries. Default value is 1&lt;br /&gt;
-d/-v verbose output&lt;br /&gt;
&lt;blockquote&gt;# &lt;strong&gt;host -v wiki.linuxquestions.org&lt;/strong&gt;&lt;br /&gt;
Query about wiki.linuxquestions.org for record types A&lt;br /&gt;
Trying wiki.linuxquestions.org …&lt;br /&gt;
Query done, 1 answer, status: no error&lt;br /&gt;
The following answer is not authoritative:&lt;br /&gt;
wiki.linuxquestions.org 12857&amp;nbsp;&amp;nbsp; IN&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 209.152.163.16&lt;br /&gt;
Authority information:&lt;br /&gt;
linuxquestions.org&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 12857&amp;nbsp;&amp;nbsp; IN&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NS&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;  ns2.linuxquestions.org&lt;br /&gt;
linuxquestions.org&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 12857&amp;nbsp;&amp;nbsp; IN&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NS&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;  ns1.linuxquestions.net&lt;br /&gt;
linuxquestions.org&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 12857&amp;nbsp;&amp;nbsp; IN&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NS&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;  ns1.linuxquestions.org&lt;br /&gt;
Additional information:&lt;br /&gt;
ns1.linuxquestions.net&amp;nbsp; 77279&amp;nbsp;&amp;nbsp; IN&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 64.179.4.147&lt;/blockquote&gt;&lt;h3&gt;&lt;strong&gt;# nslookup &lt;/strong&gt;&lt;/h3&gt;This command used to get the name servers for the specified server.&lt;br /&gt;
It runs in both interactive and non-interactive modes. If the first  argument is – or no server name is mentioned it will go to interactive  mode.&lt;br /&gt;
To get single data use non interactive mode as shown below.&lt;br /&gt;
&lt;em&gt;nslookup 204.228.4.243&lt;/em&gt;&lt;br /&gt;
&lt;em&gt; &lt;/em&gt;&lt;br /&gt;
Use interactive mode if you want to get more than one data from the  server.&lt;br /&gt;
use &lt;strong&gt;&lt;em&gt;exit&lt;/em&gt;&lt;/strong&gt; command to quit from the  interactive mode&lt;br /&gt;
This command works both windows and linux.&lt;br /&gt;
&lt;a href=&quot;http://tech.varghees.com/wp-content/uploads/2011/01/nslookup.png&quot;&gt;&lt;img alt=&quot;&quot; class=&quot;alignnone size-full wp-image-40&quot; height=&quot;148&quot; src=&quot;http://tech.varghees.com/wp-content/uploads/2011/01/nslookup.png&quot; title=&quot;nslookup&quot; width=&quot;286&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
More details : &lt;a href=&quot;http://www.google.com/url?q=http%3A%2F%2Fwww.linuxmanpages.com%2Fman1%2Fnslookup.1.php&amp;amp;sa=D&amp;amp;sntz=1&amp;amp;usg=AFQjCNFYtF7jTA3yLrLwTx2sRXDZ1RfNsQ&quot;&gt;http&lt;/a&gt;&lt;a href=&quot;http://www.google.com/url?q=http%3A%2F%2Fwww.linuxmanpages.com%2Fman1%2Fnslookup.1.php&amp;amp;sa=D&amp;amp;sntz=1&amp;amp;usg=AFQjCNFYtF7jTA3yLrLwTx2sRXDZ1RfNsQ&quot;&gt;://&lt;/a&gt;&lt;a href=&quot;http://www.google.com/url?q=http%3A%2F%2Fwww.linuxmanpages.com%2Fman1%2Fnslookup.1.php&amp;amp;sa=D&amp;amp;sntz=1&amp;amp;usg=AFQjCNFYtF7jTA3yLrLwTx2sRXDZ1RfNsQ&quot;&gt;www&lt;/a&gt;&lt;a href=&quot;http://www.google.com/url?q=http%3A%2F%2Fwww.linuxmanpages.com%2Fman1%2Fnslookup.1.php&amp;amp;sa=D&amp;amp;sntz=1&amp;amp;usg=AFQjCNFYtF7jTA3yLrLwTx2sRXDZ1RfNsQ&quot;&gt;.&lt;/a&gt;&lt;a href=&quot;http://www.google.com/url?q=http%3A%2F%2Fwww.linuxmanpages.com%2Fman1%2Fnslookup.1.php&amp;amp;sa=D&amp;amp;sntz=1&amp;amp;usg=AFQjCNFYtF7jTA3yLrLwTx2sRXDZ1RfNsQ&quot;&gt;linuxmanpages&lt;/a&gt;&lt;a href=&quot;http://www.google.com/url?q=http%3A%2F%2Fwww.linuxmanpages.com%2Fman1%2Fnslookup.1.php&amp;amp;sa=D&amp;amp;sntz=1&amp;amp;usg=AFQjCNFYtF7jTA3yLrLwTx2sRXDZ1RfNsQ&quot;&gt;.&lt;/a&gt;&lt;a href=&quot;http://www.google.com/url?q=http%3A%2F%2Fwww.linuxmanpages.com%2Fman1%2Fnslookup.1.php&amp;amp;sa=D&amp;amp;sntz=1&amp;amp;usg=AFQjCNFYtF7jTA3yLrLwTx2sRXDZ1RfNsQ&quot;&gt;com&lt;/a&gt;&lt;a href=&quot;http://www.google.com/url?q=http%3A%2F%2Fwww.linuxmanpages.com%2Fman1%2Fnslookup.1.php&amp;amp;sa=D&amp;amp;sntz=1&amp;amp;usg=AFQjCNFYtF7jTA3yLrLwTx2sRXDZ1RfNsQ&quot;&gt;/&lt;/a&gt;&lt;a href=&quot;http://www.google.com/url?q=http%3A%2F%2Fwww.linuxmanpages.com%2Fman1%2Fnslookup.1.php&amp;amp;sa=D&amp;amp;sntz=1&amp;amp;usg=AFQjCNFYtF7jTA3yLrLwTx2sRXDZ1RfNsQ&quot;&gt;man&lt;/a&gt;&lt;a href=&quot;http://www.google.com/url?q=http%3A%2F%2Fwww.linuxmanpages.com%2Fman1%2Fnslookup.1.php&amp;amp;sa=D&amp;amp;sntz=1&amp;amp;usg=AFQjCNFYtF7jTA3yLrLwTx2sRXDZ1RfNsQ&quot;&gt;1/&lt;/a&gt;&lt;a href=&quot;http://www.google.com/url?q=http%3A%2F%2Fwww.linuxmanpages.com%2Fman1%2Fnslookup.1.php&amp;amp;sa=D&amp;amp;sntz=1&amp;amp;usg=AFQjCNFYtF7jTA3yLrLwTx2sRXDZ1RfNsQ&quot;&gt;nslookup&lt;/a&gt;&lt;a href=&quot;http://www.google.com/url?q=http%3A%2F%2Fwww.linuxmanpages.com%2Fman1%2Fnslookup.1.php&amp;amp;sa=D&amp;amp;sntz=1&amp;amp;usg=AFQjCNFYtF7jTA3yLrLwTx2sRXDZ1RfNsQ&quot;&gt;.1.&lt;/a&gt;&lt;a href=&quot;http://www.google.com/url?q=http%3A%2F%2Fwww.linuxmanpages.com%2Fman1%2Fnslookup.1.php&amp;amp;sa=D&amp;amp;sntz=1&amp;amp;usg=AFQjCNFYtF7jTA3yLrLwTx2sRXDZ1RfNsQ&quot;&gt;php&lt;/a&gt;&lt;br /&gt;
&lt;span style=&quot;text-decoration: underline;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;text-decoration: underline;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;h3&gt;&lt;strong&gt;# dig &lt;/strong&gt;&lt;/h3&gt;This command dig (domain information groper) is a great tool to get  DNS name servers. This is one of the very commonly used tool by network  administrators.&lt;br /&gt;
This command uses all servers listed in /etc/resolv.conf by default.  It can be overridden by specifying them as an argument to dig command.  Users can set their own configurations in ~/.digrc file. But command  line arguments have more precedence than the .digrc file.&lt;br /&gt;
Common syntax&lt;br /&gt;
&lt;strong&gt;&lt;em&gt;dig @server name type&lt;/em&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;strong&gt;&lt;em&gt; &lt;/em&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;strong&gt;&lt;em&gt;server&lt;/em&gt;&lt;/strong&gt; – name/ipaddress of the server where  dig command to query. Default value will be taken from &lt;em&gt;/etc/resolv.conf&lt;/em&gt;&lt;br /&gt;
&lt;em&gt; &lt;strong&gt;name &lt;/strong&gt;&lt;/em&gt;– is the name to be looked for.&lt;br /&gt;
&lt;strong&gt;&lt;em&gt;type &lt;/em&gt;&lt;/strong&gt;– query type options are ANY, A, MX,  SIG, etc., default is A&lt;br /&gt;
&lt;strong&gt;&lt;em&gt;-b &lt;ipaddress&gt; &lt;/ipaddress&gt;&lt;/em&gt;&lt;/strong&gt;source ip address, it  should be one of the ipaddress of your server’s interfaces.&lt;br /&gt;
&lt;strong&gt;&lt;em&gt;-f &lt;filename&gt; &lt;/filename&gt;&lt;/em&gt;&lt;/strong&gt;read names from&lt;br /&gt;
more details : &lt;a href=&quot;http://www.linuxmanpages.com/man1/dig.1.php&quot;&gt;http://www.linuxmanpages.com/man1/dig.1.php&lt;/a&gt;&lt;br /&gt;
&lt;h3&gt;&lt;strong&gt;# telnet &lt;/strong&gt;&lt;/h3&gt;This command allows you to log in from one computer to another  computer as you are sitting in that remote computer and working. Once  the user enters correct username and password telnet will allow you to  use linux shell. You can use all commands whatever you can use from your  computer.&lt;br /&gt;
Syntax for telent&lt;br /&gt;
telnet &lt;ipaddress&gt; [port]&lt;/ipaddress&gt;&lt;br /&gt;
By default telnet runs at port 23. So when you run the following  command, it will connect to the port 23 from your client.&lt;br /&gt;
telnet 192.168.0.8&lt;br /&gt;
telnet command can be used to test other ports also. If you want to  test the status of HTTP in port 80 just run&lt;br /&gt;
telnet 192.168.0.8 80&lt;br /&gt;
&lt;a href=&quot;http://tech.varghees.com/wp-content/uploads/2011/01/telnet_80.png&quot;&gt;&lt;img alt=&quot;&quot; class=&quot;alignnone size-full wp-image-72&quot; height=&quot;555&quot; src=&quot;http://tech.varghees.com/wp-content/uploads/2011/01/telnet_80.png&quot; title=&quot;telnet_80&quot; width=&quot;852&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
if the port is not opened you will get the following error.&lt;br /&gt;
&lt;blockquote&gt;# &lt;strong&gt;telnet 192.168.0.8 80&lt;/strong&gt;&lt;br /&gt;
Trying 192.168.0.8…&lt;br /&gt;
telnet: connect to address 192.168.0.8: Connection refused&lt;/blockquote&gt;The same way you test other ports like SMTP, POP3, etc., also.&lt;br /&gt;
Note : telnet doesnt not encrypt the data when it sends across the  internet.&lt;br /&gt;
For more options visit : &lt;a href=&quot;http://www.linuxmanpages.com/man1/telnet.1.php&quot;&gt;http://www.linuxmanpages.com/man1/telnet.1.php&lt;/a&gt;&lt;br /&gt;
&lt;h3&gt;&lt;strong&gt;# ifconfig &lt;/strong&gt;&lt;/h3&gt;One of the most commonly used command to get the ipaddress of the  system&lt;br /&gt;
Basic syntax:&lt;br /&gt;
&lt;strong&gt;&lt;em&gt;ifconfig&lt;/em&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;strong&gt;&lt;em&gt;-a&lt;/em&gt;&lt;/strong&gt; to list all active and inactive  interfaces&lt;br /&gt;
&lt;strong&gt;&lt;em&gt;ifconfig &lt;eth&gt;&lt;/eth&gt;&lt;/em&gt;&lt;/strong&gt; will print only the  details of the specified ethernet&lt;br /&gt;
&lt;a href=&quot;http://tech.varghees.com/wp-content/uploads/2011/01/ifconfig_eth0.png&quot;&gt;&lt;img alt=&quot;&quot; class=&quot;alignnone size-full wp-image-68&quot; height=&quot;311&quot; src=&quot;http://tech.varghees.com/wp-content/uploads/2011/01/ifconfig_eth0.png&quot; title=&quot;ifconfig_eth0&quot; width=&quot;558&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;strong&gt;&lt;em&gt;# ifconfig eth0 down&lt;/em&gt;&lt;/strong&gt; will disable the  ethernet eth0&lt;br /&gt;
&lt;strong&gt;&lt;em&gt; &lt;/em&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;strong&gt;&lt;em&gt;# ifconfig eth0 192.168.0.8&lt;/em&gt;&lt;/strong&gt; &lt;strong&gt;&lt;em&gt;[up]&lt;/em&gt;&lt;/strong&gt;  will assign ipaddess to eth0&lt;br /&gt;
&lt;strong&gt;&lt;em&gt; &lt;/em&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;strong&gt;&lt;em&gt;# ifconfig eth0 netmask 255.255.255.0&lt;/em&gt;&lt;/strong&gt; will  set netmask for eth0&lt;br /&gt;
&lt;strong&gt;&lt;em&gt;# ifconfig eth0 broadcast 192.168.2.255&lt;/em&gt;&lt;/strong&gt;  sets the broadcast address for eth0&lt;br /&gt;
&lt;strong&gt;&lt;em&gt;# ifconfig eth0 192.168.2.2 netmask 255.255.255.0  broadcast 192.168.2.255&lt;/em&gt;&lt;/strong&gt; will do all at the same time&lt;br /&gt;
&lt;strong&gt;&lt;em&gt;# ifconfig eth0 mtu N&lt;/em&gt;&lt;/strong&gt; – changes the (MTU)  Maximum Transmision Unit to N&lt;br /&gt;
&lt;strong&gt;&lt;em&gt;# ifconfig eth0 promisc&lt;/em&gt;&lt;/strong&gt; – sets promiscuous  mode. Usually when network card receives the packet it will check if it  is for that ethernet. If not it will drop it. In promiscuous mode it  will accept all packets.&lt;br /&gt;
&lt;em&gt;&lt;span style=&quot;text-decoration: underline;&quot;&gt;Note: Only super user  can do this&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;
&lt;strong&gt;&lt;em&gt;# ifconfig eth0 –promisc&lt;/em&gt;&lt;/strong&gt; – back to normal  mode&lt;br /&gt;
&lt;h3&gt;&lt;strong&gt;# route &lt;/strong&gt;&lt;/h3&gt;Prints/Add/Delete the routing table entries.&lt;br /&gt;
&lt;strong&gt;&lt;em&gt;# route&lt;/em&gt;&lt;/strong&gt; prints the routing table&lt;br /&gt;
&lt;strong&gt;&lt;em&gt;-n&lt;/em&gt;&lt;/strong&gt; prints 0.0.0.0 instead of * and prints  ipaddress for names&lt;br /&gt;
&lt;strong&gt;&lt;em&gt;route add default gw 10.0.0.2&lt;/em&gt;&lt;/strong&gt; sets the  default gateway as 10.0.0.1&lt;br /&gt;
&lt;strong&gt;&lt;em&gt;route del default gw 10.0.0.2&lt;/em&gt;&lt;/strong&gt; deletes the  default gateway&lt;br /&gt;
&lt;a href=&quot;http://tech.varghees.com/wp-content/uploads/2011/01/route.png&quot;&gt;&lt;img alt=&quot;&quot; class=&quot;alignnone size-full wp-image-42&quot; height=&quot;398&quot; src=&quot;http://tech.varghees.com/wp-content/uploads/2011/01/route.png&quot; title=&quot;route&quot; width=&quot;720&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;h3&gt;&lt;strong&gt;# netstat &lt;/strong&gt;&lt;/h3&gt;This prints variuos network related information like network  connections, routing tables, interface statistics, masquerade  connections, and multicast memberships, etc.&lt;br /&gt;
Basic syntax&lt;br /&gt;
&lt;strong&gt;&lt;em&gt;#&lt;/em&gt;&lt;/strong&gt; &lt;strong&gt;&lt;em&gt;netstat&lt;/em&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;strong&gt;&lt;em&gt;-a&lt;/em&gt;&lt;/strong&gt; lists all ports both listening and  non-listening.&lt;br /&gt;
&lt;strong&gt;&lt;em&gt;-t&lt;/em&gt;&lt;/strong&gt; consider only tcp ports&lt;br /&gt;
&lt;strong&gt;&lt;em&gt;-u&lt;/em&gt;&lt;/strong&gt; consider udp ports&lt;br /&gt;
&lt;strong&gt;&lt;em&gt;-l&lt;/em&gt;&lt;/strong&gt; lists all listerning sockets&lt;br /&gt;
&lt;strong&gt;&lt;em&gt;-p&lt;/em&gt;&lt;/strong&gt; display PID of the program. “PID/Program  Name”&lt;br /&gt;
&lt;a href=&quot;http://tech.varghees.com/wp-content/uploads/2011/01/netstat_pt1.jpg&quot;&gt;&lt;img alt=&quot;&quot; class=&quot;alignnone size-full wp-image-71&quot; height=&quot;479&quot; src=&quot;http://tech.varghees.com/wp-content/uploads/2011/01/netstat_pt1.jpg&quot; title=&quot;netstat_pt&quot; width=&quot;608&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;strong&gt;&lt;em&gt;-an&lt;/em&gt;&lt;/strong&gt; prints ipaddress, portnumber and userid  instead of hostname, port name(using /etc/services) and username&lt;br /&gt;
&lt;strong&gt;&lt;em&gt;–numeric-ports,&amp;nbsp; –numeric-hosts and –numeric-users&lt;/em&gt;&lt;/strong&gt;  to print only port number, host ip and userid respectively&lt;br /&gt;
&lt;strong&gt;&lt;em&gt;-c&lt;/em&gt;&lt;/strong&gt; will continuously print the data&lt;br /&gt;
&lt;strong&gt;&lt;em&gt;-r&lt;/em&gt;&lt;/strong&gt; prints the routing table&lt;br /&gt;
&lt;strong&gt;&lt;em&gt;-i&lt;/em&gt;&lt;/strong&gt; will print list of all network  interfaces&lt;br /&gt;
&lt;strong&gt;&lt;em&gt;-ie&lt;/em&gt;&lt;/strong&gt; similar output as ifconfig&lt;br /&gt;
&lt;strong&gt;&lt;em&gt;–protocol=&lt;family&gt;&lt;/family&gt;&lt;/em&gt;&lt;/strong&gt; separated list of  address family keywords like inet, unix, ipx, ax25, netrom, and ddp. It  will be same as –inet, –unix (-x), –ipx, –ax25, –netrom, and –ddp  options&lt;br /&gt;
&lt;strong&gt;&lt;em&gt;-s&lt;/em&gt;&lt;/strong&gt; shows summary of all ports&lt;br /&gt;
&lt;a href=&quot;http://tech.varghees.com/wp-content/uploads/2011/01/netstat_s.jpg&quot;&gt;&lt;img alt=&quot;&quot; class=&quot;alignnone size-full wp-image-70&quot; height=&quot;771&quot; src=&quot;http://tech.varghees.com/wp-content/uploads/2011/01/netstat_s.jpg&quot; title=&quot;netstat_s&quot; width=&quot;625&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;h3&gt;&lt;strong&gt;# wall &lt;/strong&gt;&lt;/h3&gt;This command sends message to all logged in users.&lt;br /&gt;
&lt;em&gt;wall &lt;message&gt;&lt;/message&gt;&lt;/em&gt;&lt;br /&gt;
&lt;strong&gt;&lt;em&gt;-n&lt;/em&gt;&lt;/strong&gt; prints the messae without banner&lt;br /&gt;
More details: &lt;a href=&quot;http://www.linuxmanpages.com/man1/wall.1.php&quot;&gt;http://www.linuxmanpages.com/man1/wall.1.php&lt;/a&gt;&lt;br /&gt;
&lt;h3&gt;&lt;strong&gt;# write &lt;/strong&gt;&lt;/h3&gt;This command sends message to the specified user in the specified tty&lt;br /&gt;
write &lt;username&gt; [tty]&lt;/username&gt;&lt;br /&gt;
Sends message to the specified username in the specified tty. If tty  is not mentioned the most recently used tty will get the message.&lt;br /&gt;
After typing the message press enter to send it. To quit from write  press ctrl+D&lt;br /&gt;
More details : &lt;a href=&quot;http://www.linuxmanpages.com/man1/write.1.php&quot;&gt;http://www.linuxmanpages.com/man1/write.1.php&lt;/a&gt;&lt;br /&gt;
&lt;h3&gt;&lt;strong&gt;# talk &lt;/strong&gt;&lt;/h3&gt;This command used for chatting with the specified user.&lt;br /&gt;
Syntax:&lt;br /&gt;
&lt;strong&gt;&lt;em&gt;talk &lt;username&gt; [tty]&lt;/username&gt;&lt;/em&gt;&lt;/strong&gt;&lt;br /&gt;
For more details : &lt;a href=&quot;http://www.linuxmanpages.com/man1/talk.1.php&quot;&gt;http://www.linuxmanpages.com/man1/talk.1.php&lt;/a&gt;&lt;br /&gt;
Part -2:&lt;br /&gt;
In part – II i will discuss about the basic usage of the following  commands.&lt;br /&gt;
# whois&lt;br /&gt;
# arp&lt;br /&gt;
# rarp&lt;br /&gt;
# mail&lt;br /&gt;
# fping&lt;br /&gt;
# named&lt;br /&gt;
# tcpdump&lt;br /&gt;
# iptraf&lt;br /&gt;
# iptables/ipchains&lt;br /&gt;
# ssh/rsync/nc&lt;br /&gt;
# wget/lynx etc.,&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sagarkarnati.blogspot.com/feeds/3621155857566034874/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sagarkarnati.blogspot.com/2011/01/commonly-used-network-monitoring.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1692868576301884060/posts/default/3621155857566034874'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1692868576301884060/posts/default/3621155857566034874'/><link rel='alternate' type='text/html' href='http://sagarkarnati.blogspot.com/2011/01/commonly-used-network-monitoring.html' title='Commonly Used Network Monitoring Commands in Linux'/><author><name>Vidya Sagar Karnati</name><uri>http://www.blogger.com/profile/10219954276511429617</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1692868576301884060.post-8123562114808523218</id><published>2011-01-05T09:12:00.000+05:30</published><updated>2011-01-05T09:12:55.268+05:30</updated><title type='text'>My Reference Links</title><content type='html'>&lt;a href=&quot;http://braveo.blogspot.com/2010/10/implementing-trap-sender-using-snmp4j.html&quot;&gt;http://braveo.blogspot.com/2010/10/implementing-trap-sender-using-snmp4j.html&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://www.topblogarea.com/sitedetails_55706.html&quot;&gt;http://www.topblogarea.com/sitedetails_55706.html&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://www.google.co.in/#q=mina+protocol+encoder+for+snmp4j&amp;amp;hl=en&amp;amp;safe=strict&amp;amp;biw=1419&amp;amp;bih=687&amp;amp;sa=2&amp;amp;fp=cafc3c2c73e4395c&quot;&gt;http://www.google.co.in/#q=mina+protocol+encoder+for+snmp4j&amp;amp;hl=en&amp;amp;safe=strict&amp;amp;biw=1419&amp;amp;bih=687&amp;amp;sa=2&amp;amp;fp=cafc3c2c73e4395c&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://www.google.co.in/#hl=en&amp;amp;safe=strict&amp;amp;biw=1436&amp;amp;bih=687&amp;amp;q=snmp+response+pdu+message&amp;amp;aq=o&amp;amp;aqi=&amp;amp;aql=&amp;amp;oq=&amp;amp;gs_rfai=&amp;amp;fp=5f6d7c1a853789d9&quot;&gt;http://www.google.co.in/#hl=en&amp;amp;safe=strict&amp;amp;biw=1436&amp;amp;bih=687&amp;amp;q=snmp+response+pdu+message&amp;amp;aq=o&amp;amp;aqi=&amp;amp;aql=&amp;amp;oq=&amp;amp;gs_rfai=&amp;amp;fp=5f6d7c1a853789d9&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://www.snmp4j.org/doc/org/snmp4j/package-summary.html&quot;&gt;http://www.snmp4j.org/doc/org/snmp4j/package-summary.html&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://www.google.co.in/#hl=en&amp;amp;source=hp&amp;amp;biw=1436&amp;amp;bih=687&amp;amp;q=constructing+snmp+response+pdu+with+snmp4j&amp;amp;aq=f&amp;amp;aqi=&amp;amp;aql=&amp;amp;oq=&amp;amp;gs_rfai=&amp;amp;fp=a222027989c7a66d&quot;&gt;http://www.google.co.in/#hl=en&amp;amp;source=hp&amp;amp;biw=1436&amp;amp;bih=687&amp;amp;q=constructing+snmp+response+pdu+with+snmp4j&amp;amp;aq=f&amp;amp;aqi=&amp;amp;aql=&amp;amp;oq=&amp;amp;gs_rfai=&amp;amp;fp=a222027989c7a66d&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://mina.apache.org/report/trunk/apidocs/index.html?org/apache/mina/filter/codec/ProtocolEncoder.html&quot;&gt;http://mina.apache.org/report/trunk/apidocs/index.html?org/apache/mina/filter/codec/ProtocolEncoder.html&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://mina.apache.org/tutorial-on-protocolcodecfilter-for-mina-2x.html&quot;&gt;http://mina.apache.org/tutorial-on-protocolcodecfilter-for-mina-2x.html&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://www.snmp4j.org/doc/index.html&quot;&gt;http://www.snmp4j.org/doc/index.html&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://www.benmccann.com/dev-blog/web-services-tutorial-with-apache-cxf/&quot;&gt;http://www.benmccann.com/dev-blog/web-services-tutorial-with-apache-cxf/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://www.benmccann.com/dev-blog/apache-cxf-tutorial-ws-security-with-spring/&quot;&gt;http://www.benmccann.com/dev-blog/apache-cxf-tutorial-ws-security-with-spring/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;https://cwiki.apache.org/CXF20DOC/ws-security.html&quot;&gt;https://cwiki.apache.org/CXF20DOC/ws-security.html&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://weblogs.java.net/blog/ramapulavarthi/archive/2007/01/problems_using.html&quot;&gt;http://weblogs.java.net/blog/ramapulavarthi/archive/2007/01/problems_using.html&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://www.benmccann.com/dev-blog/web-services-tutorial-with-apache-cxf/&quot;&gt;http://www.benmccann.com/dev-blog/web-services-tutorial-with-apache-cxf/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://www.benmccann.com/dev-blog/apache-cxf-tutorial-ws-security-with-spring/&quot;&gt;http://www.benmccann.com/dev-blog/apache-cxf-tutorial-ws-security-with-spring/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;https://cwiki.apache.org/CXF20DOC/ws-security.html&quot;&gt;https://cwiki.apache.org/CXF20DOC/ws-security.html&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://cxf.apache.org/docs/&quot;&gt;http://cxf.apache.org/docs/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://cxf.apache.org/docs/dynamic-clients.html&quot;&gt;http://cxf.apache.org/docs/dynamic-clients.html&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://cxf.apache.org/javadoc/latest/&quot;&gt;http://cxf.apache.org/javadoc/latest/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://cxf.apache.org/docs/client-http-transport-including-ssl-support.html&quot;&gt;http://cxf.apache.org/docs/client-http-transport-including-ssl-support.html&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://techpolesen.blogspot.com/2007/08/using-ssl-with-xfirecxf-battling.html&quot;&gt;http://techpolesen.blogspot.com/2007/08/using-ssl-with-xfirecxf-battling.html&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://geekswithblogs.net/claraoscura/archive/2006/11/17/97438.aspx&quot;&gt;http://geekswithblogs.net/claraoscura/archive/2006/11/17/97438.aspx&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://blogs.sun.com/bharath/entry/ws_security_vs_ssl&quot;&gt;http://blogs.sun.com/bharath/entry/ws_security_vs_ssl&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://blogs.objectsharp.com/cs/blogs/bruce/archive/2004/09/23/896.aspx&quot;&gt;http://blogs.objectsharp.com/cs/blogs/bruce/archive/2004/09/23/896.aspx&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://weblogs.java.net/blog/ramapulavarthi/archive/2007/01/problems_using.html&quot;&gt;http://weblogs.java.net/blog/ramapulavarthi/archive/2007/01/problems_using.html&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://sagarkarnati.blogspot.com/feeds/8123562114808523218/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sagarkarnati.blogspot.com/2011/01/my-reference-links.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1692868576301884060/posts/default/8123562114808523218'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1692868576301884060/posts/default/8123562114808523218'/><link rel='alternate' type='text/html' href='http://sagarkarnati.blogspot.com/2011/01/my-reference-links.html' title='My Reference Links'/><author><name>Vidya Sagar Karnati</name><uri>http://www.blogger.com/profile/10219954276511429617</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1692868576301884060.post-3458830688166741789</id><published>2011-01-05T09:08:00.000+05:30</published><updated>2011-01-05T09:08:17.643+05:30</updated><title type='text'>My Reference SNMP Links</title><content type='html'>&lt;a href=&quot;http://www.simpleweb.org/tutorials&quot;&gt;http://www.simpleweb.org/tutorials&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://www.snmplink.org/&quot;&gt;http://www.snmplink.org/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://www.cisco.com/univercd/cc/td/doc/product/webscale/css/css_740/admgd/snmp.htm&quot;&gt;http://www.cisco.com/univercd/cc/td/doc/product/webscale/css/css_740/admgd/snmp.htm&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://www.ietf.org/&quot;&gt;http://www.ietf.org/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://www.iana.org/&quot;&gt;http://www.iana.org/&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://sagarkarnati.blogspot.com/feeds/3458830688166741789/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sagarkarnati.blogspot.com/2011/01/my-reference-snmp-links.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1692868576301884060/posts/default/3458830688166741789'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1692868576301884060/posts/default/3458830688166741789'/><link rel='alternate' type='text/html' href='http://sagarkarnati.blogspot.com/2011/01/my-reference-snmp-links.html' title='My Reference SNMP Links'/><author><name>Vidya Sagar Karnati</name><uri>http://www.blogger.com/profile/10219954276511429617</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1692868576301884060.post-6214049700645103378</id><published>2011-01-02T15:39:00.002+05:30</published><updated>2011-01-02T15:39:56.124+05:30</updated><title type='text'>Command for Finding a File containing a particular text string</title><content type='html'>grep command form (syntax)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
grep “text string to search” directory-path&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Examples&lt;br /&gt;
&lt;br /&gt;
For example search for a string called redeem reward in all text files located in /home/tom/*.txt directory, use&lt;br /&gt;
&lt;br /&gt;
$ grep &quot;redeem reward&quot; /home/tom/*.txt&lt;br /&gt;
&lt;br /&gt;
Task: Search all subdirectories recursively&lt;br /&gt;
&lt;br /&gt;
You can search for a text string all files under each directory, recursively with -roption:&lt;br /&gt;
&lt;br /&gt;
$ grep -r &quot;redeem reward&quot; /home/tom&lt;br /&gt;
&lt;br /&gt;
Task: Only print filenames&lt;br /&gt;
&lt;br /&gt;
By default, grep command prints the matching lines You can pass -H option to print the filename for each match.&lt;br /&gt;
&lt;br /&gt;
$ grep -H -r “redeem reward” /home/tom</content><link rel='replies' type='application/atom+xml' href='http://sagarkarnati.blogspot.com/feeds/6214049700645103378/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sagarkarnati.blogspot.com/2011/01/command-for-finding-file-containing.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1692868576301884060/posts/default/6214049700645103378'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1692868576301884060/posts/default/6214049700645103378'/><link rel='alternate' type='text/html' href='http://sagarkarnati.blogspot.com/2011/01/command-for-finding-file-containing.html' title='Command for Finding a File containing a particular text string'/><author><name>Vidya Sagar Karnati</name><uri>http://www.blogger.com/profile/10219954276511429617</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1692868576301884060.post-5161018975411386079</id><published>2011-01-02T12:20:00.000+05:30</published><updated>2011-01-02T12:20:18.765+05:30</updated><title type='text'>having multiple source directories in ant javac target</title><content type='html'>seperate them with the ;.it will work</content><link rel='replies' type='application/atom+xml' href='http://sagarkarnati.blogspot.com/feeds/5161018975411386079/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sagarkarnati.blogspot.com/2011/01/having-multiple-source-directories-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1692868576301884060/posts/default/5161018975411386079'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1692868576301884060/posts/default/5161018975411386079'/><link rel='alternate' type='text/html' href='http://sagarkarnati.blogspot.com/2011/01/having-multiple-source-directories-in.html' title='having multiple source directories in ant javac target'/><author><name>Vidya Sagar Karnati</name><uri>http://www.blogger.com/profile/10219954276511429617</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1692868576301884060.post-2793816440002325336</id><published>2010-01-09T01:35:00.000+05:30</published><updated>2010-01-09T01:35:16.281+05:30</updated><title type='text'>Hibernate Performance Tuning</title><content type='html'>Hibernate query performance tuning is a very big problem while coading.Tuning hibernate performance can be made easier by setting these simple properties in configuration file(default:hibernate.cfg.xml) or hibernate.properties&lt;br /&gt;
&lt;br /&gt;
1)hibernate.show_sql ---- true/false ---- Writes all SQL statements to console. This is an alternative to setting the log category org.hibernate.SQL  to debug.&lt;br /&gt;
&lt;br /&gt;
2)hibernate.format_sql ----true/false---- Pretty print the SQL in the log and console.&lt;br /&gt;
&lt;br /&gt;
3)hibernate.generate_statistics ----true/false---- If enabled, Hibernate will collect statistics useful for performance tuning.&lt;br /&gt;
&lt;br /&gt;
4)hibernate.use_sql_comments ----true/false---- If turned on, Hibernate will generate comments inside the SQL, for easier debugging, defaults to false.&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://www.javadev.org/files/Hibernate%20Performance%20Tuning.pdf&quot;&gt;&lt;b&gt;Hibernate Performance Tuning Document.&lt;/b&gt;&lt;/a&gt;&lt;br /&gt;
This document is very helpful for increasing hibernate performance.&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;</content><link rel='replies' type='application/atom+xml' href='http://sagarkarnati.blogspot.com/feeds/2793816440002325336/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sagarkarnati.blogspot.com/2010/01/hibernate-performance-tuning.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1692868576301884060/posts/default/2793816440002325336'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1692868576301884060/posts/default/2793816440002325336'/><link rel='alternate' type='text/html' href='http://sagarkarnati.blogspot.com/2010/01/hibernate-performance-tuning.html' title='Hibernate Performance Tuning'/><author><name>Vidya Sagar Karnati</name><uri>http://www.blogger.com/profile/10219954276511429617</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1692868576301884060.post-8937160399509104354</id><published>2010-01-09T00:59:00.000+05:30</published><updated>2010-01-09T00:59:59.785+05:30</updated><title type='text'>Trick to get Windows XP’s Product key (CD Key, Serial Key) from CD itself</title><content type='html'>This trick which will be very much helpful in the case, if you don’t have the product key with your CD. It will take just few seconds; you just have to follow these 3 steps:&lt;br /&gt;
&lt;br /&gt;
   1. Explore the XP installation CD&lt;br /&gt;
   2. Search for UNATTEND.txt , which will be inside i386 directory&lt;br /&gt;
   3. Last line of the file will give you the Product Key of the CD</content><link rel='replies' type='application/atom+xml' href='http://sagarkarnati.blogspot.com/feeds/8937160399509104354/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sagarkarnati.blogspot.com/2010/01/trick-to-get-windows-xps-product-key-cd.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1692868576301884060/posts/default/8937160399509104354'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1692868576301884060/posts/default/8937160399509104354'/><link rel='alternate' type='text/html' href='http://sagarkarnati.blogspot.com/2010/01/trick-to-get-windows-xps-product-key-cd.html' title='Trick to get Windows XP’s Product key (CD Key, Serial Key) from CD itself'/><author><name>Vidya Sagar Karnati</name><uri>http://www.blogger.com/profile/10219954276511429617</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1692868576301884060.post-373721376795141560</id><published>2010-01-09T00:55:00.000+05:30</published><updated>2010-01-09T00:55:34.291+05:30</updated><title type='text'>Installing MySql Query Browser in Ubuntu 9.10</title><content type='html'>Open your terminal and type.&lt;br /&gt;
&lt;br /&gt;
$ sudo apt-get install mysql-admin mysql-query-browser&lt;br /&gt;
&lt;br /&gt;
This command will download and install My-Sql Query Browser to /etc directory.&lt;br /&gt;
&lt;br /&gt;
it will prompt for password.Enter it!&lt;br /&gt;
&lt;br /&gt;
now every thing will be taken care automatically.&lt;br /&gt;
&lt;br /&gt;
For running MySql-Query browser type the following in terminal&lt;br /&gt;
&lt;br /&gt;
$cd /etc&lt;br /&gt;
$mysql-query-browser&lt;br /&gt;
&lt;br /&gt;
now query browser will be launched.&lt;br /&gt;
&lt;br /&gt;
----Enjoy</content><link rel='replies' type='application/atom+xml' href='http://sagarkarnati.blogspot.com/feeds/373721376795141560/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sagarkarnati.blogspot.com/2010/01/installing-mysql-query-browser-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1692868576301884060/posts/default/373721376795141560'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1692868576301884060/posts/default/373721376795141560'/><link rel='alternate' type='text/html' href='http://sagarkarnati.blogspot.com/2010/01/installing-mysql-query-browser-in.html' title='Installing MySql Query Browser in Ubuntu 9.10'/><author><name>Vidya Sagar Karnati</name><uri>http://www.blogger.com/profile/10219954276511429617</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1692868576301884060.post-299717683590296336</id><published>2010-01-09T00:33:00.000+05:30</published><updated>2010-01-09T00:33:10.500+05:30</updated><title type='text'>Installing My-Sql in Ubuntu 9.10</title><content type='html'>For Installation and use MySQL you have to give some instruction in terminal:&lt;br /&gt;
&lt;br /&gt;
Step 1:&lt;br /&gt;
&lt;br /&gt;
    sudo apt-get install mysql-server&lt;br /&gt;
&lt;br /&gt;
This will install the latest MySQL-server into your machine.&lt;br /&gt;
&lt;br /&gt;
Step 2:&lt;br /&gt;
&lt;br /&gt;
    sudo /etc/init.d/mysql start&lt;br /&gt;
&lt;br /&gt;
Which will start the MySQL server.&lt;br /&gt;
&lt;br /&gt;
Step 3:&lt;br /&gt;
&lt;br /&gt;
    mysql -u root -p&lt;br /&gt;
&lt;br /&gt;
This instruction will ask you the MySql server that you have entered during installation.&lt;br /&gt;
&lt;br /&gt;
Step 4:&lt;br /&gt;
&lt;br /&gt;
    create database db_test&lt;br /&gt;
&lt;br /&gt;
This instruction will create a new database “db_test”&lt;br /&gt;
&lt;br /&gt;
Step 5:&lt;br /&gt;
&lt;br /&gt;
    use db_test&lt;br /&gt;
&lt;br /&gt;
which will let you inside the database.</content><link rel='replies' type='application/atom+xml' href='http://sagarkarnati.blogspot.com/feeds/299717683590296336/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sagarkarnati.blogspot.com/2010/01/installing-my-sql-in-ubuntu-910.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1692868576301884060/posts/default/299717683590296336'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1692868576301884060/posts/default/299717683590296336'/><link rel='alternate' type='text/html' href='http://sagarkarnati.blogspot.com/2010/01/installing-my-sql-in-ubuntu-910.html' title='Installing My-Sql in Ubuntu 9.10'/><author><name>Vidya Sagar Karnati</name><uri>http://www.blogger.com/profile/10219954276511429617</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1692868576301884060.post-588667885135878471</id><published>2009-11-06T22:14:00.000+05:30</published><updated>2009-11-06T22:14:52.067+05:30</updated><title type='text'>Encourage Open Source</title><content type='html'>Insted of buying costly applications go for open source softwares which are equally competent with the&amp;nbsp;&amp;nbsp; commersial softwares.&lt;br /&gt;
&lt;br /&gt;
For OS try Ubuntu insted of Windows&lt;br /&gt;
For Office Appications try OpenOffice instedof MSOffice&lt;br /&gt;
For Server try Ubuntu Server insted of windows&lt;br /&gt;
For antivirus try avg,Avast insted of macaffe,e.t.c&lt;br /&gt;
&lt;br /&gt;
From Ubuntu u can download or even u can get cd&#39;s by post.&lt;br /&gt;
&lt;br /&gt;
Try opensource reduce ur pc Licensing costs.&lt;br /&gt;
&lt;br /&gt;
Jay Ho Opensource</content><link rel='replies' type='application/atom+xml' href='http://sagarkarnati.blogspot.com/feeds/588667885135878471/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sagarkarnati.blogspot.com/2009/11/encourage-open-source.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1692868576301884060/posts/default/588667885135878471'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1692868576301884060/posts/default/588667885135878471'/><link rel='alternate' type='text/html' href='http://sagarkarnati.blogspot.com/2009/11/encourage-open-source.html' title='Encourage Open Source'/><author><name>Vidya Sagar Karnati</name><uri>http://www.blogger.com/profile/10219954276511429617</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1692868576301884060.post-2269288427359478626</id><published>2009-11-04T23:02:00.000+05:30</published><updated>2009-11-04T23:02:26.542+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="finding hardware information"/><category scheme="http://www.blogger.com/atom/ns#" term="hardware information"/><category scheme="http://www.blogger.com/atom/ns#" term="pendrive application"/><category scheme="http://www.blogger.com/atom/ns#" term="portable application"/><title type='text'>software for finding out system hardware information</title><content type='html'>If you are looking to upgrade the memory in your computer, you are probably wondering how many open slots you have, what type of memory is already installed, and what you need to buy for an upgrade… without having to open your computer.&lt;br /&gt;
&lt;br /&gt;
Since you shouldn’t have to open up the computer just to figure out what you have installed, here’s a couple of options for detecting the type of memory already installed in your system.&lt;br /&gt;
&lt;br /&gt;
Using System Information for Windows:&lt;br /&gt;
&lt;br /&gt;
This is a open source stand-alone client.A portable PenDrive application available for download.&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://www.gtopala.com/siw-download.html&quot;&gt;Download System Information for windows&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Using the Crucial Memory Adviser:&lt;br /&gt;
&lt;br /&gt;
This is a web based tool.Initially it will download a small appication to the system and gives a reliable information about RAM change.&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://www.crucial.com/&quot;&gt;Crucial Memory Advisor&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://sagarkarnati.blogspot.com/feeds/2269288427359478626/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sagarkarnati.blogspot.com/2009/11/software-for-finding-out-system.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1692868576301884060/posts/default/2269288427359478626'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1692868576301884060/posts/default/2269288427359478626'/><link rel='alternate' type='text/html' href='http://sagarkarnati.blogspot.com/2009/11/software-for-finding-out-system.html' title='software for finding out system hardware information'/><author><name>Vidya Sagar Karnati</name><uri>http://www.blogger.com/profile/10219954276511429617</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>