Tag Archives: Linux

Linux – netstat command .

This tutorial come to show you how to use the netstat command with linux operating system.
To list out all the connections tcp, udp & unix on a system, we can use ‘a’ option with netstat command:

To list only the tcp connections our system, use ‘t’ options with netstat:

To list out only the udp connections on our system, we can use ‘u’ option with netstat:

To only list out Unix socket connections, we can use ‘x’ options:

To get list of all connections along with PID or process name, we can use ‘p’ option & it can be used in combination with any other netstat option:

To speed up our output, we can use ‘n’ option as it will perform any reverse lookup & produce output with only numbers (since no lookup is performed, our output will much faster):

To print only the listening ports , we will use ‘l’ option with netstat (it will not be used with ‘a’ as it prints all ports):

To print network statistics of each protocol like packet received or transmitted, we can use ‘s’ options with netstat:

To display only the statistics on network interfaces, use ‘i’ option:

To display multicast group information, we can use option ‘g’ ( that print the multicast group information for IPV4 & IPV6):

To print the network routing information, use ‘r’ option:

To get continuous output of netstat, use ‘c’ option:

To filter a single port connections, we can combine ‘grep’ command with netstat:

To use multiple commands with netstat.
Example: count the number of connections with CONNECTED value, we can further add ‘wc’ command with netstat and grep command:

Posted in All, Commands, Linux. Tagged with , , , , .

Dictionary Anywhere – addon .

This addon tool help you with translation issues.
The official website tell us :

“Dictionary Anywhere” provides access to a floating multilingual Google Translate panel on any webpage. This add-on injects an ifram containing Google Translate only when a translation is requested. To request a translation, select a word or phrase and then click on the bubble that appears on top of the selection area. Using this extension you can get in-page translation as well as pronunciation. At the bottom of the iframe, there are two links to open the desktop version of Google Translate and Google Search prefixed with ‘define’ keyboard.

This addon can be used with firefox , chrome, and opera browser.

Posted in All, Linux, web, Windows 10, Windows 7, Windows 8. Tagged with , , , , , , , .

News: VirtualBox – version 5.1.28 .

About VirtualBox is a x86 and AMD64/Intel64 virtualization product for enterprise as well as home use.
News about the last released version 5.1.28 can be found it here.

Posted in news. Tagged with , , , , .

C# – First steps with C# and .NET – part 002 .

Today I will show you more about C# and the subject of this tutorial is: threads.
First you need to start a project into your folder. Let’s see my example:

You can use notepad or any editor to edit the Program.cs:

About the thread issue then you need to know is a very complex subject.
My example will show you how the thread works.
First you need to start the thread and then deal with the thread.
Two methods is used: Start and Join.
Start begins executing at the first line of the method and does not block the calling thread.
Join is a synchronization method that blocks the calling thread (that is, the thread that calls the method) until the thread whose Join method is called has completed.
I used three threads and this threads just start count first 5 sec , next 8 sec and the last is set to 10 sec.
Let’s see the example:

Each thread will write to the output and then will see the time used.
See the output of dotnet run command:

Posted in All, C#, Commands, Programming, Windows 10. Tagged with , , , , , , , .

C# – First steps with C# and .NET – part 001 .

First you need to take a look at Microsoft DotNET – Core website..
This website will be the start for any .NET and C# issue on any operating system Linux, Windows, Mac or Docker.
I used for this tutorial Windows OS and for Fedora distro you can take a look here.
First you need to

The result of Hello World! show us the console application works well.
This will run this program:

You can change the text Hello World or test something else.
If you got errors the you need to fix it with :

Posted in All, C#, Commands, Programming, Windows 10. Tagged with , , , , , , , .