Manual / shutdown
shutdown(1)
| SHUTDOWN(1) | General Commands Manual | SHUTDOWN(1) |
NAME
shutdown - stop maux cleanly
SYNOPSIS
shutdown
DESCRIPTION
Bring the machine to a stop that is safe to walk away from.
Every open file is closed first. This is the reason the command exists. ProDOS writes a file's directory entry back when the file is closed, so a file that some program still had open when the power went off exists on the volume with a length of zero, whatever was written into it. Resetting or switching off loses that; shutdown does not.
The periodic interrupt source is then disarmed, a message is printed, and the processor stops. Nothing runs afterwards: the shell is gone, the keyboard does nothing, and the screen keeps whatever was on it.
Press Ctrl-Reset to restart. shutdown arranges for that reset to be a cold start, so the machine reboots from the disk rather than dropping into the monitor.
There are no options and no operands. An operand is refused, and refusing does not stop the machine.
FILES
/usr/man/SHUTDOWN this page
SEE ALSO
init in sh(1), kill(1)
DIAGNOSTICS
There is no exit status on the normal path, because nothing is left to return to. Exit status is 2 for an operand.
BUGS
Buffered output belonging to a program that is still running is lost. shutdown closes the files the system has open; it cannot reach a buffer inside another program's own memory, any more than a killed program can flush one. A program that exits normally has already flushed.
There is no -r option to reboot without a keystroke. Rebooting from software needs the machine's ROM readable at the reset vector, which the language-card rule this system enforces does not allow from ordinary kernel code; the window belongs to a future bye command, and the reboot option should arrive with it.
On a machine with an UltraTerm the card keeps driving the monitor across the reset, so the rebooting system paints a screen that is not the one being displayed. That is true of resetting this system at any moment, not only after shutdown.
| September 21, 2026 | maux |