Is there a way to restart mac without reopen all apps via terminal?

3

I'm familiar with $ sudo shutdown -r now but I wonder is there a way to restart without reopen all apps?

Alexander Rodin

Posted 2018-02-10T09:40:19.350

Reputation: 31

In Linux, I use $ sudo reboot now. Hope that it works for you. – Biku B. – 2018-02-10T09:44:58.003

Unfortunately, it didn't work, my apps are still reopening :( – Alexander Rodin – 2018-02-10T10:09:46.440

1Close all the apps first from the command-line; then restart. – CJK – 2018-02-12T11:30:30.703

As @CJK mentioned, you could write a wrapper script to first close all open applications, then execute a sudo shutdown -r now. – Scot – 2018-02-14T22:29:00.123

No answers