Kill all process from ps and grep Leave a reply This command will kill all instance from ps aux | grep samba kill $(ps aux | grep 'samba' | awk '{print $2}')