YouTip LogoYouTip

Linux Comm Pkill

# Linux pkill Command [![Image 3: Linux Command Manual](#) Linux Command Manual](#) Linux pkill is used to kill a process. Unlike (#), it kills all processes with a specified name, similar to the (#) command. The kill command kills a process by its PID, which requires using ps, while pkill operates directly on the process name, making it more convenient. ### Syntax pkill name **Parameter Description**: * name: Process name Options include the following parameters: -o Only send a signal to the smallest (starting) process ID found -n Only send a signal to the largest (ending) process ID found* -P Specify the parent process ID to send a signal * -g Specify the process group * -t Specify the terminal where the process was started ### Example # pkill -9 php-fpm //Kill all php-fpm processes [![Image 4: Linux Command Manual](#) Linux Command Manual](#)
← Python3 Basic OperatorsR Array β†’