Home PC Games Linux Windows Database Network Programming Server Mobile  
  Home \ Linux \ using the ssh command to check the socket / Network Connections     - MySQL script incremental backups (innobackupex) (Database)

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

- VMware ghost Linux card error (Linux)

- Linux system file directory structure Introduction (Linux)

- xargs Detailed description (Linux)

- DB2 commonly used scripting sort out (Database)

- Ubuntu 14.04 Docker installation (Linux)

- Linux file permissions to modify the command: chmod (Linux)

- DM9000 bare Driver Design (Programming)

- Ubuntu 12.04 installation DHCP Server (Server)

- Construction of Android and iOS apps use Jenkins Automation (Programming)

- ARM assembler instruction debugging method (Programming)

- Linux FAQ - How to fix tar:Exitingwith failure status due to previous errors (Linux)

- KVM installation under CentOS 5.5 (Linux)

- MariaDB phpMyAdmin installation and configuration issues to resolve under CentOS7 (Database)

- Firewall settings oracle remote connection in Linux systems (Linux)

- Java 8 Lambda principle analysis (Programming)

- How MySQL tracking sql statement (Database)

- Make Linux more secure server tips (Linux)

- Chrome plug-in management, online-offline installation, part of the plug presentations (Linux)

  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
- Android basics summary article (Programming)
- MySQL 5.7.9 source compiler installation instructions (Database)
- Locale files under Ubuntu (Linux)
- Shell script on the variables with double quotation marks grep small problem (Programming)
- How x2go set up Remote Desktop on Linux (Linux)
- Ubuntu download install and configure Plank Dock (Linux)
- Ansible installation configuration and simple to use (Server)
- Use DB2 federated access Oracle (Database)
- Android Studio simple setup (Linux)
- Oracle 10g New Features - Archive Compression (Database)
- Docker in the development and practice of IFTTT (Server)
- MySQL 5.6 database code changes (Database)
- How to upgrade to Oracle 11g Oracle 12c (Database)
- Ubuntu 14.04 kernel after the restart boot black screen to solve (Linux)
- The user how to install Notepadqq 0.41.0 under ubuntu and debian (Linux)
- Shell programming entry (Programming)
- Linux operating system Start Tutorial: Xmanager Remote Access Linux graphical interface (Linux)
- System Security: Build Linux with LIDS steel castle (Linux)
- MNIST presentation and database conversion (Database)
- AngularJS notes --- Scope and controller (Programming)
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.