These techniques can be useful in shell scripts, where you wouldn’t know the process ID and would need to restart or kill a process.
killall -v irssi
pkill irssi
kill ps -ef | grep irssi | grep -v grep | awk ‘{print $2}’
These techniques can be useful in shell scripts, where you wouldn’t know the process ID and would need to restart or kill a process.
killall -v irssi
pkill irssi
kill ps -ef | grep irssi | grep -v grep | awk ‘{print $2}’