•Arnošt Havelka
Process Guard Drill
Filter and manage processes.
Start Interactive LessonCombine your knowledge of ps and grep to find and manage specific system tasks.
Filtering Processes
You can use the pipe | symbol to filter the output of ps through grep.
Terminal
~$ps | grep node
Read the pipeline from left to right: ps produces the process list, then grep node keeps only rows containing node. If the result is empty, check the process name before trying a management command.
References
These documentation links provide authoritative details for the commands used in this article.
Up Next
Premium: Bash Script Variables
Master bash variables and arithmetic to build reusable automation scripts that adapt to different environments.