I want to quit certain applications on my Mac using Terminal. For example, how do I kill “Slack”? Do I need its PID number?
macOS Terminal – How to Quit an App Using Terminal
command linemacosterminal
Related Question
- MacOS – How to kill a process that won’t die
- MacOS – How to programatically kill the CCLibrary process by PID
- Terminal – How to Start a Bash Command That Doesn’t Close on Quit
- Quit terminal but store the session for next start
- How to Switch Focus to App by PID from CLI
- Terminal – How to Open an App on Mac
- Terminal macOS Internationalization Unicode – How to Stop Terminal from Using Special Characters
- MacOS – How to kill “SQL Developer” that seem to be in deadlock using ps aux and kill -9
Best Answer
No, you do not need to know its PID.
You can use:
Or:
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 its 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