How do I create the netstat logfile on a Linux System? - WithSecure Community
<main>
<article class="userContent">
<h3 data-version="2" data-article="000018382" data-id="issue">Issue:</h3>
<p>How do I create the netstat logfile on a Linux System?</p>
<h3 data-id="resolution">Resolution:</h3>
<p></p><div>Follow these steps to create the netstat logfile:<br><br>1. Open <b>Terminal</b><br>2. Upgrade to <b>Root</b><br>3. Insert the following command: </div>
<ul><li><b>netstat -anp </b></li></ul><div>4. When you have the following information, please create a text file of it with the following command:</div>
<ul><li><b>netstat -anp > example.txt</b></li></ul><div>6. The file will be saved in the directory where you ran the command (you can verify the folder you are in by running the command: <b>pwd</b>)</div>
<p>Article no: 000018382</p>
</article>
</main>