Hands-on task
This task is step 9 of the course “Linux: everyday tasks”
Count tail processes
Several background tail processes (tail -f) and other service processes are running in the system. Count how many processes named exactly tail are currently running, and write the number to /root/count.txt.
What you'll practise:
- pgrep
- processes
- counting matches
- exact name match