Multiple choice technology programming languages

What is the purpose of sync command?

  1. To synchronize user applications

  2. To synchronize keyboard and monitor

  3. To synchornize disk buffers

  4. To syschronize main memory and cache memory

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

The sync command forces the operating system kernel to flush disk buffers to permanent storage. It writes cached data from memory to the actual disk, ensuring data integrity. This is critical before unmounting or rebooting to prevent data loss.