# flush command

The flush command in the DM account
flushes to disk all memory-resident buffers that are tagged as write-required.

All write-required buffers are periodically flushed to
disk in the normal sequence of events, but this command is provided
to ensure data integrity at a given moment. In case of an emergency
reboot or problems with the system, flush is a
safety measure.

The flushing algorithm varies between implementations
of D3.

**For UNIX:** The flush interval
is set by the set-flush command. Roughly 10% of
the write-required frames are flushed at each activation.

**For Windows:** The flush interval is set from
the D3 Settings tab of the D3 Device Manager (see the *D3 System Administration Guide* for more information).

## See also

- [buf-map command](https://d3codex.com/tcl/buf-map-command/)
- [buffers command](https://d3codex.com/tcl/buffers-command/)
- [buffers.g command](https://d3codex.com/tcl/buffers-g-command/)
- [File inconsistency handler](https://d3codex.com/definitions/file-inconsistency-handler/)
- [Flusher](https://d3codex.com/definitions/flusher/)
- [set-flush command](https://d3codex.com/tcl/set-flush-command/)

---
Source: https://d3codex.com/tcl/flush-command/ - part of the D3Codex reference.
