How can I quit an app using Terminal?How can I remove Firefox using terminal?How can I delete saved commands from Terminal?Geeky terminal for OS XHow can I enable syntax colouring in vim using Terminal?Bash Script that will start up second Terminal process?How do I kill a process that won't die?How can I delete files in recovery mode using Terminal on my OS X main partition?How do I programatically kill the CCLibrary process by PID?Kill all terminals so they don't reappearUninstalled Application Running in Background on Mac

Is there a good way to store credentials outside of a password manager?

Why does indent disappear in lists?

Where does the Z80 processor start executing from?

A Rare Riley Riddle

Return the Closest Prime Number

Energy of the particles in the particle accelerator

Was Spock the First Vulcan in Starfleet?

How long to clear the 'suck zone' of a turbofan after start is initiated?

Is there a korbon needed for conversion?

Is this apparent Class Action settlement a spam message?

How does the UK government determine the size of a mandate?

Roman Numeral Treatment of Suspensions

Inappropriate reference requests from Journal reviewers

Escape a backup date in a file name

What can we do to stop prior company from asking us questions?

What does "I’d sit this one out, Cap," imply or mean in the context?

A problem in Probability theory

Is HostGator storing my password in plaintext?

How do I go from 300 unfinished/half written blog posts, to published posts?

Why didn't Theresa May consult with Parliament before negotiating a deal with the EU?

Is expanding the research of a group into machine learning as a PhD student risky?

Purchasing a ticket for someone else in another country?

Would a high gravity rocky planet be guaranteed to have an atmosphere?

Do sorcerers' Subtle Spells require a skill check to be unseen?



How can I quit an app using Terminal?


How can I remove Firefox using terminal?How can I delete saved commands from Terminal?Geeky terminal for OS XHow can I enable syntax colouring in vim using Terminal?Bash Script that will start up second Terminal process?How do I kill a process that won't die?How can I delete files in recovery mode using Terminal on my OS X main partition?How do I programatically kill the CCLibrary process by PID?Kill all terminals so they don't reappearUninstalled Application Running in Background on Mac













11















I want to quit a certain applications on my Mac using Terminal. For example, how do I kill “Slack”? Do I need its PID number?










share|improve this question



















  • 6





    killall Slack works, I just tested...

    – Wowfunhappy
    16 hours ago















11















I want to quit a certain applications on my Mac using Terminal. For example, how do I kill “Slack”? Do I need its PID number?










share|improve this question



















  • 6





    killall Slack works, I just tested...

    – Wowfunhappy
    16 hours ago













11












11








11


2






I want to quit a certain applications on my Mac using Terminal. For example, how do I kill “Slack”? Do I need its PID number?










share|improve this question
















I want to quit a certain applications on my Mac using Terminal. For example, how do I kill “Slack”? Do I need its PID number?







terminal mac






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 20 mins ago







Brainmaniac

















asked 16 hours ago









BrainmaniacBrainmaniac

1906




1906







  • 6





    killall Slack works, I just tested...

    – Wowfunhappy
    16 hours ago












  • 6





    killall Slack works, I just tested...

    – Wowfunhappy
    16 hours ago







6




6





killall Slack works, I just tested...

– Wowfunhappy
16 hours ago





killall Slack works, I just tested...

– Wowfunhappy
16 hours ago










4 Answers
4






active

oldest

votes


















17














No, you do not need to know its PID.



You can use:



pkill Slack


Or:



killall Slack



Note: Be sure to read the manual page for whichever command you choose to use, in order to see the various options available to the command, as may be relevant to is particular usage. In Terminal type e.g. man pkill and press enter, or just type the command and right-click on it, then select: Open man Page






