Is there an equivalent command on windows for the UNIX/Linux sync
command? I need to verify all writes caches have been flushed to disk system wide on an as needed basis. I don't want to disable write caching on the hard drives.
The sync command forces an immediate write of all cached data to disk. Run sync if you anticipate the system to be unstable, or the storage device to become suddenly unavailable, and you want to ensure all data is written to disk. Individual files may be synced, or the entire filesystem containing the specified files.
Doing sudo sync ensures that data that has been written by applications but remains in a memory buffer is flushed to the disk. That's all it does. It does not shut down the system properly and is likely to result in data loss and other mishaps.
DESCRIPTION. sync-accounts is a tool for copying account information into the local system's password and group databases, or equivalent, from other systems.
DESCRIPTION. sync writes any data buffered in memory out to disk. This can include (but is not limited to) modified superblocks, modified inodes, and delayed reads and writes. This must be implemented by the kernel; The sync program does nothing but exercise the sync(2) system call.
There is a similar command available for Windows at http://technet.microsoft.com/sv-se/sysinternals/bb897438(en-us).aspx
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With