What does Linux cp –preserve[=ATTR_LIST] option do?

Generally when you copy a file, the file attributes may get changed during the copy. You can use cp –preserve[=ATTR_LIST] to preserve the specified attributes (default: mode,ownership,timestamps), if possible additional attributes: context, links, xattr, all.

Leave a Reply