When copying a user's files on same partition\filesystem:
What is the difference between cp -af and cp -rpf?
From my understanding and man pages -a keeps all file settings including ownership, permissions,sl and includes recursive.
Why use -rp when it is covered in -a?
thanks ahead of time
cp flags question
Re: cp flags question
Okay? might they be the same?
Re: cp flags question
From man cp:
-a, --archive
same as -dR --preserve=all
-d same as --no-dereference --preserve=links
-f, --force
if an existing destination file cannot be opened, remove it and try again (this option is ignored when the -n option is also used)
-R, -r, --recursive
copy directories recursively
-p same as --preserve=mode,ownership,timestamps
--preserve[=ATTR_LIST]
preserve the specified attributes (default: mode,ownership,timestamps), if possible additional attributes: context, links, xattr, all
-a, --archive
same as -dR --preserve=all
-d same as --no-dereference --preserve=links
-f, --force
if an existing destination file cannot be opened, remove it and try again (this option is ignored when the -n option is also used)
-R, -r, --recursive
copy directories recursively
-p same as --preserve=mode,ownership,timestamps
--preserve[=ATTR_LIST]
preserve the specified attributes (default: mode,ownership,timestamps), if possible additional attributes: context, links, xattr, all