<?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>Jontas &#187; unix</title>
	<atom:link href="http://www.f15ijp.com/category/unix/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.f15ijp.com</link>
	<description>My digital notepad (notes etc)</description>
	<lastBuildDate>Wed, 28 Dec 2011 18:24:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Add a user to a group</title>
		<link>http://www.f15ijp.com/2010/12/03/add-a-user-to-a-group/</link>
		<comments>http://www.f15ijp.com/2010/12/03/add-a-user-to-a-group/#comments</comments>
		<pubDate>Fri, 03 Dec 2010 10:14:33 +0000</pubDate>
		<dc:creator>jontas</dc:creator>
				<category><![CDATA[BSD]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[unix]]></category>
		<category><![CDATA[bsd]]></category>
		<category><![CDATA[group]]></category>
		<category><![CDATA[user]]></category>

		<guid isPermaLink="false">http://www.f15ijp.com/?p=745</guid>
		<description><![CDATA[To add a existing user to a group usermod -a -G thegroup theuser To add a user to a group when the user is created useradd -G thegroup theuser]]></description>
			<content:encoded><![CDATA[<p>To add a existing user to a group</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">usermod <span style="color: #660033;">-a</span> <span style="color: #660033;">-G</span> thegroup theuser</pre></div></div>

<p>To add a user to a group when the user is created</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">useradd <span style="color: #660033;">-G</span> thegroup theuser</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.f15ijp.com/2010/12/03/add-a-user-to-a-group/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>.forward to several recipients</title>
		<link>http://www.f15ijp.com/2010/09/28/forward-to-several-recipients/</link>
		<comments>http://www.f15ijp.com/2010/09/28/forward-to-several-recipients/#comments</comments>
		<pubDate>Tue, 28 Sep 2010 08:08:03 +0000</pubDate>
		<dc:creator>jontas</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[unix]]></category>
		<category><![CDATA[.forward]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[mail]]></category>

		<guid isPermaLink="false">http://www.f15ijp.com/?p=660</guid>
		<description><![CDATA[On *nix environments it is possible to forward the mail to one account to another user (or another email address if external mail is supported). This is done by adding the recipient in a file called .forward in the home directory. Example To simply forward to another address: user@server$ echo recipient@mail.com &#62; ~/.forward user@server$ chmod [...]]]></description>
			<content:encoded><![CDATA[<p>On *nix environments it is possible to forward the mail to one account to another user (or another email address if external mail is supported).<br />
This is done by adding the recipient in a file called .forward in the home directory.</p>
<p>Example To simply forward to another address:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">user<span style="color: #000000; font-weight: bold;">@</span>server$ <span style="color: #7a0874; font-weight: bold;">echo</span> recipient<span style="color: #000000; font-weight: bold;">@</span>mail.com <span style="color: #000000; font-weight: bold;">&gt;</span> ~<span style="color: #000000; font-weight: bold;">/</span>.forward
user<span style="color: #000000; font-weight: bold;">@</span>server$ <span style="color: #c20cb9; font-weight: bold;">chmod</span> go-w ~<span style="color: #000000; font-weight: bold;">/</span>.forward</pre></div></div>

<p>In order to forward to several addresses coma (,) is used as a delimiter between the different recipients.</p>
<p>Example To forward to two addresses at the same time:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">user<span style="color: #000000; font-weight: bold;">@</span>server$ <span style="color: #7a0874; font-weight: bold;">echo</span> recipient1<span style="color: #000000; font-weight: bold;">@</span>mail.com,recipient2<span style="color: #000000; font-weight: bold;">@</span>mail.com <span style="color: #000000; font-weight: bold;">&gt;</span> ~<span style="color: #000000; font-weight: bold;">/</span>.forward
user<span style="color: #000000; font-weight: bold;">@</span>server$ <span style="color: #c20cb9; font-weight: bold;">chmod</span> go-w ~<span style="color: #000000; font-weight: bold;">/</span>.forward</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.f15ijp.com/2010/09/28/forward-to-several-recipients/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux send a log (or output from a command) as a mail from the linux console</title>
		<link>http://www.f15ijp.com/2010/08/18/linux-send-a-log-as-a-mail-from-the-linux-console/</link>
		<comments>http://www.f15ijp.com/2010/08/18/linux-send-a-log-as-a-mail-from-the-linux-console/#comments</comments>
		<pubDate>Wed, 18 Aug 2010 11:00:22 +0000</pubDate>
		<dc:creator>jontas</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[unix]]></category>
		<category><![CDATA[console]]></category>
		<category><![CDATA[mail]]></category>

		<guid isPermaLink="false">http://www.f15ijp.com/?p=584</guid>
		<description><![CDATA[Sometimes it is nice to send a log or some other file as a email to someone (or a part of a file) cat myfile.txt &#124; mail -s 'SUBJECT' example@mail.com; Change myfile.txt, SUBJECT and example@mail.com to something useful. It is also possible to send the output of a command to someone ps -ef&#124;mail -s 'SUBJET' [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes it is nice to send a log or some other file as a email to someone (or a part of a file)</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">cat</span> myfile.txt <span style="color: #000000; font-weight: bold;">|</span> mail <span style="color: #660033;">-s</span> <span style="color: #ff0000;">'SUBJECT'</span> example<span style="color: #000000; font-weight: bold;">@</span>mail.com;</pre></div></div>

<p>Change myfile.txt, SUBJECT and example@mail.com to something useful.</p>
<p>It is also possible to send the output of a command to someone</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">ps</span> <span style="color: #660033;">-ef</span><span style="color: #000000; font-weight: bold;">|</span>mail <span style="color: #660033;">-s</span> <span style="color: #ff0000;">'SUBJET'</span> example<span style="color: #000000; font-weight: bold;">@</span>mail.com;</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.f15ijp.com/2010/08/18/linux-send-a-log-as-a-mail-from-the-linux-console/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Pine: Flags</title>
		<link>http://www.f15ijp.com/2010/06/23/pine-flags/</link>
		<comments>http://www.f15ijp.com/2010/06/23/pine-flags/#comments</comments>
		<pubDate>Wed, 23 Jun 2010 19:18:34 +0000</pubDate>
		<dc:creator>jontas</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[unix]]></category>
		<category><![CDATA[pine]]></category>

		<guid isPermaLink="false">http://www.f15ijp.com/?p=514</guid>
		<description><![CDATA[To mark a message as unread in pine this can be done using flags. First flags have to be turned on in setup [M]ain [S]etup [C]onfig Then find &#8220;enable-flag-cmd&#8221; and turn it on. After this marking a message as unread is done by &#8220;* N&#8221; in the list view or when looking at the message. [...]]]></description>
			<content:encoded><![CDATA[<p>To mark a message as unread in pine this can be done using flags.<br />
First flags have to be turned on in setup<br />
[M]ain [S]etup [C]onfig<br />
Then find &#8220;enable-flag-cmd&#8221; and turn it on.<br />
After this marking a message as unread is done by &#8220;* N&#8221; in the list view or when looking at the message.</p>
<p>All the flags are:</p>
<ul>
<li>[N]New</li>
<li>[D]Deleted</li>
<li>[*] Important</li>
<li>[A] Answered</li>
</ul>
<p>[^T] Can be used to see all the flags and set/unset them one by one (or all).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.f15ijp.com/2010/06/23/pine-flags/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OpenSSH and password-less logins</title>
		<link>http://www.f15ijp.com/2010/05/21/openssh-and-password-less-logins/</link>
		<comments>http://www.f15ijp.com/2010/05/21/openssh-and-password-less-logins/#comments</comments>
		<pubDate>Fri, 21 May 2010 08:27:07 +0000</pubDate>
		<dc:creator>jontas</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[OpenSSH]]></category>
		<category><![CDATA[unix]]></category>
		<category><![CDATA[password-less]]></category>
		<category><![CDATA[SSH]]></category>

		<guid isPermaLink="false">http://f15ijp.com/?p=465</guid>
		<description><![CDATA[Using SSH you can run commands at remote servers. By default the remote server will ask for credentials but for instance when writing a script it is not a good idea to store the login credentials in a script. The solution to this is to create a key pair at the origin machine (where the [...]]]></description>
			<content:encoded><![CDATA[<p>Using SSH you can run commands at remote servers.</p>
<p>By default the remote server will ask for credentials but for instance when writing a script it is not a good idea to store the login credentials in a script.<br />
The solution to this is to create a key pair at the origin machine (where the script is) and then send this key to the remoteserver (where the script needs to login).</p>
<ul>
<li>First create a key pair (only has to be done once for this machine; it can be reused for other machines if you wish to be able to login to several computers)

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"> jonas<span style="color: #000000; font-weight: bold;">@</span>jonas-desktop:~$ <span style="color: #c20cb9; font-weight: bold;">ssh-keygen</span>
Generating public<span style="color: #000000; font-weight: bold;">/</span>private rsa key pair.
Enter <span style="color: #c20cb9; font-weight: bold;">file</span> <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #c20cb9; font-weight: bold;">which</span> to save the key <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>jonas<span style="color: #000000; font-weight: bold;">/</span>.ssh<span style="color: #000000; font-weight: bold;">/</span>id_rsa<span style="color: #7a0874; font-weight: bold;">&#41;</span>: 
Enter passphrase <span style="color: #7a0874; font-weight: bold;">&#40;</span>empty <span style="color: #000000; font-weight: bold;">for</span> no passphrase<span style="color: #7a0874; font-weight: bold;">&#41;</span>: 
Enter same passphrase again: 
Your identification has been saved <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>jonas<span style="color: #000000; font-weight: bold;">/</span>.ssh<span style="color: #000000; font-weight: bold;">/</span>id_rsa.
Your public key has been saved <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>jonas<span style="color: #000000; font-weight: bold;">/</span>.ssh<span style="color: #000000; font-weight: bold;">/</span>id_rsa.pub.
The key fingerprint is:
<span style="color: #000000;">11</span>:f9:5a:8f:7d:<span style="color: #000000;">74</span>:e4:<span style="color: #000000;">68</span>:3b:4b:<span style="color: #000000;">22</span>:1c:<span style="color: #000000;">78</span>:e6:be:2d jonas<span style="color: #000000; font-weight: bold;">@</span>jonas-desktop
The key<span style="color: #ff0000;">'s randomart image is:
+--[ RSA 2048]----+
|        ..       |
|        ..      .|
|        .o     + |
|        ..*   + o|
|        SB = o o |
|        . = + =  |
|         . . + o |
|          E.  .  |
|          .o.    |
+-----------------+</span></pre></div></div>

<p>Passphrase is needed to &#8220;unlock&#8221; this key before being able to use it. Leaving passphrase blank means that the key can be used without any inputs.
</li>
<li>Next send the key to the server that you wish to be able to login to.

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"> jonas<span style="color: #000000; font-weight: bold;">@</span>jonas-desktop:~$ ssh-copy-id <span style="color: #660033;">-i</span> .ssh<span style="color: #000000; font-weight: bold;">/</span>id_rsa.pub user<span style="color: #000000; font-weight: bold;">@</span>remoteserver
Warning: Permanently added <span style="color: #ff0000;">'remoteserver,11.222.333.222'</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span>RSA<span style="color: #7a0874; font-weight: bold;">&#41;</span> to the list of known hosts.
user<span style="color: #000000; font-weight: bold;">@</span>remoteserver<span style="color: #ff0000;">'s password: 
Now try logging into the machine, with &quot;ssh '</span>user<span style="color: #000000; font-weight: bold;">@</span>remoteserver<span style="color: #ff0000;">'&quot;, and check in:
&nbsp;
  .ssh/authorized_keys
&nbsp;
to make sure we haven'</span>t added extra keys that you weren<span style="color: #ff0000;">'t expecting.</span></pre></div></div>

<p>-i is the identity file we created with ssh-keygen
</li>
<p>This is it. Now you are able to login to remoteserver as user without a password.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.f15ijp.com/2010/05/21/openssh-and-password-less-logins/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>tar extracting to a target directory</title>
		<link>http://www.f15ijp.com/2010/05/19/tar-extracting-to-a-target-director/</link>
		<comments>http://www.f15ijp.com/2010/05/19/tar-extracting-to-a-target-director/#comments</comments>
		<pubDate>Wed, 19 May 2010 12:03:25 +0000</pubDate>
		<dc:creator>jontas</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[unix]]></category>
		<category><![CDATA[archive]]></category>
		<category><![CDATA[tar]]></category>

		<guid isPermaLink="false">http://f15ijp.com/?p=461</guid>
		<description><![CDATA[By default untaring will put the contents into the current directory. Sometimes it is not desirable to change directory to the target (such as in a scrip). tar -xvvf /source/tarfile.tar -C /target This will extract(x), very verbosly(vv) the file(f) /source/tarfile.tar to the directory(-C) /target (it will change the output folder to /target (so make sure [...]]]></description>
			<content:encoded><![CDATA[<p>By default untaring will put the contents into the current directory.<br />
Sometimes it is not desirable to change directory to the target (such as in a scrip).</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">tar</span> <span style="color: #660033;">-xvvf</span> <span style="color: #000000; font-weight: bold;">/</span>source<span style="color: #000000; font-weight: bold;">/</span>tarfile.tar <span style="color: #660033;">-C</span> <span style="color: #000000; font-weight: bold;">/</span>target</pre></div></div>

<p>This will extract(x), very verbosly(vv) the file(f) /source/tarfile.tar to the directory(-C) /target (it will change the output folder to /target (so make sure it exists).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.f15ijp.com/2010/05/19/tar-extracting-to-a-target-director/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What program is using port x?</title>
		<link>http://www.f15ijp.com/2010/02/18/what-program-is-using-port-x/</link>
		<comments>http://www.f15ijp.com/2010/02/18/what-program-is-using-port-x/#comments</comments>
		<pubDate>Thu, 18 Feb 2010 14:30:55 +0000</pubDate>
		<dc:creator>jontas</dc:creator>
				<category><![CDATA[debian]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[unix]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[ipv4]]></category>
		<category><![CDATA[ipv6]]></category>

		<guid isPermaLink="false">http://f15ijp.com/?p=369</guid>
		<description><![CDATA[netstat can be used to figure out what program is using a port. $ netstat -nlp Active Internet connections &#40;only servers&#41; Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1096/sshd tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 1733/apache2 tcp6 0 0 :::22 :::* LISTEN 1096/sshd Active UNIX domain [...]]]></description>
			<content:encoded><![CDATA[<p>netstat can be used to figure out what program is using a port.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">netstat</span> <span style="color: #660033;">-nlp</span>
Active Internet connections <span style="color: #7a0874; font-weight: bold;">&#40;</span>only servers<span style="color: #7a0874; font-weight: bold;">&#41;</span>
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID<span style="color: #000000; font-weight: bold;">/</span>Program name
tcp        <span style="color: #000000;">0</span>      <span style="color: #000000;">0</span> 0.0.0.0:<span style="color: #000000;">22</span>              0.0.0.0:<span style="color: #000000; font-weight: bold;">*</span>               LISTEN      <span style="color: #000000;">1096</span><span style="color: #000000; font-weight: bold;">/</span>sshd
tcp        <span style="color: #000000;">0</span>      <span style="color: #000000;">0</span> 0.0.0.0:<span style="color: #000000;">80</span>              0.0.0.0:<span style="color: #000000; font-weight: bold;">*</span>               LISTEN      <span style="color: #000000;">1733</span><span style="color: #000000; font-weight: bold;">/</span>apache2
tcp6       <span style="color: #000000;">0</span>      <span style="color: #000000;">0</span> :::<span style="color: #000000;">22</span>                   :::<span style="color: #000000; font-weight: bold;">*</span>                    LISTEN      <span style="color: #000000;">1096</span><span style="color: #000000; font-weight: bold;">/</span>sshd
Active UNIX domain sockets <span style="color: #7a0874; font-weight: bold;">&#40;</span>only servers<span style="color: #7a0874; font-weight: bold;">&#41;</span>
Proto RefCnt Flags       Type       State         I-Node   PID<span style="color: #000000; font-weight: bold;">/</span>Program name    Path
unix  <span style="color: #000000;">2</span>      <span style="color: #7a0874; font-weight: bold;">&#91;</span> ACC <span style="color: #7a0874; font-weight: bold;">&#93;</span>     STREAM     LISTENING     <span style="color: #000000;">6338</span>     <span style="color: #000000;">1071</span><span style="color: #000000; font-weight: bold;">/</span>gdm-simple-sla <span style="color: #000000; font-weight: bold;">@/</span>tmp<span style="color: #000000; font-weight: bold;">/</span>gdm-greeter-LvjLQPzT
unix  <span style="color: #000000;">2</span>      <span style="color: #7a0874; font-weight: bold;">&#91;</span> ACC <span style="color: #7a0874; font-weight: bold;">&#93;</span>     STREAM     LISTENING     <span style="color: #000000;">5165</span>     <span style="color: #000000;">1072</span><span style="color: #000000; font-weight: bold;">/</span>X              <span style="color: #000000; font-weight: bold;">/</span>tmp<span style="color: #000000; font-weight: bold;">/</span>.X11-unix<span style="color: #000000; font-weight: bold;">/</span>X0</pre></div></div>

<p>If you have a lot open then grep can be used to only find what you are looking for</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">netstat</span> <span style="color: #660033;">-nlp</span><span style="color: #000000; font-weight: bold;">|</span><span style="color: #c20cb9; font-weight: bold;">grep</span> :<span style="color: #000000;">22</span>
tcp        <span style="color: #000000;">0</span>      <span style="color: #000000;">0</span> 0.0.0.0:<span style="color: #000000;">22</span>              0.0.0.0:<span style="color: #000000; font-weight: bold;">*</span>               LISTEN      <span style="color: #000000;">1096</span><span style="color: #000000; font-weight: bold;">/</span>sshd
tcp6       <span style="color: #000000;">0</span>      <span style="color: #000000;">0</span> :::<span style="color: #000000;">22</span>                   :::<span style="color: #000000; font-weight: bold;">*</span>                    LISTEN      <span style="color: #000000;">1096</span><span style="color: #000000; font-weight: bold;">/</span>sshd</pre></div></div>

<p>For windows, simply start with</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">netstat</span> <span style="color: #660033;">-n</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.f15ijp.com/2010/02/18/what-program-is-using-port-x/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Showing (and/or) Clearing the arp cache</title>
		<link>http://www.f15ijp.com/2010/02/16/showing-and_or-clearing-the-arp-cache/</link>
		<comments>http://www.f15ijp.com/2010/02/16/showing-and_or-clearing-the-arp-cache/#comments</comments>
		<pubDate>Tue, 16 Feb 2010 14:00:37 +0000</pubDate>
		<dc:creator>jontas</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[unix]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[arp]]></category>
		<category><![CDATA[ip4]]></category>
		<category><![CDATA[mac]]></category>

		<guid isPermaLink="false">http://f15ijp.com/?p=362</guid>
		<description><![CDATA[The arp cache should (normally) be cleared within 20 minutes (or less, this depends on what platform is used). If you don&#8217;t know what ARP is and what is is good for, then perhaps you should take a moment and read the man page: DESCRIPTION Arp manipulates or displays the kernels IPv4 network neighbor cache. [...]]]></description>
			<content:encoded><![CDATA[<p>The arp cache should (normally) be cleared within 20 minutes (or less, this depends on what platform is used).</p>
<p>If you don&#8217;t know what ARP is and what is is good for, then perhaps you should take a moment and read the man page:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">DESCRIPTION
Arp manipulates or displays the kernels IPv4 network neighbor cache. It can add entries to the table, delete one or display the current content.
&nbsp;
ARP stands <span style="color: #000000; font-weight: bold;">for</span> Address Resolution Protocol, <span style="color: #c20cb9; font-weight: bold;">which</span> is used to <span style="color: #c20cb9; font-weight: bold;">find</span> the media access control address of a network neighbor <span style="color: #000000; font-weight: bold;">for</span> a given IPv4 Address.</pre></div></div>

<p>On a windows platform to show the arp cache</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">C:\<span style="color: #000000; font-weight: bold;">&gt;</span> arp <span style="color: #660033;">-a</span>
Interface: 192.168.1.49 <span style="color: #660033;">---</span> 0xb
  Internet Address      Physical Address      Type
  192.168.1.29          00-1d-<span style="color: #000000;">92</span>-08-<span style="color: #000000;">49</span>-<span style="color: #000000;">25</span>     dynamic
  192.168.1.34          00-<span style="color: #000000;">24</span>-<span style="color: #000000;">81</span>-<span style="color: #000000;">85</span>-ab-b6     dynamic</pre></div></div>

<p>To clear the cache</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">C:\<span style="color: #000000; font-weight: bold;">&gt;</span>netsh interface ip delete arpcache
Ok.</pre></div></div>

<p>To show the arp cache on a nix machine:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$  arp <span style="color: #660033;">-vn</span>; <span style="color: #c20cb9; font-weight: bold;">cat</span> <span style="color: #000000; font-weight: bold;">/</span>proc<span style="color: #000000; font-weight: bold;">/</span>net<span style="color: #000000; font-weight: bold;">/</span>arp
Address                  HWtype  HWaddress           Flags Mask            Iface
192.168.1.254            ether   00:08:ae:09:<span style="color: #000000;">20</span>:a0   C                     eth0
IP address       HW <span style="color: #7a0874; font-weight: bold;">type</span>     Flags       HW address            Mask     Device
192.168.1.254    0x1         0x2         00:08:ae:09:<span style="color: #000000;">20</span>:a0     <span style="color: #000000; font-weight: bold;">*</span>        eth0</pre></div></div>

<p>To clear the apr cache on a nix machine.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$  ip neigh flush all</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.f15ijp.com/2010/02/16/showing-and_or-clearing-the-arp-cache/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>unqualified host name ([something]) unknow; sleeping for retry</title>
		<link>http://www.f15ijp.com/2009/11/30/unqualified-host-name-something-unknow-sleeping-for-retry/</link>
		<comments>http://www.f15ijp.com/2009/11/30/unqualified-host-name-something-unknow-sleeping-for-retry/#comments</comments>
		<pubDate>Mon, 30 Nov 2009 14:30:32 +0000</pubDate>
		<dc:creator>jontas</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[sendmail]]></category>
		<category><![CDATA[unix]]></category>
		<category><![CDATA[DNS]]></category>
		<category><![CDATA[fqdn]]></category>
		<category><![CDATA[mail]]></category>
		<category><![CDATA[mailserver]]></category>

		<guid isPermaLink="false">http://f15ijp.no-ip.org/?p=42</guid>
		<description><![CDATA[sendmail expects to the machine to have a FQDN (fully qualified domain name). If it does not have that (type &#8220;hostname&#8221; to check what name the machine has) sendmail will complain about this and take a loot of extra time trying to find it. To use a FQDN edit &#8220;/etc/hosts&#8221; and change [something] to [something.yourdomain.com] [...]]]></description>
			<content:encoded><![CDATA[<p>sendmail expects to the machine to have a FQDN (fully qualified domain name).</p>
<p>If it does not have that (type &#8220;hostname&#8221; to check what name the machine has) sendmail will complain about this and take a loot of extra time trying to find it.</p>
<p>To use a FQDN edit &#8220;/etc/hosts&#8221; and change [something] to [something.yourdomain.com] and this will go away. Updating &#8220;/etc/hostname&#8221; at the same time might be a good idea; don&#8217;t forget to run &#8220;/bin/hostname -F /etc/hostname&#8221; after updating /etc/hostname.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.f15ijp.com/2009/11/30/unqualified-host-name-something-unknow-sleeping-for-retry/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