share|improve this answer
































    4














    You can install htop then click on the Slack process line and type k9






    share|improve this answer








    New contributor




    BEFio is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.










    We're looking for long answers that provide some explanation and context. Don't just give a one-line answer; explain why your answer is right, ideally with citations. Answers that don't include explanations may be removed.





















      4














      I'm not sure for Slack, but some Applications will run multiple Processes and you may want to kill just one (I find I often need to do this with iTunes, for example). In that case, you can run



      ps -e | grep -i slack


      To find all Processes with case-insensitive "slack" in the name. The output should look like (without the header):



      PID TTY TIME CMD
      649 pts/1 00:00:00 bash


      That first column will be your PID. You can then use that to kill specifically that process:



      kill -9 649


      Replacing 649 with your PID you found from calling ps.






      share|improve this answer






























        2














        Since I don't yet have the reputation to comment, I'm saying this as a separate answer. pkill without any flags does not match a specific process! For example, running pkill foo would target processes named foo, but would also target processes named foobar. This is because it uses regular expressions.



        If you wish to kill a specific process, you can pass it the -x flag. For example, pkill -x foo. This will use exact names instead of regular expressions.






        share|improve this answer






















          Your Answer








          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "118"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fapple.stackexchange.com%2fquestions%2f354954%2fhow-can-i-quit-an-app-using-terminal%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          4 Answers
          4






          active

          oldest

          votes








          4 Answers
          4






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          17














          No, you do not need to know its PID.



          You can use:



          pkill Slack


          Or:



          killall Slack



          Note: Be sure to read the manual page for whichever command you choose to use, in order to see the various options available to the command, as may be relevant to is particular usage. In Terminal type e.g. man pkill and press enter, or just type the command and right-click on it, then select: Open man Page






          share|improve this answer





























            17














            No, you do not need to know its PID.



            You can use:



            pkill Slack


            Or:



            killall Slack



            Note: Be sure to read the manual page for whichever command you choose to use, in order to see the various options available to the command, as may be relevant to is particular usage. In Terminal type e.g. man pkill and press enter, or just type the command and right-click on it, then select: Open man Page






            share|improve this answer



























              17












              17








              17







              No, you do not need to know its PID.



              You can use:



              pkill Slack


              Or:



              killall Slack



              Note: Be sure to read the manual page for whichever command you choose to use, in order to see the various options available to the command, as may be relevant to is particular usage. In Terminal type e.g. man pkill and press enter, or just type the command and right-click on it, then select: Open man Page






              share|improve this answer















              No, you do not need to know its PID.



              You can use:



              pkill Slack


              Or:



              killall Slack



              Note: Be sure to read the manual page for whichever command you choose to use, in order to see the various options available to the command, as may be relevant to is particular usage. In Terminal type e.g. man pkill and press enter, or just type the command and right-click on it, then select: Open man Page







              share|improve this answer














              share|improve this answer



              share|improve this answer








              edited 8 hours ago

























              answered 16 hours ago









              user3439894user3439894

              28.4k64665




              28.4k64665























                  4














                  You can install htop then click on the Slack process line and type k9






                  share|improve this answer








                  New contributor




                  BEFio is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.










                  We're looking for long answers that provide some explanation and context. Don't just give a one-line answer; explain why your answer is right, ideally with citations. Answers that don't include explanations may be removed.


















                    4














                    You can install htop then click on the Slack process line and type k9






                    share|improve this answer








                    New contributor




                    BEFio is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                    Check out our Code of Conduct.










                    We're looking for long answers that provide some explanation and context. Don't just give a one-line answer; explain why your answer is right, ideally with citations. Answers that don't include explanations may be removed.
















                      4












                      4








                      4







                      You can install htop then click on the Slack process line and type k9






                      share|improve this answer








                      New contributor




                      BEFio is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                      Check out our Code of Conduct.










                      You can install htop then click on the Slack process line and type k9







                      share|improve this answer








                      New contributor




                      BEFio is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                      Check out our Code of Conduct.









                      share|improve this answer



                      share|improve this answer






                      New contributor




                      BEFio is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                      Check out our Code of Conduct.









                      answered 13 hours ago









                      BEFioBEFio

                      411




                      411




                      New contributor




                      BEFio is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                      Check out our Code of Conduct.





                      New contributor





                      BEFio is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                      Check out our Code of Conduct.






                      BEFio is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                      Check out our Code of Conduct.



                      We're looking for long answers that provide some explanation and context. Don't just give a one-line answer; explain why your answer is right, ideally with citations. Answers that don't include explanations may be removed.




                      We're looking for long answers that provide some explanation and context. Don't just give a one-line answer; explain why your answer is right, ideally with citations. Answers that don't include explanations may be removed.






















                          4














                          I'm not sure for Slack, but some Applications will run multiple Processes and you may want to kill just one (I find I often need to do this with iTunes, for example). In that case, you can run



                          ps -e | grep -i slack


                          To find all Processes with case-insensitive "slack" in the name. The output should look like (without the header):



                          PID TTY TIME CMD
                          649 pts/1 00:00:00 bash


                          That first column will be your PID. You can then use that to kill specifically that process:



                          kill -9 649


                          Replacing 649 with your PID you found from calling ps.






                          share|improve this answer



























                            4














                            I'm not sure for Slack, but some Applications will run multiple Processes and you may want to kill just one (I find I often need to do this with iTunes, for example). In that case, you can run



                            ps -e | grep -i slack


                            To find all Processes with case-insensitive "slack" in the name. The output should look like (without the header):



                            PID TTY TIME CMD
                            649 pts/1 00:00:00 bash


                            That first column will be your PID. You can then use that to kill specifically that process:



                            kill -9 649


                            Replacing 649 with your PID you found from calling ps.






                            share|improve this answer

























                              4












                              4








                              4







                              I'm not sure for Slack, but some Applications will run multiple Processes and you may want to kill just one (I find I often need to do this with iTunes, for example). In that case, you can run



                              ps -e | grep -i slack


                              To find all Processes with case-insensitive "slack" in the name. The output should look like (without the header):



                              PID TTY TIME CMD
                              649 pts/1 00:00:00 bash


                              That first column will be your PID. You can then use that to kill specifically that process:



                              kill -9 649


                              Replacing 649 with your PID you found from calling ps.






                              share|improve this answer













                              I'm not sure for Slack, but some Applications will run multiple Processes and you may want to kill just one (I find I often need to do this with iTunes, for example). In that case, you can run



                              ps -e | grep -i slack


                              To find all Processes with case-insensitive "slack" in the name. The output should look like (without the header):



                              PID TTY TIME CMD
                              649 pts/1 00:00:00 bash


                              That first column will be your PID. You can then use that to kill specifically that process:



                              kill -9 649


                              Replacing 649 with your PID you found from calling ps.







                              share|improve this answer












                              share|improve this answer



                              share|improve this answer










                              answered 11 hours ago









                              scohe001scohe001

                              31639




                              31639





















                                  2














                                  Since I don't yet have the reputation to comment, I'm saying this as a separate answer. pkill without any flags does not match a specific process! For example, running pkill foo would target processes named foo, but would also target processes named foobar. This is because it uses regular expressions.



                                  If you wish to kill a specific process, you can pass it the -x flag. For example, pkill -x foo. This will use exact names instead of regular expressions.






                                  share|improve this answer



























                                    2














                                    Since I don't yet have the reputation to comment, I'm saying this as a separate answer. pkill without any flags does not match a specific process! For example, running pkill foo would target processes named foo, but would also target processes named foobar. This is because it uses regular expressions.



                                    If you wish to kill a specific process, you can pass it the -x flag. For example, pkill -x foo. This will use exact names instead of regular expressions.






                                    share|improve this answer

























                                      2












                                      2








                                      2







                                      Since I don't yet have the reputation to comment, I'm saying this as a separate answer. pkill without any flags does not match a specific process! For example, running pkill foo would target processes named foo, but would also target processes named foobar. This is because it uses regular expressions.



                                      If you wish to kill a specific process, you can pass it the -x flag. For example, pkill -x foo. This will use exact names instead of regular expressions.






                                      share|improve this answer













                                      Since I don't yet have the reputation to comment, I'm saying this as a separate answer. pkill without any flags does not match a specific process! For example, running pkill foo would target processes named foo, but would also target processes named foobar. This is because it uses regular expressions.



                                      If you wish to kill a specific process, you can pass it the -x flag. For example, pkill -x foo. This will use exact names instead of regular expressions.







                                      share|improve this answer












                                      share|improve this answer



                                      share|improve this answer










                                      answered 8 hours ago









                                      user321134user321134

                                      333




                                      333



























                                          draft saved

                                          draft discarded
















































                                          Thanks for contributing an answer to Ask Different!


                                          • Please be sure to answer the question. Provide details and share your research!

                                          But avoid


                                          • Asking for help, clarification, or responding to other answers.

                                          • Making statements based on opinion; back them up with references or personal experience.

                                          To learn more, see our tips on writing great answers.




                                          draft saved


                                          draft discarded














                                          StackExchange.ready(
                                          function ()
                                          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fapple.stackexchange.com%2fquestions%2f354954%2fhow-can-i-quit-an-app-using-terminal%23new-answer', 'question_page');

                                          );

                                          Post as a guest















                                          Required, but never shown





















































                                          Required, but never shown














                                          Required, but never shown












                                          Required, but never shown







                                          Required, but never shown

































                                          Required, but never shown














                                          Required, but never shown












                                          Required, but never shown







                                          Required, but never shown







                                          Popular posts from this blog

                                          Magento 2 duplicate PHPSESSID cookie when using session_start() in custom php scriptMagento 2: User cant logged in into to account page, no error showing!Magento duplicate on subdomainGrabbing storeview from cookie (after using language selector)How do I run php custom script on magento2Magento 2: Include PHP script in headerSession lock after using Cm_RedisSessionscript php to update stockMagento set cookie popupMagento 2 session id cookie - where to find it?How to import Configurable product from csv with custom attributes using php scriptMagento 2 run custom PHP script

                                          Can not update quote_id field of “quote_item” table magento 2Magento 2.1 - We can't remove the item. (Shopping Cart doesnt allow us to remove items before becomes empty)Add value for custom quote item attribute using REST apiREST API endpoint v1/carts/cartId/items always returns error messageCorrect way to save entries to databaseHow to remove all associated quote objects of a customer completelyMagento 2 - Save value from custom input field to quote_itemGet quote_item data using quote id and product id filter in Magento 2How to set additional data to quote_item table from controller in Magento 2?What is the purpose of additional_data column in quote_item table in magento2Set Custom Price to Quote item magento2 from controller

                                          How to solve knockout JS error in Magento 2 Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Announcing the arrival of Valued Associate #679: Cesar Manara Unicorn Meta Zoo #1: Why another podcast?(Magento2) knockout.js:3012 Uncaught ReferenceError: Unable to process bindingUnable to process binding Knockout.js magento 2Cannot read property `scopeLabel` of undefined on Product Detail PageCan't get Customer Data on frontend in Magento 2Magento2 Order Summary - unable to process bindingKO templates are not loading in Magento 2.1 applicationgetting knockout js error magento 2Product grid not load -— Unable to process binding Knockout.js magento 2Product form not loaded in magento2Uncaught ReferenceError: Unable to process binding “if: function()return (isShowLegend()) ” magento 2