When I need to do echo 3 > /proc/sys/vm/drop_caches
with a sync
beforehand, is it better to use
sync && echo 3 > /proc/sys/vm/drop_caches
or
sync ; echo 3 > /proc/sys/vm/drop_caches
.
Does it even matter because both commands are safe for the filesystem data? Or might the second version lose data in the process?