Hands-on task
This task is step 2 of the course “Networking and HTTP from the terminal”
List of Listening Ports
Collect a list of all TCP ports currently being listened on the machine into the file /root/ports.txt (in any readable form — what matters is that the port numbers of the running services are there).
What you'll practise:
- ss
- tcp sockets
- listen ports
- output redirection