>_ IzzyLab

Topic breakdown

The ss utility shows network sockets; for TCP it can be limited to listening ones (LISTEN) and asked not to resolve names into numbers. The key idea is to reduce the output to a "one line = one socket" format by removing the header row, otherwise the line counter will be off by one. Counting lines is a classic job for wc -l, and the pipeline result is redirected to a file.

What's checked

  1. number of LISTEN sockets is correct

What it looks like