restart touchbar mac code example Example: restart touch bar mac sudo pkill TouchBarServer; sudo killall “ControlStrip”;