<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>NamHuy &#187; terminal</title>
	<atom:link href="http://namhuy.org/blog/tag/terminal/feed/" rel="self" type="application/rss+xml" />
	<link>http://namhuy.org/blog</link>
	<description>Includes news, help, tutorials, programming, tips and how-to guides for Linux, UNIX, and BSD</description>
	<lastBuildDate>Wed, 21 Mar 2012 03:57:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Set Ubuntu Server Time through Terminal</title>
		<link>http://namhuy.org/blog/2011/08/30/set-ubuntu-server-time-through-terminal/</link>
		<comments>http://namhuy.org/blog/2011/08/30/set-ubuntu-server-time-through-terminal/#comments</comments>
		<pubDate>Wed, 31 Aug 2011 04:38:14 +0000</pubDate>
		<dc:creator>Huy Tran</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Tips - Tricks]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[terminal]]></category>
		<category><![CDATA[time zone]]></category>

		<guid isPermaLink="false">http://namhuy.org/blog/?p=304</guid>
		<description><![CDATA[Get the current server time by just typing “date” in the terminal. Install Time Zone 1 $sudo aptitude install tzdata 2 $dpkg-reconfigure tzdata 3 $sudo vim /etc/ntp.conf Add NTP server 1 driftfile /var/lib/ntp/ntp.drift 2 server 0.pool.ntp.org 3 server 1.pool.ntp.org 4 &#8230; <a href="http://namhuy.org/blog/2011/08/30/set-ubuntu-server-time-through-terminal/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Get the current server time by just typing “date” in the terminal.</p>
<p>Install Time Zone<br />
1 $sudo aptitude install tzdata<br />
2 $dpkg-reconfigure tzdata<br />
3 $sudo vim /etc/ntp.conf</p>
<p>Add NTP server<br />
1 driftfile /var/lib/ntp/ntp.drift<br />
2 server 0.pool.ntp.org<br />
3 server 1.pool.ntp.org<br />
4 server 2.pool.ntp.org<br />
5 server pool.ntp.org</p>
<p>Manually update the time by “$sudo ntpdate pool.ntp.org”</p>
<div class="bottomcontainerBox" style="background-color:#F0F4F9;">
			<div style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fnamhuy.org%2Fblog%2F2011%2F08%2F30%2Fset-ubuntu-server-time-through-terminal%2F&amp;layout=button_count&amp;show_faces=false&amp;width=80&amp;action=like&amp;font=verdana&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:80px; height:21px;"></iframe></div>
			<div style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<g:plusone size="medium" href="http://namhuy.org/blog/2011/08/30/set-ubuntu-server-time-through-terminal/"></g:plusone>
			</div>
			<div style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<a href="http://twitter.com/share" class="twitter-share-button" data-url="http://namhuy.org/blog/2011/08/30/set-ubuntu-server-time-through-terminal/"  data-text="Set Ubuntu Server Time through Terminal" data-count="horizontal"></a>
			</div>			
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"><script src="http://www.stumbleupon.com/hostedbadge.php?s=1&amp;r=http://namhuy.org/blog/2011/08/30/set-ubuntu-server-time-through-terminal/"></script></div>			
			</div><div style="clear:both"></div><div style="padding-bottom:4px;"></div>]]></content:encoded>
			<wfw:commentRss>http://namhuy.org/blog/2011/08/30/set-ubuntu-server-time-through-terminal/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Automated Shutdown via Terminal</title>
		<link>http://namhuy.org/blog/2010/09/19/automated-shutdown-via-terminal/</link>
		<comments>http://namhuy.org/blog/2010/09/19/automated-shutdown-via-terminal/#comments</comments>
		<pubDate>Sun, 19 Sep 2010 17:36:10 +0000</pubDate>
		<dc:creator>Huy Tran</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Tips - Tricks]]></category>
		<category><![CDATA[shutdown]]></category>
		<category><![CDATA[terminal]]></category>

		<guid isPermaLink="false">http://namhuy.org/blog/?p=123</guid>
		<description><![CDATA[Automated shutdown is pretty useful for lots of things. If you&#8217;re downloading something and you want the computer to shut down after you&#8217;ve finished to save power or if you&#8217;re going to sleep and you want to leave the computer &#8230; <a href="http://namhuy.org/blog/2010/09/19/automated-shutdown-via-terminal/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Automated shutdown is pretty useful for lots of things. If you&#8217;re downloading something and you want the computer to shut down after you&#8217;ve finished to save power or if you&#8217;re going to sleep and you want to leave the computer on to play some music but really can&#8217;t be bothered getting up.</p>
<p>There are program to schedule shutdowns, but here&#8217;s a great simple command line prompt alternative:</p>
<p><strong>sudo shutdown -P time</strong></p>
<p>and replace &#8220;time&#8221; with the number of minutes or time stamp. If you replace it with an integer (e.g. 30) it will count down from that number of minutes then initiate shutdown. e.g. [sudo shutdown -P 30] would shutdown the computer in 30 minutes. If you replace &#8220;time&#8221; with a time stamp (e.g. 13:30), it would initiate shutdown at that specific time. e.g.[sudo shutdown -P 13:30] would shutdown the computer at 1:30pm. Not that the time is in 24 hour format.</p>
<p>Check out &#8220;man shutdown&#8221;  for more information.</p>
<div class="bottomcontainerBox" style="background-color:#F0F4F9;">
			<div style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fnamhuy.org%2Fblog%2F2010%2F09%2F19%2Fautomated-shutdown-via-terminal%2F&amp;layout=button_count&amp;show_faces=false&amp;width=80&amp;action=like&amp;font=verdana&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:80px; height:21px;"></iframe></div>
			<div style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<g:plusone size="medium" href="http://namhuy.org/blog/2010/09/19/automated-shutdown-via-terminal/"></g:plusone>
			</div>
			<div style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<a href="http://twitter.com/share" class="twitter-share-button" data-url="http://namhuy.org/blog/2010/09/19/automated-shutdown-via-terminal/"  data-text="Automated Shutdown via Terminal" data-count="horizontal"></a>
			</div>			
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"><script src="http://www.stumbleupon.com/hostedbadge.php?s=1&amp;r=http://namhuy.org/blog/2010/09/19/automated-shutdown-via-terminal/"></script></div>			
			</div><div style="clear:both"></div><div style="padding-bottom:4px;"></div>]]></content:encoded>
			<wfw:commentRss>http://namhuy.org/blog/2010/09/19/automated-shutdown-via-terminal/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Log4Tailer 2.0 released with SSH tailing capabilities</title>
		<link>http://namhuy.org/blog/2010/02/23/log4tailer-2-0-released-with-ssh-tailing-capabilities/</link>
		<comments>http://namhuy.org/blog/2010/02/23/log4tailer-2-0-released-with-ssh-tailing-capabilities/#comments</comments>
		<pubDate>Tue, 23 Feb 2010 15:15:44 +0000</pubDate>
		<dc:creator>Huy Tran</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[log4tailer]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[tailing]]></category>
		<category><![CDATA[terminal]]></category>

		<guid isPermaLink="false">http://namhuy.org/blog/?p=87</guid>
		<description><![CDATA[Log4Tailer 2.0 http://code.google.com/p/log4tailer/ has just been released. It has been a month of some thought and testing the feasability of including tailing over SSH, and this release provides just that. It will open the door for a range of more &#8230; <a href="http://namhuy.org/blog/2010/02/23/log4tailer-2-0-released-with-ssh-tailing-capabilities/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Log4Tailer 2.0 <a title="log4tailer" href="http://code.google.com/p/log4tailer/">http://code.google.com/p/log4tailer/</a> has just been released. It has been a month of some thought and testing the feasability of including tailing over SSH, and this release provides just that. It will open the door for a range of more features to control remote logs scattered across a network from a single terminal, instead of having multiple terminals or windows opened. As always, the project provides a nice pdf UserGuide explaining the ssh tailing capabilities of log4tailer.</p>
<div class="bottomcontainerBox" style="background-color:#F0F4F9;">
			<div style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fnamhuy.org%2Fblog%2F2010%2F02%2F23%2Flog4tailer-2-0-released-with-ssh-tailing-capabilities%2F&amp;layout=button_count&amp;show_faces=false&amp;width=80&amp;action=like&amp;font=verdana&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:80px; height:21px;"></iframe></div>
			<div style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<g:plusone size="medium" href="http://namhuy.org/blog/2010/02/23/log4tailer-2-0-released-with-ssh-tailing-capabilities/"></g:plusone>
			</div>
			<div style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<a href="http://twitter.com/share" class="twitter-share-button" data-url="http://namhuy.org/blog/2010/02/23/log4tailer-2-0-released-with-ssh-tailing-capabilities/"  data-text="Log4Tailer 2.0 released with SSH tailing capabilities" data-count="horizontal"></a>
			</div>			
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"><script src="http://www.stumbleupon.com/hostedbadge.php?s=1&amp;r=http://namhuy.org/blog/2010/02/23/log4tailer-2-0-released-with-ssh-tailing-capabilities/"></script></div>			
			</div><div style="clear:both"></div><div style="padding-bottom:4px;"></div>]]></content:encoded>
			<wfw:commentRss>http://namhuy.org/blog/2010/02/23/log4tailer-2-0-released-with-ssh-tailing-capabilities/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Terminal or shell command to shutdown or reboot Ubuntu Linux</title>
		<link>http://namhuy.org/blog/2008/02/09/terminal-or-shell-command-to-shutdown-or-reboot-ubuntu-linux/</link>
		<comments>http://namhuy.org/blog/2008/02/09/terminal-or-shell-command-to-shutdown-or-reboot-ubuntu-linux/#comments</comments>
		<pubDate>Sat, 09 Feb 2008 11:48:55 +0000</pubDate>
		<dc:creator>Huy Tran</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[command]]></category>
		<category><![CDATA[reboot]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[shutdown]]></category>
		<category><![CDATA[terminal]]></category>

		<guid isPermaLink="false">http://namhuy.org/blog/2008/02/09/terminal-or-shell-command-to-shutdown-or-reboot-ubuntu-linux/</guid>
		<description><![CDATA[So how do you shutdown or reboot Ubuntu Linux from a terminal or a shell prompt? If GUI is working you can always click on a Quit button. If GUI is not working or if you are working remotely over &#8230; <a href="http://namhuy.org/blog/2008/02/09/terminal-or-shell-command-to-shutdown-or-reboot-ubuntu-linux/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>So how do you shutdown or reboot Ubuntu Linux from a terminal or a shell prompt? If GUI is working you can always click on a Quit button. If GUI is not working or if you are working remotely over ssh type the following command:</p>
<p><strong><br />
To shutdown / poweroff Ubuntu Linux</strong></p>
<p>Type the command:</p>
<blockquote><p>sudo halt</p></blockquote>
<p>OR</p>
<blockquote><p>sudo shutdown -h now</p></blockquote>
<p>OR</p>
<blockquote><p>sudo shutdown -r now</p></blockquote>
<p>OR</p>
<blockquote><p>sudo init 6</p></blockquote>
<p><strong>To reboot Ubuntu Linux</strong></p>
<p>Type the command:</p>
<blockquote><p>sudo reboot</p></blockquote>
<p>More information can be found about these two commands by typing following commands (man page):</p>
<blockquote><p>man reboot<br />
man shutdown</p></blockquote>
<div class="bottomcontainerBox" style="background-color:#F0F4F9;">
			<div style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fnamhuy.org%2Fblog%2F2008%2F02%2F09%2Fterminal-or-shell-command-to-shutdown-or-reboot-ubuntu-linux%2F&amp;layout=button_count&amp;show_faces=false&amp;width=80&amp;action=like&amp;font=verdana&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:80px; height:21px;"></iframe></div>
			<div style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<g:plusone size="medium" href="http://namhuy.org/blog/2008/02/09/terminal-or-shell-command-to-shutdown-or-reboot-ubuntu-linux/"></g:plusone>
			</div>
			<div style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<a href="http://twitter.com/share" class="twitter-share-button" data-url="http://namhuy.org/blog/2008/02/09/terminal-or-shell-command-to-shutdown-or-reboot-ubuntu-linux/"  data-text="Terminal or shell command to shutdown or reboot Ubuntu Linux" data-count="horizontal"></a>
			</div>			
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"><script src="http://www.stumbleupon.com/hostedbadge.php?s=1&amp;r=http://namhuy.org/blog/2008/02/09/terminal-or-shell-command-to-shutdown-or-reboot-ubuntu-linux/"></script></div>			
			</div><div style="clear:both"></div><div style="padding-bottom:4px;"></div>]]></content:encoded>
			<wfw:commentRss>http://namhuy.org/blog/2008/02/09/terminal-or-shell-command-to-shutdown-or-reboot-ubuntu-linux/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>using traceroute on ubuntu terminal</title>
		<link>http://namhuy.org/blog/2007/08/13/using-traceroute-on-ubuntu-terminal/</link>
		<comments>http://namhuy.org/blog/2007/08/13/using-traceroute-on-ubuntu-terminal/#comments</comments>
		<pubDate>Mon, 13 Aug 2007 20:22:40 +0000</pubDate>
		<dc:creator>Huy Tran</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Tips - Tricks]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[IP]]></category>
		<category><![CDATA[terminal]]></category>
		<category><![CDATA[traceroute]]></category>

		<guid isPermaLink="false">http://namhuy.org/blog/2007/08/13/using-traceroute-on-ubuntu-terminal/</guid>
		<description><![CDATA[The traceroute (linux) tracert (windows) utility displays the route used by IP packets on their way to a specified network (or Internet) host. Traceroute displays the IP number and host name (if possible) of the machines along the route taken &#8230; <a href="http://namhuy.org/blog/2007/08/13/using-traceroute-on-ubuntu-terminal/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>The traceroute (linux) tracert (windows) utility displays the route used by IP packets on their way to a specified network (or Internet) host. Traceroute displays the IP number and host name (if possible) of the machines along the route taken by the packets. Traceroute is used as a network debugging tool. If you&#8217;re having network connectivity problems, traceroute will show you where the trouble is coming from along the route.</p>
<p>open a terminal and enter:<br />
1. <strong>sudo apt-get install traceroute</strong> (to install the packages you need)<br />
2. <strong>traceroute domain</strong> or <strong>IP</strong> (<strong>traceroute namhuy.org</strong> or <strong>traceroute yourdomain.com</strong></p>
<h4><strong>NAME</strong></h4>
<pre>       traceroute - print route IP packets follow going to a remote host</pre>
<h4><strong>SYNOPSIS</strong></h4>
<pre>       <strong>traceroute</strong> [ <span style="text-decoration: underline;">options</span> ] <span style="text-decoration: underline;">host</span> [ <span style="text-decoration: underline;">size</span> ]</pre>
<h4><strong>DESCRIPTION</strong></h4>
<pre>       Traceroute  attempts  to  trace  the route an IP packet follows to some
       internet host.  It finds  out  intermediate  hops  by  launching  probe
       packets  with a small time-to-live (TTL) value, and then listens for an
       ICMP reply of <span style="text-decoration: underline;">time</span> <span style="text-decoration: underline;">exceeded</span> from an  intermediate  router.   Traceroute
       starts  probing  with a TTL of one, and increments by one until an ICMP
       <span style="text-decoration: underline;">port</span> <span style="text-decoration: underline;">unreachable</span> reply is received.  This means the  probe  either  got
       through to <span style="text-decoration: underline;">host</span>, or hit the maximum TTL.

       <span style="text-decoration: underline;">host</span>  is  the only mandatory argument, and specifies the target system,
       either as an IP address, or as a host name.  Parameter <span style="text-decoration: underline;">size</span>  determines
       the size of the probe packets in bytes.</pre>
<h4><strong>OPTIONS</strong></h4>
<pre>       <strong>-a</strong>     Abort after 10 consecutive hops without an answer.

       <strong>-d</strong>     Turn  on  socket level debugging.  This option is only available
              to the super-user (root).

       <strong>-m</strong> <span style="text-decoration: underline;">max_ttl</span>
              Set the maximum time-to-live (TTL) value that will be  used  for
              probing.  Hosts that are farther than <span style="text-decoration: underline;">max_ttl</span> hops away will not
              be traced (default 30).

       <strong>-n</strong>     Report only IP addresses, but no hostnames.

       <strong>-p</strong> <span style="text-decoration: underline;">port</span>
              Start  probing  at  an  alternate  UDP  port  (default   33434).
              Traceroute by default sends out UDP packets with increasing port
              numbers starting at <span style="text-decoration: underline;">port</span>, and listens for ICMP  errors  returned
              from  remote  hosts.  This scheme only works if there are no UDP
              servers listening on the probed hosts in the range from <span style="text-decoration: underline;">port</span>  to
              <span style="text-decoration: underline;">port</span> <span style="text-decoration: underline;">+</span> <span style="text-decoration: underline;">max_ttl</span>.

       <strong>-q</strong> <span style="text-decoration: underline;">n</span>   Send  out  <span style="text-decoration: underline;">n</span>  queries  for  each  TTL  (each  intermediate host)
              (default 3).

       <strong>-r</strong>     Set Dont Route option, advising routers to drop the packets.  In
              other words, only probe within the local subnet.

       <strong>-s</strong> <span style="text-decoration: underline;">addr</span>
              Set  source address of outgoing packets to <span style="text-decoration: underline;">addr</span>, given either as
              numeric IP address, or as hostname.

       <strong>-t</strong> <span style="text-decoration: underline;">tos</span> Set  the  type-of-service  field  in  the  outgoing  IP  packets
              (default 0).  <span style="text-decoration: underline;">tos</span> is valid in the range of 0 to 255.

       <strong>-u</strong>     Use microsecond timestamps.

       <strong>-v</strong>     Turn on verbose output.

       <strong>-w</strong> <span style="text-decoration: underline;">wait</span>
              Set  timeout for replies to <span style="text-decoration: underline;">wait</span> seconds (default 5 sec).  If no
              ICMP reply is received within <span style="text-decoration: underline;">wait</span> after a packet has been  sent
              out, the probe is considered as failed.

       <strong>-A</strong>     Report  the Autonomous System Number (ASN) at each hop.  Roughly
              speaking, the ASN tells which administration a router is subject
              to.   See  RFC 1930 for all the details, and section ENVIRONMENT
              below on how to fine tune the lookup.

       <strong>-I</strong> <span style="text-decoration: underline;">proto</span>
              Send out probe packets using IP protocol <span style="text-decoration: underline;">proto</span>, given either  as
              name  or  numerical  value  (default  UDP).   Some features like
              parallel probing are only available when using UDP.

       <strong>-M</strong>     Determine the maximum transfer unit (MTU) along the  path.   See
              RFC 1191 for details.

       <strong>-O</strong>     At each hop, perform a DNS lookup and report the owner as listed
              in the SOA record.

       <strong>-P</strong>     Send out multiple probes in  parallel.   The  default  behaviour
              probes  each  hop  in turn, starting from the nearest.  Parallel
              mode is faster, but less reliable.  Many routers rate limit ICMP
              packets  from a single host, so dropouts are much more likely in
              parallel mode, and need not indicate a networking problem.

       <strong>-Q</strong>     Report detailed statistics on the round trip times at  each  hop
              (minimum / average +- standard deviation / maximum).  The values
              are given in milli seconds.

       <strong>-S</strong> <span style="text-decoration: underline;">min_ttl</span>
              Set the time-to-live (TTL) value in the first packet sent out to
              <span style="text-decoration: underline;">min_ttl</span> (default 1).  This option determines the first (nearest)
              host that will show up in the trace.

       <strong>-T</strong> <span style="text-decoration: underline;">t</span>   End each line with <span style="text-decoration: underline;">t</span> instead of a newline.  This comes in handy,
              for example, when including traceroute’s output in an HTML page.

       <strong>-U</strong>     Move on to probing the next hop as soon as the first  successful
              probe arrives.

       <strong>-$</strong>     Send  out  nothing  but a single ping with a very large time-to-
              live.</pre>
<h4><strong>DIAGNOSTICS</strong></h4>
<pre>       Usually the round trip time is printed for  each  probe  at  each  hop.
       Special symbols denote when something went wrong:

       <strong>*</strong>      No reply received within <span style="text-decoration: underline;">wait</span> seconds.

       <strong>!</strong>      Reply arrived with a time-to-live value of one or lower.

       <strong>!H</strong>     Received   a   reply   telling  that  the  destination  host  is
              unreachable.

       <strong>!N</strong>     Received  a  reply  telling  that  the  destination  network  is
              unreachable.

       <strong>!P</strong>     Received   a   reply   telling  that  the  desired  protocol  is
              unavailable.

       <strong>!S</strong>     Received a reply telling that  source  routing  failed.   Should
              never occur--unless the probed gateway is screwed.

       <strong>!F</strong>     Received  a  reply telling that fragmentation is needed.  Should
              never occur--unless the probed gateway is screwed.</pre>
<h4><strong>EXAMPLES</strong></h4>
<pre>       (This section is taken almost verbatim from the  documentation  in  the
       traceroute sourcecode.)

              [yak 71]% traceroute nis.nsf.net.
              traceroute to nis.nsf.net (35.1.1.48), 30 hops max, 56 byte packet
               1  helios.ee.lbl.gov (128.3.112.1)  19 ms  19 ms  0 ms
               2  lilac-dmc.Berkeley.EDU (128.32.216.1)  39 ms  39 ms  19 ms
               3  lilac-dmc.Berkeley.EDU (128.32.216.1)  39 ms  39 ms  19 ms
               4  ccngw-ner-cc.Berkeley.EDU (128.32.136.23)  39 ms  40 ms  39 ms
               5  ccn-nerif22.Berkeley.EDU (128.32.168.22)  39 ms  39 ms  39 ms
               6  128.32.197.4 (128.32.197.4)  40 ms  59 ms  59 ms
               7  131.119.2.5 (131.119.2.5)  59 ms  59 ms  59 ms
               8  129.140.70.13 (129.140.70.13)  99 ms  99 ms  80 ms
               9  129.140.71.6 (129.140.71.6)  139 ms  239 ms  319 ms
              10  129.140.81.7 (129.140.81.7)  220 ms  199 ms  199 ms
              11  nic.merit.edu (35.1.1.48)  239 ms  239 ms  239 ms

       Note  that  lines 2 &amp; 3 are the same.  This is due to a buggy kernel on
       the 2nd hop system -- lbl-csam.arpa -- that  forwards  packets  with  a
       zero TTL.

       A more interesting example is:

              [yak 72]% traceroute allspice.lcs.mit.edu.
              traceroute to allspice.lcs.mit.edu (18.26.0.115), 30 hops max
               1  helios.ee.lbl.gov (128.3.112.1)  0 ms  0 ms  0 ms
               2  lilac-dmc.Berkeley.EDU (128.32.216.1)  19 ms  19 ms  19 ms
               3  lilac-dmc.Berkeley.EDU (128.32.216.1)  39 ms  19 ms  19 ms
               4  ccngw-ner-cc.Berkeley.EDU (128.32.136.23)  19 ms  39 ms  39 ms
               5  ccn-nerif22.Berkeley.EDU (128.32.168.22)  20 ms  39 ms  39 ms
               6  128.32.197.4 (128.32.197.4)  59 ms  119 ms  39 ms
               7  131.119.2.5 (131.119.2.5)  59 ms  59 ms  39 ms
               8  129.140.70.13 (129.140.70.13)  80 ms  79 ms  99 ms
               9  129.140.71.6 (129.140.71.6)  139 ms  139 ms  159 ms
              10  129.140.81.7 (129.140.81.7)  199 ms  180 ms  300 ms
              11  129.140.72.17 (129.140.72.17)  300 ms  239 ms  239 ms
              12  * * *
              13  128.121.54.72 (128.121.54.72)  259 ms  499 ms  279 ms
              14  * * *
              15  * * *
              16  * * *
              17  * * *
              18  ALLSPICE.LCS.MIT.EDU (18.26.0.115)  339 ms  279 ms  279 ms

       (I start to see why I’m having so much trouble with mail to MIT.)  Note
       that the gateways 12, 14, 15, 16 &amp; 17 hops away either don’t send  ICMP
       "time exceeded" messages or send them with a TTL too small to reach us.
       14 - 17 are running the MIT C Gateway  code  that  doesn’t  send  "time
       exceeded"s.  God only knows what’s going on with 12.

       The  silent  gateway  12 in the above may be the result of a bug in the
       4.[23]BSD network code (and its derivatives):  4.x (x &lt;=  3)  sends  an
       unreachable   message  using  whatever  TTL  remains  in  the  original
       datagram.  Since, for gateways, the remaining TTL  is  zero,  the  icmp
       "time  exceeded" is guaranteed to not make it back to us.  The behavior
       of this bug is  slightly  more  interesting  when  it  appears  on  the
       destination system:

               1  helios.ee.lbl.gov (128.3.112.1)  0 ms  0 ms  0 ms
               2  lilac-dmc.Berkeley.EDU (128.32.216.1)  39 ms  19 ms  39 ms
               3  lilac-dmc.Berkeley.EDU (128.32.216.1)  19 ms  39 ms  19 ms
               4  ccngw-ner-cc.Berkeley.EDU (128.32.136.23)  39 ms  40 ms  19 ms
               5  ccn-nerif35.Berkeley.EDU (128.32.168.35)  39 ms  39 ms  39 ms
               6  csgw.Berkeley.EDU (128.32.133.254)  39 ms  59 ms  39 ms
               7  * * *
               8  * * *
               9  * * *
              10  * * *
              11  * * *
              12  * * *
              13  rip.Berkeley.EDU (128.32.131.22)  59 ms !  39 ms !  39 ms !

       Notice  that  there are 12 "gateways" (13 is the final destination) and
       exactly the last half of them are "missing".  What’s  really  happening
       is  that  rip  (a  Sun-3  running  Sun OS3.5) is using the TTL from our
       arriving datagram as the TTL in its icmp reply.   So,  the  reply  will
       time  out  on the return path until we probe with a TTL that’s at least
       twice the path length.  I.e., rip is really only 7 hops away.</pre>
<h4><strong>ENVIRONMENT</strong></h4>
<pre>       The lookup process of Autonomous System Numbers  (ASN,  see  option  <span style="text-decoration: underline;">-A</span>
       above) can be configured via several environment variables. By default,
       traceroute issues a whois query on the Routing Assets  Database  (RADB)
       at <span style="text-decoration: underline;">whois.ra.net</span>, which should be sufficient in most cases.  Chances are
       that you don’t want to change anything here, unless you know very  well
       what you are doing.

       The  contents of the following environment variables are limited to 100
       characters at most.  Any trailing characters are silently ignored.   If
       unset, compiled-in defaults are used.

       <strong>RA_SERVER</strong>
              Server to issue a RADB whois query on, given either as hostname,
              or dotted-quad IP address.  Defaults to <span style="text-decoration: underline;">whois.ra.net</span>.

       <strong>RA_SERVICE</strong>
              TCP port to connect to on the whois server, given either as name
              or port number.  Defaults to <span style="text-decoration: underline;">whois</span>.

       The following variables determine how traceroute attempts to extract an
       ASN from the whois reply.

       <strong>DATA_DELIMITER</strong>
              Each line containing an ASN starts with this tag.   Defaults  to
              <span style="text-decoration: underline;">origin:</span>.

       The  RADB  may  contain more than one entry for a given IP address.  To
       find out the correct entry, traceroute has to look up the  subnet  that
       is the most specific to this IP.

       <strong>ROUTE_DELIMITER</strong>
              Each  line  containing  a  subnet  entry  starts  with this tag.
              Defaults to <span style="text-decoration: underline;">route:</span>.

       <strong>PREFIX_DELIMITER</strong>
              The network IP  and  the  prefix  are  separated  by  this  tag.
              Defaults to <span style="text-decoration: underline;">/</span>.</pre>
<h4><strong>NOTES</strong></h4>
<pre>       This  is  not  the  standard  version of traceroute (as included in the
       netkit package), but an alternative implementation maintained  by  Ehud
       Gavron.  It  is  based on the Van Jacobson/BSD traceroute, and includes
       additional features  including  AS  lookup,  TOS  support,  microsecond
       timestamps,  path  MTU discovery, and parallel probing.  It is known as
       trACESroute or traceroute-nanog.</pre>
<h4><strong>BUGS</strong></h4>
<pre>       Please send any bugs to Ehud Gavron &lt;<a href="mailto:gavron@wetwork.net">gavron@wetwork.net</a>&gt; and/or  report
       them      to      the     Debian     Bug     Tracking     System     at
       <span style="text-decoration: underline;"><a href="http://bugs.debian.org/traceroute-nanog">http://bugs.debian.org/traceroute-nanog</a></span>.</pre>
<h4><strong>AUTHORS</strong></h4>
<pre>       TrACESroute is maintained by Ehud Gavron &lt;<a href="mailto:ehud.gavron@login.com">ehud.gavron@login.com</a>&gt;.

       The first man page was written by Brian Russo for use with  Debian/GNU,
       and was later rewritten by Daniel Kobras &lt;<a href="mailto:kobras@debian.org">kobras@debian.org</a>&gt; and Martin
       A.  Godisch  &lt;<a href="mailto:martin@godisch.de">martin@godisch.de</a>&gt;.   Some  parts  are  taken  from   the
       documentation  in the source code.  Still, this man page may be used by
       others.</pre>
<div class="bottomcontainerBox" style="background-color:#F0F4F9;">
			<div style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fnamhuy.org%2Fblog%2F2007%2F08%2F13%2Fusing-traceroute-on-ubuntu-terminal%2F&amp;layout=button_count&amp;show_faces=false&amp;width=80&amp;action=like&amp;font=verdana&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:80px; height:21px;"></iframe></div>
			<div style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<g:plusone size="medium" href="http://namhuy.org/blog/2007/08/13/using-traceroute-on-ubuntu-terminal/"></g:plusone>
			</div>
			<div style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<a href="http://twitter.com/share" class="twitter-share-button" data-url="http://namhuy.org/blog/2007/08/13/using-traceroute-on-ubuntu-terminal/"  data-text="using traceroute on ubuntu terminal" data-count="horizontal"></a>
			</div>			
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"><script src="http://www.stumbleupon.com/hostedbadge.php?s=1&amp;r=http://namhuy.org/blog/2007/08/13/using-traceroute-on-ubuntu-terminal/"></script></div>			
			</div><div style="clear:both"></div><div style="padding-bottom:4px;"></div>]]></content:encoded>
			<wfw:commentRss>http://namhuy.org/blog/2007/08/13/using-traceroute-on-ubuntu-terminal/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic page generated in 0.357 seconds. -->
<!-- Cached page generated by WP-Super-Cache on 2012-05-21 12:13:36 -->
<!-- Compression = gzip -->
