by Devin Yang
(This article was automatically translated.)

Published - 5 years ago ( Updated - 5 years ago )

can use the command:
cat /proc/net/sockstat
result:
sockets: used 4807
TCP: inuse 2190 orphan 4 tw 42 alloc 4430 mem 2247
UDP: inuse 38 mem 81
UDPLITE: inuse 0
RAW: inuse 0
FRAG: inuse 0 memory 0

Tags:

Devin Yang

Feel free to ask me, if you don't get it.:)

No Comment

Post your comment

Login is required to leave comments

Similar Stories


linux

Multiple ssh configuration files for public key authentication

When we use ssh public key authentication, we usually add relevant settings in ~/.ssh/config. If some are used by the company or at home, can multiple configs be used? In fact, it is possible. We can use git to load the company-shared, version-controlled config through Include.

emoji

sparkles emoji

I think this sparkles emoji is awesome, record it.

ssh,security,config

About SSH_USER_AUTH

After OpenSSH 7.6, you can add the ExposeAuhtInfo yes parameter in the sshd_config configuration file, restart sshd, and then log in, there will be an environment variable $SSH_USER_AUTH which can be written into a temporary file in tmp, which contains the login public key