I\'m doing some automation with Firefox and although I can open Firefox window from shell, I\'m not able to terminate it properly. If I kill Firefox process with
kill
You can use pkill with the process name:
pkill
pkill -f firefox