Home PC Games Linux Windows Database Network Programming Server Mobile  
  Home \ Linux \ using the ssh command to check the socket / Network Connections     - Linux Crontab Timing task command Detailed (Linux)

- MyEclipse configuration necessary (Linux)

- Tsung first test installation (Linux)

- MongoDB polymerization being given (Database)

- ASM required disk format process in Solaris platforms (Linux)

- LMMS 1.03 install on Ubuntu 14.04 (Linux)

- Linux kernel log --dmesg (Linux)

- To resolve Ubuntu 14.04 Unity Desktop Environment Login freeze problem (Linux)

- how to quickly find a file on Linux system (Linux)

- Oracle background processes daemons (Database)

- Raspberry Pi 2 to install the latest version of the FPC and Lazarus 1.5 (Linux)

- Linux System Getting Started Learning: install software packages on Ubuntu and Fedora (Linux)

- Linux virtual memory and physical memory (Linux)

- Docker manage data (Linux)

- Ubuntu treated with cue file to ape and wav files automatically track points (Linux)

- Struts2 Result Types (Programming)

- command-line tool for send e-mail (Linux)

- MySQL display operation control tips (Database)

- Cache implementation APP interacts with the server-side interface control Session (Server)

- Linux static library generated Guide (Programming)

  using the ssh command to check the socket / Network Connections
  Add Date : 2017-08-31      
  Ss is part of the iproute2 package (control TCP / IP traffic and network tools). iproute2 goal is to replace the previous standard configuration for network interfaces, routing tables and ARP tables Unix network management tools (often referred to as "net-tools"). ss socket tool used to derive statistics, it can be displayed with netstat similar information, and can display more TCP and state information. Because it gets information directly from kernel space, it will be faster. ss operation and netstat like, so that it can be easy to replace netstat.

And the use of common options

ss and netstat like, has been established by default it will show an open connection to the list of non-listening TCP sockets. And you can use the following options to filter the output:

-n - Do not attempt to resolve the service name.
-r - to try to resolve numeric address / port.
-a - Displays all sockets.
-l - Display listening sockets.
-p - Display Use this socket's process.
-s - Print statistics
-t - show only TCP sockets.
-u - display only UDP sockets.
-d - displays only DCCP socket
-w - show only RAW sockets.
-x - display only Unix domain sockets
-f FAMILY - FAMILY display type socket. Currently supports the following family: unix, inet, inet6, link, netlink.
-A QUERY - the socket list to list, separated by commas. Recognizes the following identifiers: all, inet, tcp, udp, raw, unix, packet, netlink, unixdgram, unixstream, packetraw, packetdgram.
-o STATUS - Lists the specified socket is
ss command example

1. Display all the TCP port and use their processes:

# Ss -tnap

2. You can use the -4 flag to display IPv4 links, -6 flag to display IPv6 links, such as:

# Ss -tnap6
ss tnap6

3. With the above behaviors, you just use u instead of t will show all open UDP port.

# Ss -unap

4. You can use the -s flag to print a variety of useful statistics:

# Ss -s

5. You can use the -o flag to check the links to all different states, for example, to display all connections have been established.

# Ss -tn -o state established -p
- Oracle Linux 7.1 install Oracle 12C RAC (Database)
- Wi-Fi hackers use to attack your seven methods (Linux)
- Empty password Linux operating system (Linux)
- Troubleshooting Linux virtual machine device id and the letter of inconsistencies (Linux)
- Linux system server network security management tips (Linux)
- Linux yum command Detailed (Linux)
- CentOS Linux firewall configuration and Close (Linux)
- GEC2440 easiest a kernel compile Linux2.6.30.4 (Programming)
- To protect the temporary files for Linux security (Linux)
- Java objects are taking up much space (Programming)
- CentOS / Linux SELinux Close (Linux)
- Linux firewall settings -DNS server articles (Server)
- How to Set Free SSH password on CentOS / RHEL (Linux)
- Analytical Ceph: handle network layer (Server)
- Oracle conditional select statements and looping statements (Database)
- Binary search and modification (Programming)
- How to use the command line to obtain Freely RSS source on Linux (Linux)
- Several back door and log tool under Linux (Linux)
- CentOS installation of the ftp (Linux)
- Encounter ORA-00600: internal error code, arguments: [4194] ORA-1552 (Database)
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.