sync
command
“When in doubt, run the
sync
command 3 times”- Fishmaster. SE350 - Operating Systems
Purpose: The sync command is used in Unix and Linux systems. Updates the i-node table and writes buffered files to the hard disk.
Function: It synchronizes the file system’s in-memory state with the storage device.
Usage: Ensures that all pending file system writes are completed and written to the disk.