最終更新:2016-04-06 (水) 14:45:09 (2934d)  

cp
Top / cp

cp [OPTION]... [-T] SOURCE DEST
cp -dpR /dev /mnt
  • -d オプションはシンボリックリンクをコピーする際に,リンク先の実体 ではなくリンクそのものをコピーするための指定です.
  • -p オプションは 元のファイルの属性を保存します(したがって所有者情報も保存されます).
  • -R, -r 再帰的にコピー

man

  •        -a, --archive
                  same as -dR --preserve=all
           -d     same as --no-dereference --preserve=links
           -l, --link
                  link files instead of copying
           -P, --no-dereference
                  never follow symbolic links in SOURCE
           --preserve[=ATTR_LIST]
                  preserve the specified attributes (default: mode,ownership,time‐
                  stamps),  if  possible  additional  attributes:  context, links,
                  xattr, all
           -R, -r, --recursive
                  copy directories recursively
    

参考