How to gently kill Firefox process on Linux/OS X

前端 未结 7 1451
盖世英雄少女心
盖世英雄少女心 2021-02-08 06:02

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

7条回答
  •  南笙
    南笙 (楼主)
    2021-02-08 06:26

    You can first get the Pid of firefox with

    pgrep firefox
    

    and after use kill to stop firefox kill [pid]

    kill `pgrep firefox`
    

提交回复
热议问题