os.shutdown
From ComputerCraft Wiki
| Shuts down the computer | |
| Syntax | os.shutdown() |
| Returns | None |
| Part of | ComputerCraft |
| API | OS |
Examples
| Shut down the computer | |
| Code |
os.shutdown() |
| Output | The computer powers off. |
Additional Notes
Alternatively, you could hold CTRL + S for one second to shutdown the Computer outside of a program.