LPI Exam Questions

Please enter the appropriate command, without the path or any options or parameters, that would achi

CORRECT TEXT
After a lot of write operations, the changes should be written to the disk.
Please enter the appropriate command, without the path or any options or parameters, that would
achieve this.

Answer: sync

Explanation:

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.