I was observing the use of the sync
command and I have read that this command makes sure that anything in memory is written to disk.
As I was thinking of installing Ubuntu on a removable disk (USB) I would like to know if it is necessary to execute this command.
It worries me that when turning off the computer, if data are still being written, they end up losing because of the system shutdown.
Is it necessary to run sync
before shutting down or restart the system?
Does anyone explain more about this?