bash command to restart computer code example Example: restart computer command linux $ sudo shutdown -r now