What is the command sync used for in UNIX. Can someone explain the syntax and purpose of this UNIX command?
Printable View
What is the command sync used for in UNIX. Can someone explain the syntax and purpose of this UNIX command?
The sync command in UNIX is used to ensure that all pending I/O functions are completed and so this function sync is used before unmounting a file system. If there is some other usage kindly put those in this discussion for us to learn.