Kevin Deldycke - lsofhttps://kevin.deldycke.com/Professional Yak ShaverMon, 11 Apr 2011 16:25:54 +0200Network Commandshttps://kevin.deldycke.com/2011/04/network-commands/<h2 id="interfaces">Interfaces<a class="headerlink text-decoration-none small pl-2" href="#interfaces" title="Permanent link">&para;</a></h2> <ul> <li> <p>Get the list of all wireless networks reachable by the <code>wlan0</code> interface:</p> <div class="highlight"><pre><span></span><code><span class="gp">$</span> iwlist wlan0 scanning <span class="p">|</span> grep ESSID </code></pre></div> </li> <li> <p>Get some informations about open&nbsp;ports:</p> <div class="highlight"><pre><span></span><code><span class="gp">$</span> netstat --taupen <span class="gp">$</span> netstat --lapute </code></pre></div> </li> <li> <p>Watch network activity in&nbsp;real-time:</p> <div class="highlight"><pre><span></span><code><span class="gp">$</span> watch -n <span class="m">1</span> <span class="s2">&quot;lsof -i&quot;</span> </code></pre></div> </li> <li> <p>Reboot machine if the <code>192.168.0.254</code> host doesn&rsquo;t reply …</p></li></ul>Kevin DeldyckeMon, 11 Apr 2011 16:25:54 +0200tag:kevin.deldycke.com,2011-04-11:/2011/04/network-commands/EnglishbinddigdnsiwlistLinuxlsofnetstatNetworkwifiwirelessdriftnetimagessmbsambacifs