Sometimes when I try to start Firefox it says \"a Firefox process is already running\". So I have to do this:
jeremy@jeremy-desktop:~$ ps aux | grep firefox
Kill all processes having snippet in startup path. You can kill all apps started from some directory by for putting /directory/ as a snippet. This is quite usefull when you start several components for the same application from the same app directory.
ps ax | grep | grep -v grep | awk '{print $1}' | xargs kill
* I would preffer pgrep if available