• Home
  • Linux copy a folder with same user, group and other permissions

Linux copy a folder with same user, group and other permissions

November 14, 2013 Ning 0 Comments
sudo cp -rp folder1 folder2

help

 -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

leave a comment

*