Hands-on task
This task is step 2 of the course “Processes and signals”
Count sleep processes
Several sleep processes are running. Count how many processes are named exactly sleep, and write the number to /root/count.txt.
What you'll practise:
- pgrep
- counting processes
- exact match
- ps