How can I kill 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
System.debug(JSON.Serialize(o)) Not longer shows full string
Term for the "extreme-extension" version of a straw man fallacy?
Did Dumbledore lie to Harry about how long he had James Potter's invisibility cloak when he was examining it? If so, why?
Sequence of Tenses: Translating the subjunctive
Anatomically Correct Strange Women In Ponds Distributing Swords
How do I go from 300 unfinished/half written blog posts, to published posts?
Pole-zeros of a real-valued causal FIR system
How do I rename a Linux host without needing to reboot for the rename to take effect?
You cannot touch me, but I can touch you, who am I?
What is the best translation for "slot" in the context of multiplayer video games?
Integer addition + constant, is it a group?
How can a function with a hole (removable discontinuity) equal a function with no hole?
Is expanding the research of a group into machine learning as a PhD student risky?
Do all network devices need to make routing decisions, regardless of communication across networks or within a network?
How does buying out courses with grant money work?
How long to clear the 'suck zone' of a turbofan after start is initiated?
A particular customize with green line and letters for subfloat
How can I get through very long and very dry, but also very useful technical documents when learning a new tool?
Applicability of Single Responsibility Principle
Class Action - which options I have?
Why Were Madagascar and New Zealand Discovered So Late?
Failed to fetch jessie backports repository
Unreliable Magic - Is it worth it?
Proof of work - lottery approach
How can I kill 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
I want to close certain applications on my Mac using Terminal. For example, how do I kill “Slack”? Do I need its PID number?
terminal mac
add a comment |
I want to close certain applications on my Mac using Terminal. For example, how do I kill “Slack”? Do I need its PID number?
terminal mac
6
killall Slackworks, I just tested...
– Wowfunhappy
8 hours ago
add a comment |
I want to close certain applications on my Mac using Terminal. For example, how do I kill “Slack”? Do I need its PID number?
terminal mac
I want to close certain applications on my Mac using Terminal. For example, how do I kill “Slack”? Do I need its PID number?
terminal mac
terminal mac
edited 6 hours ago
JBallin
2,4471035
2,4471035
asked 8 hours ago
BrainmaniacBrainmaniac
1754
1754
6
killall Slackworks, I just tested...
– Wowfunhappy
8 hours ago
add a comment |
6
killall Slackworks, I just tested...
– Wowfunhappy
8 hours ago
6
6
killall Slack works, I just tested...– Wowfunhappy
8 hours ago
killall Slack works, I just tested...– Wowfunhappy
8 hours ago
add a comment |
4 Answers
4
active
oldest
votes
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
add a comment |
You can install htop then click on the Slack process line and type k9
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.
add a comment |
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.
add a comment |
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.
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fapple.stackexchange.com%2fquestions%2f354954%2fhow-can-i-kill-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
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
add a comment |
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
add a comment |
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
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
edited 34 mins ago
answered 8 hours ago
user3439894user3439894
28.4k64665
28.4k64665
add a comment |
add a comment |
You can install htop then click on the Slack process line and type k9
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.
add a comment |
You can install htop then click on the Slack process line and type k9
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.
add a comment |
You can install htop then click on the Slack process line and type k9
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
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.
answered 5 hours ago
BEFioBEFio
311
311
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.
add a comment |
add a comment |
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.
add a comment |
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.
add a comment |
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.
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.
answered 3 hours ago
scohe001scohe001
29639
29639
add a comment |
add a comment |
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.
add a comment |
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.
add a comment |
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.
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.
answered 48 mins ago
user321134user321134
132
132
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fapple.stackexchange.com%2fquestions%2f354954%2fhow-can-i-kill-an-app-using-terminal%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
6
killall Slackworks, I just tested...– Wowfunhappy
8 hours ago