4
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

netstatが無いのでssを使う

Posted at

archlinuxやcentos7にはnetstatが標準では入っていない。

TCPのLISTEN一覧
$ ss -t -a
State      Recv-Q Send-Q      Local Address:Port          Peer Address:Port
LISTEN     0      128                     *:ssh                      *:*
ESTAB      0      0          192.168.12.65:ssh        192.168.12.104:51286
LISTEN     0      128                    :::ssh                     :::*
UDPのLISTEN一覧
$ ss -u -a
State      Recv-Q Send-Q      Local Address:Port          Peer Address:Port
```
4
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?