restart pi command code example Example 1: raspberry pi reboot command sudo reboot Example 2: restart computer command linux $ sudo shutdown -r now