Explain the netstat command.

Collapse

Unconfigured Ad Widget

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • Rex Maughan
    Senior Member
    • Mar 2022
    • 112

    Explain the netstat command.



    Hello everyone,

    Please let me know netstat command in Linux.
  • Christian J
    Member
    • Sep 2022
    • 91

    #2
    'Netstat' is a network utility tool that is used with Windows, Linux, and macOS. You can apply it to provide statistics about the network, currently active connections, and other data.

    Following are a few of the netstat commands and their descriptions:
    1. Netstat -a: Represents every socket, both non-listening and listening and every protocol, like UDP, TCP, etc.
    2. netstat -at: Represents TCP connections only (-au represents UDP connections only).
    3. netstat -ant: Represents every TCP connection without DNS resolution (rather than displays IP addresses).
    4. netstat -al: Displays listening sockets only.
    5. netstat -i: Shows a table of every network interface. Include -e to receive the result, which is the same as ifconfig.
    6. netstat -r: Displays the information on kernel routing. It is a similar result as route -e.
    7. netstat -ct: Shows TCP connections regularly.

    Comment

    Working...
    X