Hands-on task
This task is step 6 of the course “Monitoring and metrics”
Number of process descriptors
A Python HTTP server is running (port 8000). Count the number of open file descriptors of this process and write it to /root/fd.txt.
What you'll practise:
- file descriptors
- /proc
- pgrep
- ss
- counting entries