pgrep – POFTUT

What Is Linux SIGTERM Signal and Difference with SIGKILL

Unix and Linux like operating systems processes uses SIGNALS in order to communicate each other. For example If we can to kill a process we need to send a signal to process we want to kill. This signal will be SIGTERM and send by kill or similar commands. In this tutorial we will examine the SIGTERM … Read more

How To Wait Specified Process Termination with wait In Linux and Difference with sleep?

Linux provides simple and useful tools and commands. wait is one of them. We can use wait command to wait for specified process id and than continue execution of the bash script or interactive shell. Wait For Specified Process ID While scripting in bash we may need to wait for some process to continue. So … Read more

Pgrep and Pkill Command Tutorial With Examples For Linux

While working process general ps command is used. Ps command provides detailed information about processes those run on the system. We generally use grep command with ps to filter or match. There is a alternative and more practical way to work process. Pgrep and pkill can be used to manage, list and kill process. Syntax pgrep [options] pattern … Read more