What does Linux cp -u or –update option do?

You can use cp -u or –update options to copy only when the source file/directory is newer than the destination file/directory or when the destination file/directory is missing.