Use pkill -f
, which matches the pattern for any part of the command line
pkill -f my_pattern
Just in case it doesn’t work, try to use this one as well:
pkill -9 -f my_pattern
More Related Contents:
- How to read a file line by line and making a new file for each line having same filename as last word of each line? [closed]
- How to permanently set $PATH on Linux/Unix [closed]
- How do I use sudo to redirect output to a location I don’t have permission to write to? [closed]
- Read values into a shell variable from a pipe
- Aborting a shell script if any command returns a non-zero value
- Bash ignoring error for a particular command
- How to replace spaces in file names using a bash script
- How can I quickly sum all numbers in a file?
- Bash script process substitution Syntax error: “(” unexpected
- Setting environment variables in Linux using Bash
- What does `set -x` do?
- “find: paths must precede expression:” How do I specify a recursive search that also finds files in the current directory?
- Does “argument list too long” restriction apply to shell builtins?
- Linux and I/O completion ports?
- How does SIGINT relate to the other termination signals such as SIGTERM, SIGQUIT and SIGKILL?
- How to remove non UTF-8 characters from text file
- Uppercasing First Letter of Words Using SED
- Find the files that have been changed in last 24 hours
- Tar a directory, but don’t store full absolute paths in the archive
- Get last dirname/filename in a file path argument in Bash
- bash command not found when setting a variable
- How to obtain the number of CPUs/cores in Linux from the command line?
- Is there really no asynchronous block I/O on Linux?
- Exit code of variable assignment to command substitution in Bash
- Move all files except one
- Using `date` command to get previous, current and next month
- Counter increment in Bash loop not working
- Start script after another one (already running) finishes
- Setting creation or change timestamps
- Why exit code 141 with grep -q?