Forrest logo
back to the launchctl tool

launchctl:tldr:16024

launchctl: Show all loaded agents/daemons, with the PID if the process they specify is currently running, and the exit code returned the last time they ran.
$ launchctl list
try on your machine

The launchctl list command is used in macOS or Mac OS X systems to display a list of currently running services, daemons, and agents managed by the launchd system. launchd is the system-wide process manager responsible for starting and stopping various processes on a Mac.

When you execute launchctl list in the Terminal, it displays a table with multiple columns containing information about each running service. The columns usually include the following details:

  1. PID: The Process ID number associated with the running service.
  2. Status: Whether the service is currently running (0 means running, - means idle/not running).
  3. Label: The name or identifier of the service.
  4. Last Exit: If the service exited recently, it displays the exit code to indicate the termination status.
  5. Last Exit Time: The timestamp of when the service last exited.

By using launchctl list, you can get an overview of the running services on your Mac and check their status. This is particularly useful for troubleshooting or managing system processes.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the launchctl tool