<?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>Linux Admin Steps Into Management &#187; network</title>
	<atom:link href="http://yonitg.com/category/network/feed/" rel="self" type="application/rss+xml" />
	<link>http://yonitg.com</link>
	<description></description>
	<lastBuildDate>Fri, 02 Jul 2010 13:28:29 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Ajax DNS Tool</title>
		<link>http://yonitg.com/ajax-dns-tool/</link>
		<comments>http://yonitg.com/ajax-dns-tool/#comments</comments>
		<pubDate>Sun, 09 May 2010 22:06:08 +0000</pubDate>
		<dc:creator>yonitg</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Online Tools]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[DNS]]></category>

		<guid isPermaLink="false">http://yonitg.com/?p=447</guid>
		<description><![CDATA[I&#8217;m always searching for better tools to do my work, and today I have found this nice DNS online testing tool made with Ajax, It&#8217;s quite nice and fast, and its good when you do not have a Linux distro at hand, or have a problem with whois test from a proxied server. The site [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://yonitg.com/blog/wp-content/uploads/2010/05/dns1.jpg"><img class="alignnone size-full wp-image-451" title="Online dns tool" src="http://yonitg.com/blog/wp-content/uploads/2010/05/dns1.jpg" alt="Online dns tool" width="400" height="289" /></a></p>
<p>I&#8217;m always searching for better tools to do my work,<br />
and today I have found this nice <a title="DNS testing" href="http://www.ajaxdns.com/" target="_blank">DNS online testing tool</a> made with Ajax,<br />
It&#8217;s quite nice and fast, and its good when you do not have a Linux distro at hand,<br />
or have a problem with whois test from a proxied server.</p>
<p><span id="more-447"></span>The site offers:</p>
<ul>
<li>Live DNS test</li>
<li>whois search</li>
<li>IP whois</li>
<li>HTTP headers</li>
</ul>
<p>and more tools like it, very handy tool and works fast.</p>
<p>I do appreciate it when someone thinks of the GUI also and not just the functions in a tool.</p>

<!-- start wp-tags-to-technorati 1.01 -->

<p class='technorati-tags'>Technorati Tags: <a class='technorati-link' href='http://technorati.com/tag/DNS' rel='tag' target='_self'>DNS</a>, <a class='technorati-link' href='http://technorati.com/tag/Online+Tools' rel='tag' target='_self'>Online Tools</a></p>

<!-- end wp-tags-to-technorati -->
<img src="http://yonitg.com/blog/?ak_action=api_record_view&id=447&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://yonitg.com/ajax-dns-tool/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>NFS mount &#8211; When Your Shares Go Wrong</title>
		<link>http://yonitg.com/nfs-mount-debugging/</link>
		<comments>http://yonitg.com/nfs-mount-debugging/#comments</comments>
		<pubDate>Tue, 26 Jan 2010 22:14:43 +0000</pubDate>
		<dc:creator>yonitg</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Linux - Windows integration]]></category>
		<category><![CDATA[Solaris]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[sys admin]]></category>
		<category><![CDATA[Command line]]></category>
		<category><![CDATA[NFS]]></category>
		<category><![CDATA[samba]]></category>

		<guid isPermaLink="false">http://yonitg.com/?p=344</guid>
		<description><![CDATA[How to work with nfs mounts - command lines tool to check the server exports and debug nfs mounting problems.]]></description>
			<content:encoded><![CDATA[<p>From Wikipedia:</p>
<blockquote><p><a title="NFS on wikipedia" href="http://en.wikipedia.org/wiki/Network_File_System_%28protocol%29" target="_blank"><strong>Network File System</strong> (<strong>NFS</strong></a><a title="NFS on wikipedia" href="http://en.wikipedia.org/wiki/Network_File_System_%28protocol%29" target="_blank">)</a> is a network file system protocol originally developed by Sun Microsystems in 1984, allowing a user on a client computer to access files over a network in a manner similar to how local storage is accessed.</p></blockquote>
<p>So basically its a network share, it allows you to share files between remote computers<br />
in the most easy and seamless way, once it was specifically for UNIX servers,<br />
but today NFS is supported over MS servers as well.</p>
<p>Like everything else in Sysadmin life,<br />
when its working its working well, and nobody hears about it,<br />
but what to do when its not working?<br />
<a title="How to Debug Samba Server" href="http://yonitg.com/howto-debug-samba-server/" target="_blank">Samba debugging</a> for example is easier from that aspect since it has extensive logs for the sysadmin,<br />
NFS doesn&#8217;t keep logs, and NFS issues doesn&#8217;t show up in the syslog/messages file as well.</p>
<p>But there are tools that allow you to get extensive information about the running NFS process,<br />
shares, statistics, users connected etc :</p>
<table border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td width="391" valign="top">
<h3><span style="color: #0000ff;"><strong>Description</strong></span></h3>
</td>
<td width="247" valign="top">
<h3><span style="color: #0000ff;"><strong>Command</strong></span></h3>
</td>
</tr>
<tr>
<td width="391" valign="top">see what the machine is exporting<strong> </strong></td>
<td width="247" valign="top">SunOS: # exportfs<br />
Solaris: # share</td>
</tr>
<tr>
<td width="391" valign="top">Print the list of shared file systems<strong> </strong></td>
<td width="247" valign="top">showmount   -e server_name</td>
</tr>
<tr>
<td width="391" valign="top">Print the list of all clients mounting a   directory from the questioned server</td>
<td width="247" valign="top">showmount -a server_name</td>
</tr>
<tr>
<td width="391" valign="top">Print the directory and all the clients that   are mounting it curretly &#8211; from within the nfs server</td>
<td width="247" valign="top">dfmounts</td>
</tr>
<tr>
<td width="391" valign="top">print the nfs netwrok statistics<strong> </strong></td>
<td width="247" valign="top">client side: nfsstat -c<br />
server side: nfsstat -s</td>
</tr>
<tr>
<td width="391" valign="top">To see that nfsd is responding</td>
<td width="247" valign="top">rpcinfo   -T udp crimson nfs</td>
</tr>
<tr>
<td width="391" valign="top">To see that mountd is responding</td>
<td width="247" valign="top">rpcinfo -T udp crimson mountd</td>
</tr>
<tr>
<td width="391" valign="top">To see that lockd is responding</td>
<td width="247" valign="top">rpcinfo   -T udp crimson nlockmgr</p>
<p>rpcinfo   -T udp crimson llockmgr</td>
</tr>
</tbody>
</table>

<!-- start wp-tags-to-technorati 1.01 -->

<p class='technorati-tags'>Technorati Tags: <a class='technorati-link' href='http://technorati.com/tag/Command+line' rel='tag' target='_self'>Command line</a>, <a class='technorati-link' href='http://technorati.com/tag/NFS' rel='tag' target='_self'>NFS</a>, <a class='technorati-link' href='http://technorati.com/tag/samba' rel='tag' target='_self'>samba</a>, <a class='technorati-link' href='http://technorati.com/tag/Solaris' rel='tag' target='_self'>Solaris</a></p>

<!-- end wp-tags-to-technorati -->
<img src="http://yonitg.com/blog/?ak_action=api_record_view&id=344&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://yonitg.com/nfs-mount-debugging/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>solaris 10 and vnc</title>
		<link>http://yonitg.com/solaris-10-vnc/</link>
		<comments>http://yonitg.com/solaris-10-vnc/#comments</comments>
		<pubDate>Tue, 15 Dec 2009 21:35:20 +0000</pubDate>
		<dc:creator>yonitg</dc:creator>
				<category><![CDATA[IT management]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Linux - Windows integration]]></category>
		<category><![CDATA[Solaris]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[desktop]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[sys admin]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://yonitg.com/?p=338</guid>
		<description><![CDATA[VNC viewer is a free remote control software package. With VNC, you can see the desktop of a remote machine and control it with your local mouse and keyboard, just like you would do it sitting in the front of that computer. Now Solaris 10 comes with vncserver built in.]]></description>
			<content:encoded><![CDATA[<p>VNC is a server client method of connecting to a remote server,<br />
the great thing about vnc is that you can see the remote server desktop, and work on it with a mouse just like its your local desktop.<br />
another good thing about vnc is that its free for use for many distros.</p>
<p>There are main 2 major software companies that supply free vnc server and vnc cllient,<br />
the first is <a title="realvnc free download " href="http://www.realvnc.com/products/download.html" target="_blank">realvnc</a> and the second is <a title="tightvnc free vnc" href="http://www.tightvnc.com/download.php" target="_blank">tightvnc </a>, from the tighvnc site:</p>
<p>TightVNC is a free remote control software package. With TightVNC, you can <span style="color: #007000;"><strong>see the     desktop of a remote machine and control it</strong></span> with your local mouse and keyboard, just like you     would do it sitting in the front of that computer. TightVNC is:</p>
<ul>
<li><span style="color: #007000;"><strong>free</strong></span> for both personal and commercial usage, with full source code available (<a title="gnu license" href="http://www.gnu.org/copyleft/gpl.html" target="_blank">GPL</a>-licensed);</li>
<li>useful in remote administration, remote customer support, education, and for many other       purposes;</li>
<li>cross-platform, available for Windows and Unix, compatible with other VNC software.</li>
</ul>
<p>So these are 2 options for you to download a good free vnc viewer.</p>
<h2>Solaris VNCserver configuration</h2>
<p>and I say only viewer because now the Solaris 10 build 5 comes with the vncserver alredy inside.<br />
all you need to do is to configure it.</p>
<p>This page on the SUN site will give you the detailed explanation on how to do things and what <a title="Install a patch before using Xvnc" href="http://docs.sun.com/app/docs/doc/819-0872/remotead-20?l=en&amp;a=view&amp;q=vnc+solaris+10" target="_blank">security patch you need to install fisrt </a>,but the instructions can be summed up in 4 lines:</p>
<blockquote><p>mkdir -p /etc/dt/config</p>
<p>cp /usr/dt/config/Xservers    /etc/dt/config/Xservers</p>
<p>edit this file “/etc/dt/config/Xservers” and add these lines at the end:</p>
<p>:1  Local local_uid@none root /usr/X11/bin/Xvnc :1 -nobanner -AlwaysShared -SecurityTypes None -geometry 1024x768x24 -depth 24<br />
:2  Local local_uid@none root /usr/X11/bin/Xvnc :2 -nobanner -AlwaysShared -SecurityTypes None -geometry 1024x768x24 -depth 24<br />
:3  Local local_uid@none root /usr/X11/bin/Xvnc :3 -nobanner -AlwaysShared -SecurityTypes None -geometry 1024x768x24 -depth 24<br />
And reboot the server.</p></blockquote>
<p>The lines with the :1 :2 etc at the beginning, are the virtual displays you wish to server to have available for connections, you can add more by changing the numbers to :4 :5 etc.</p>
<p>when connecting to the server with the vnc viewer you need to express to which virtual display you want to connect by adding it to end of the server&#8217;s name or ip:</p>
<blockquote><p>10.10.10.1:3</p></blockquote>
<p>If you want to connect to virtual display number 3.</p>
<p>A security note – this configuration will allow passwordless access to the vnc screen – if someone logs in and leaves it open – the next user can just enter without a login.</p>
<p>A safer configuration is to require a password by using the <kbd><strong>-SecurityTypes VncAuth</strong></kbd> parameter. The Xvnc(1) man page describes password requirements.</p>
<h2><strong>VNC and Security</strong></h2>
<p>The vnc as a general is clear text, for a more secure connection there is a method of tunneling the vnc through a ssh session.<br />
2 nice tutorials for vnc through ssh can be found <a title="VNC over SSH2 - A TightVNC Tutorial" href="http://www.vanemery.com/Linux/VNC/vnc-over-ssh.html" target="_blank">here</a> and <a title="Tunnelling VNC over SSH with PuTTY" href="http://martybugs.net/smoothwall/puttyvnc.cgi" target="_blank">here</a>.<br />
the second tutorial is using putty for the ssh connection &#8211; putty is another great freeware,<br />
its a <a title="PuTTY Download Page" href="http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html" target="_blank">free ssh client for windows</a> to connect to ssh servers.</p>
<p>If the server you wish to connect to through vnc is located withing your lan,<br />
and you are relaxed about security for the users on it &#8211; if its a training server etc ,<br />
you can just setup the vncserver without any safeguards,<br />
but if you are connecting through an unsecured medium (AKA the internet)<br />
you better add the ssh layer to it.</p>
<p><a href="http://www.amazon.com/Solaris-10-System-Administration-Essentials/dp/013700009X%3FSubscriptionId%3DAKIAJOT3JJ24F6GO7IGQ%26tag%3Dyonitgcom-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D165953%26creativeASIN%3D013700009X"><img src="http://ecx.images-amazon.com/images/I/41E-zuGuMFL._SL160_.jpg" alt="" /></a> <a href="http://www.amazon.com/Solaris-Security-Essentials-Microsystems-Engineers/dp/0137012330%3FSubscriptionId%3DAKIAJOT3JJ24F6GO7IGQ%26tag%3Dyonitgcom-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D165953%26creativeASIN%3D0137012330"><img src="http://ecx.images-amazon.com/images/I/41DnAUzC0jL._SL160_.jpg" alt="" /></a> <a href="http://www.amazon.com/Solaris-Solutions-System-Administrators-Time-Saving/dp/047143115X%3FSubscriptionId%3DAKIAJOT3JJ24F6GO7IGQ%26tag%3Dyonitgcom-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D165953%26creativeASIN%3D047143115X"><img src="http://ecx.images-amazon.com/images/I/51VF610-5JL._SL160_.jpg" alt="" /></a></p>

<!-- start wp-tags-to-technorati 1.01 -->

<p class='technorati-tags'>Technorati Tags: <a class='technorati-link' href='http://technorati.com/tag/desktop' rel='tag' target='_self'>desktop</a>, <a class='technorati-link' href='http://technorati.com/tag/Linux' rel='tag' target='_self'>Linux</a>, <a class='technorati-link' href='http://technorati.com/tag/network' rel='tag' target='_self'>network</a>, <a class='technorati-link' href='http://technorati.com/tag/Solaris' rel='tag' target='_self'>Solaris</a>, <a class='technorati-link' href='http://technorati.com/tag/windows' rel='tag' target='_self'>windows</a></p>

<!-- end wp-tags-to-technorati -->
<img src="http://yonitg.com/blog/?ak_action=api_record_view&id=338&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://yonitg.com/solaris-10-vnc/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>I Like Good Linux Lists On The Morning</title>
		<link>http://yonitg.com/i-like-good-linux-lists-on-the-morning/</link>
		<comments>http://yonitg.com/i-like-good-linux-lists-on-the-morning/#comments</comments>
		<pubDate>Mon, 30 Nov 2009 22:21:51 +0000</pubDate>
		<dc:creator>yonitg</dc:creator>
				<category><![CDATA[IT management]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[desktop]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[sys admin]]></category>
		<category><![CDATA[Command line]]></category>
		<category><![CDATA[Hardware]]></category>

		<guid isPermaLink="false">http://yonitg.com/?p=319</guid>
		<description><![CDATA[Lists are the magic word for SEO and link bait, and they catch the eye. Well I sometimes bite too so here is the latest Linux links list I have fallen for: 15 Power tools for Linux that you cant afford to miss, I havent checked all the links in the page yet, but I [...]]]></description>
			<content:encoded><![CDATA[<p>Lists are the magic word for SEO and <a title="Matt Cutts SEO Advice: linkbait and linkbaiting" href="http://www.mattcutts.com/blog/seo-advice-linkbait-and-linkbaiting/" target="_blank">link bait</a>, and they catch the eye.</p>
<p>Well I sometimes bite too so here is the latest Linux links list I have fallen for:<br />
15 Power tools for Linux that you cant afford to miss,<br />
I havent checked all the links in the page yet, but I will.</p>
<p>And you should probably check out the whole blog,<br />
It looks very promising and fun to read.<br />
from their description:<br />
<a title="Linux Desktop Blog" href="http://penguininside.blogspot.com/" target="_blank">Penguin Inside</a> is a blog about Linux and Software Guides, How-TOs, Reviews.<br />
The blog is dedicated to Linux Desktops.</p>
<p>Another Good list is from Smashing Magazine:<br />
<a title="not realy related to linux servers but I liked it anyhow" href="http://www.smashingmagazine.com/2009/06/07/50-beautiful-flash-websites/" target="_blank">50 Beautiful Flash Websites</a> , and thats a beutiful list of 50 stunning flash websites,<br />
A couple that i liked the most are:</p>
<p><a title="econtent" href="http://www.econtent.hu/flash_version/index.html" target="_blank">e-Content Solutions</a></p>
<p><img class="alignnone size-full wp-image-328" title="econtent" src="http://yonitg.com/blog/wp-content/uploads/2009/11/econtent_s.jpg" alt="econtent" width="400" height="264" /></p>
<p>and <a title="v5design" href="http://www.v5design.com/" target="_blank">v5 Design</a></p>
<p><img class="alignnone size-full wp-image-329" title="v5design_s" src="http://yonitg.com/blog/wp-content/uploads/2009/11/v5design_s.jpg" alt="v5design_s" width="400" height="264" /></p>

<!-- start wp-tags-to-technorati 1.01 -->

<p class='technorati-tags'>Technorati Tags: <a class='technorati-link' href='http://technorati.com/tag/Command+line' rel='tag' target='_self'>Command line</a>, <a class='technorati-link' href='http://technorati.com/tag/desktop' rel='tag' target='_self'>desktop</a>, <a class='technorati-link' href='http://technorati.com/tag/Hardware' rel='tag' target='_self'>Hardware</a>, <a class='technorati-link' href='http://technorati.com/tag/Linux' rel='tag' target='_self'>Linux</a></p>

<!-- end wp-tags-to-technorati -->
<img src="http://yonitg.com/blog/?ak_action=api_record_view&id=319&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://yonitg.com/i-like-good-linux-lists-on-the-morning/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Test http server from windows command line</title>
		<link>http://yonitg.com/test-http-server-windows-command-line/</link>
		<comments>http://yonitg.com/test-http-server-windows-command-line/#comments</comments>
		<pubDate>Tue, 27 Oct 2009 19:45:49 +0000</pubDate>
		<dc:creator>yonitg</dc:creator>
				<category><![CDATA[IT management]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Linux - Windows integration]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[web admin]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[Command line]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://yonitg.com/?p=286</guid>
		<description><![CDATA[So you went ahead and did a little change to your web site, or web server redirect, and you want to test it out without a sniffer, the fastest way to test the http server headers and output is from the command line so you can see exactly what the servers is sending. Now from [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-292" title="curl for windows" src="http://yonitg.com/blog/wp-content/uploads/2009/10/ds-curlicon.png" alt="curl for windows" width="99" height="37" /></p>
<p>So you went ahead and did a little change to your web site, or web server redirect,<br />
and you want to test it out without a sniffer,<br />
the fastest way to test the http server headers and output is from the command line so you can see exactly what the servers is sending.</p>
<p>Now from Linux you have built in tools like GET, and wget ad curl,<br />
wget and curl you can also install on windows to work from the command line.</p>
<p><strong>Curl For Windows</strong></p>
<p>Go ahead and <a title="test http from command line" href="http://curl.haxx.se/download.html" target="_blank">download curl</a> from their main website, you should get the Win32 &#8211; General version,<br />
or the Win64 binary.<br />
Better take the SSL enabled version if you will ever need to test SSL.<br />
Take the curl.exe file from the zip file and place it somewhere in your windows PATH.</p>
<p>To find which directories are already in the windows path open the command line and write:</p>
<blockquote><p><span style="color: #000000;">C:\&gt;echo %PATH%</span></p></blockquote>
<p>You will get the listing for such directories, just place the curl.exe in one of them.</p>
<p>Now for the tests:<br />
To get only the headers and not the file contents itself use &#8220;curl -I http://address&#8221;</p>
<blockquote><p><span style="color: #000000;">C:\&gt;curl -I http://some.site.com/blocked_folder/blocked.php<br />
HTTP/1.0 403 Forbidden<br />
Server: Apache<br />
Accept-Ranges: bytes<br />
Content-Type: text/html<br />
Expires: Tue, 27 Oct 2009 19:32:38 GMT<br />
Cache-Control: max-age=0, no-cache, no-store<br />
Pragma: no-cache<br />
Date: Tue, 27 Oct 2009 19:32:38 GMT<br />
Connection: keep-alive</span></p></blockquote>
<p>From this test you can see the file is forbidden, what are the caching setings for the server, and other headers information.</p>
<p>If you would like to see the full page contents just remove the &#8220;-I&#8221;.</p>
<p>another sample:</p>
<blockquote><p><span style="color: #000000;">C:\&gt;curl -I http://www.cisco.com/<br />
HTTP/1.1 200 OK<br />
Date: Tue, 27 Oct 2009 19:36:28 GMT<br />
Server: Apache/2.2<br />
Set-Cookie: CP_GUTC=62.214.121.218.123463458258569; path=/; expires=Sat, 21-Oct-34 19:36:28 GMT; domain=.cisco.com<br />
Last-Modified: Tue, 27 Oct 2009 16:34:14 GMT<br />
ETag: &#8220;5985&#8243;<br />
Accept-Ranges: bytes<br />
Content-Length: 22917<br />
CDCHOST: cdcxweb-prod1-02<br />
Content-Type: text/html</span></p></blockquote>
<p>this time we got a 200 reply which means the apache sent us the page,<br />
we can see the page&#8217;s size from the &#8220;Content-Length&#8221; header,<br />
and the other info the apache wants to send us.</p>
<h3>Testing for Virtual hosts</h3>
<p>Virtual hosting on apache can mean having more domain names on the same IP,<br />
and you can test each of these domains by adding a &#8220;Host&#8221; header to the curl test line:</p>
<blockquote><p><span style="color: #000000;">curl -H &#8220;Host: sub1.host.com&#8221; http://www.hosting.com/<br />
curl -H &#8220;Host: sub2.host.com&#8221; http://www.hosting.com/</span></p></blockquote>
<p>These 2 lines will bring back the html code for each of the different virtual hosts on the same server.</p>
<p>Here are some more ideas of using curl -for example:<br />
<a href="http://linux.byexamples.com/archives/311/sending-http-post-using-curl-command/" target="_blank">Sending POST data through curl</a></p>

<!-- start wp-tags-to-technorati 1.01 -->

<p class='technorati-tags'>Technorati Tags: <a class='technorati-link' href='http://technorati.com/tag/apache' rel='tag' target='_self'>apache</a>, <a class='technorati-link' href='http://technorati.com/tag/Command+line' rel='tag' target='_self'>Command line</a>, <a class='technorati-link' href='http://technorati.com/tag/Linux' rel='tag' target='_self'>Linux</a>, <a class='technorati-link' href='http://technorati.com/tag/windows' rel='tag' target='_self'>windows</a></p>

<!-- end wp-tags-to-technorati -->
<img src="http://yonitg.com/blog/?ak_action=api_record_view&id=286&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://yonitg.com/test-http-server-windows-command-line/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux Commands &#8211; Top 20 Most Used</title>
		<link>http://yonitg.com/linux-commands-top-20-most-used/</link>
		<comments>http://yonitg.com/linux-commands-top-20-most-used/#comments</comments>
		<pubDate>Tue, 09 Jun 2009 22:12:12 +0000</pubDate>
		<dc:creator>yonitg</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[sys admin]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[Command line]]></category>

		<guid isPermaLink="false">http://yonitg.com/?p=161</guid>
		<description><![CDATA[The history file is a log file of your last used commands on the Linux server,
It can be found in your home directory and is called .bash_history (with the "." in the start).
You can either read the file itself to see its content, or use the command history which will do the same thing.

When looking at my history files on my Linux servers,
I can see maybe 20 Linux commands which I keep using over and over,
They are the most important tools of my work, and I recommend learning them well to any starting Linux sysadmin.]]></description>
			<content:encoded><![CDATA[<p>The history file is a log file of your last used commands on the Linux server,<br />
It can be found in your home directory and is called <strong>.bash_history</strong> (with the &#8220;.&#8221; in the start).<br />
You can either read the file itself to see its content, or use the command history which will do the same thing.</p>
<p>When looking at my history files on my Linux servers,<br />
I can see maybe 20 Linux commands which I keep using over and over,<br />
They are the most important tools of my work, and I recommend learning them well to any starting Linux sysadmin.</p>
<h2>Files and Directories Management</h2>
<ul>
<li><a title="ls man page" href="http://yonitg.com/linux-commands/ls/" target="_blank">ls</a> &#8211; Lists files and directories content, I usually use &#8220;ls -la&#8221; to have a long listing with all the details and hidden files</li>
<li><a title="cd man page" href="http://yonitg.com/linux-commands/cd/" target="_blank">cd</a> &#8211; move from the current directory to a different folder</li>
<li><a title="pwd man page" href="http://yonitg.com/linux-commands/pwd/" target="_blank">pwd</a> &#8211; lists your current location</li>
<li><a title="mv man page" href="http://yonitg.com/linux-commands/mv/" target="_blank">mv</a> &#8211; this command can either change the name of a file, or move it to a different location.</li>
<li><a title="locate man page" href="http://yonitg.com/linux-commands/locate/" target="_blank">locate</a> &#8211; find any file on the Linux server, to get an updated index of files (if for example you just installed a whole bunch of RPM&#8217;s) run the command <a title="updatedb man page" href="http://yonitg.com/linux-commands/updatedb/" target="_blank"><strong>updatedb</strong></a></li>
<li><a title="ln man page" href="http://yonitg.com/linux-commands/ln/" target="_blank">ln</a> &#8211; create a shortcut to a file or folder</li>
<li><a title="tar man page" href="http://yonitg.com/linux-commands/tar/" target="_blank">tar</a> &#8211; create or extract files out of a storage file. with the correct arguments it will also compress the files</li>
</ul>
<h2>Editing and Viewing</h2>
<ul>
<li>tail &#8211; lists the last 10 lines of a file, but you tell tell it to show any number of last lines</li>
<li> vi &#8211; the best command line editing software <img src='http://yonitg.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />   a little hard to learn how to work this one at first, buts its worth the effort</li>
<li> cat &#8211; list the content of the file. better know how long is the file you are running this command on, or you will get a very long scrolling of lines that will fill up your screen</li>
</ul>
<h2>A Very Good Linux Administration Book</h2>
<p><iframe src="http://rcm.amazon.com/e/cm?lt1=_blank&#038;bc1=FFFFFF&#038;IS2=1&#038;nou=1&#038;bg1=FFFFFF&#038;fc1=000000&#038;lc1=0000FF&#038;t=yonitgcom-20&#038;o=1&#038;p=8&#038;l=as1&#038;m=amazon&#038;f=ifr&#038;md=10FE9736YVPPT7A0FBG2&#038;asins=0131480049" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe></p>
<h2>Network</h2>
<ul>
<li>nslookup &#8211; very important networking tool &#8211; this will show you where a DNS name is pointing &#8211; to which IP or to another DNS</li>
<li> wget &#8211; get a file from the web from the command line &#8211; if you need to download some RPM directly to the command line without a browser, this is the command you need</li>
<li> ping &#8211; I think its one of the most used commands, you can check the time it takes you to get via the network to a remote server, whether that server is available, how many packets are getting to the server, etc</li>
</ul>
<h2>General</h2>
<ul>
<li>history &#8211; lists the last used commands on your Linux server</li>
<li> make &#8211; when compiling a software from source, this command will create the binaries</li>
<li> id &#8211; who am I right now? besides the philosophical angle, this command will show you as which user you will be running commands, I use this to check what is my status, and then sudo to the user I need</li>
<li>sudo &#8211; execute a command as another user &#8211; although  usually use it to change to root</li>
<li> ps &#8211; list the running processes on the server, it give more info like the process id, the parent process id, running time and much more</li>
<li> man &#8211; displays a manual page, whenever you are not sure about a specific command or config file, you should run &#8220;man command&#8221; to get info about it. to search the man database use &#8220;whatis command&#8221; to find which man file has the info you need</li>
<li> df &#8211; report file system disk space usage, use &#8220;df -h&#8221; to get a human formatted listing</li>
</ul>

<!-- start wp-tags-to-technorati 1.01 -->

<p class='technorati-tags'>Technorati Tags: <a class='technorati-link' href='http://technorati.com/tag/bash' rel='tag' target='_self'>bash</a>, <a class='technorati-link' href='http://technorati.com/tag/Command+line' rel='tag' target='_self'>Command line</a>, <a class='technorati-link' href='http://technorati.com/tag/Linux' rel='tag' target='_self'>Linux</a>, <a class='technorati-link' href='http://technorati.com/tag/network' rel='tag' target='_self'>network</a></p>

<!-- end wp-tags-to-technorati -->
<img src="http://yonitg.com/blog/?ak_action=api_record_view&id=161&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://yonitg.com/linux-commands-top-20-most-used/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>proxy settings for the command line</title>
		<link>http://yonitg.com/proxy-settings-for-the-command-line/</link>
		<comments>http://yonitg.com/proxy-settings-for-the-command-line/#comments</comments>
		<pubDate>Sat, 18 Apr 2009 22:57:26 +0000</pubDate>
		<dc:creator>yonitg</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[sys admin]]></category>
		<category><![CDATA[Command line]]></category>
		<category><![CDATA[proxy]]></category>

		<guid isPermaLink="false">http://yonitg.com/?p=41</guid>
		<description><![CDATA[When using applications from the command line, you will sometimes need to setup a specific proxy for them to use, if you don&#8217;t have a direct access to the Internet from the server you are working on. in some of these application you can setup this through the app switches itself, but simpler apps just [...]]]></description>
			<content:encoded><![CDATA[<p>When using applications from the command line,<br />
you will sometimes need to setup a specific proxy for them to use, if you don&#8217;t have a direct access to the Internet from the server you are working on.</p>
<p>in some of these application you can setup this through the app switches itself, but simpler apps just use the system network settings.</p>
<p>to fix this you can first check what current settings you have now with:</p>
<blockquote><p>ENV | grep -i proxy</p></blockquote>
<p>this should show you the current proxy settings you have.</p>
<p>to add your own settings do:</p>
<blockquote><p>export http_proxy=&#8221;http://&lt;proxy-server-ip&gt;:&lt;port&gt;&#8221;<br />
export ftp_proxy=&#8221;http://&lt;proxy-server-ip&gt;:&lt;port&gt;&#8221;</p></blockquote>
<p>for example:</p>
<blockquote><p>export http_proxy=&#8221;http://192.168.0.10:8080&#8243;</p></blockquote>
<p>after that, just run your command line app, it should pick up and use these settings.</p>
<p><a href="http://www.amazon.com/Linux-Administration-Beginners-Guide-Fifth/dp/0071545883%3FSubscriptionId%3DAKIAJOT3JJ24F6GO7IGQ%26tag%3Dyonitgcom-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D165953%26creativeASIN%3D0071545883"><img src="http://ecx.images-amazon.com/images/I/51I3BoeecvL._SL160_.jpg" alt="" /></a> <a href="http://www.amazon.com/Practical-Guide-Commands-Editors-Programming/dp/0131367366%3FSubscriptionId%3DAKIAJOT3JJ24F6GO7IGQ%26tag%3Dyonitgcom-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D165953%26creativeASIN%3D0131367366"><img src="http://ecx.images-amazon.com/images/I/51yy3ti1PZL._SL160_.jpg" alt="" /></a> <a href="http://www.amazon.com/Definitive-Guide-CentOS-Peter-Membrey/dp/1430219300%3FSubscriptionId%3DAKIAJOT3JJ24F6GO7IGQ%26tag%3Dyonitgcom-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D165953%26creativeASIN%3D1430219300"><img src="http://ecx.images-amazon.com/images/I/51tu7j17UqL._SL160_.jpg" alt="" /></a></p>

<!-- start wp-tags-to-technorati 1.01 -->

<p class='technorati-tags'>Technorati Tags: <a class='technorati-link' href='http://technorati.com/tag/Command+line' rel='tag' target='_self'>Command line</a>, <a class='technorati-link' href='http://technorati.com/tag/Linux' rel='tag' target='_self'>Linux</a>, <a class='technorati-link' href='http://technorati.com/tag/network' rel='tag' target='_self'>network</a>, <a class='technorati-link' href='http://technorati.com/tag/proxy' rel='tag' target='_self'>proxy</a></p>

<!-- end wp-tags-to-technorati -->
<img src="http://yonitg.com/blog/?ak_action=api_record_view&id=41&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://yonitg.com/proxy-settings-for-the-command-line/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
