…all you have to do is open the Terminal app, which comes preinstalled on your Mac.
Origen 9 to 5 mac – How to fix and restart the Touch Bar when it stops working
You can find the Terminal app by searching for it with Spotlight or also in Finder > Applications > Utilities folder.
With the Terminal open, you must type the following commands:
sudo pkill TouchBarServer;
sudo killall “ControlStrip”;
You can either type them in or copy and paste both commands together. Press the Return key to continue. The result will be something like this:
…