macOS / binaries /

halt

/sbin/halt
Stopping and restarting the system

The halt utility flushes the file system cache to disk, send all running processes a SIGTERM (and subsequently a SIGKILL) and, respectively, halt or restart the system. The action is logged, including entering a shutdown record into the user accounting database.

source: man