cp

Autres langues

Langue: ja

Autres versions - même langue

Version: 18 June 2002 (openSuse - 09/10/07)

Section: 1 (Commandes utilisateur)

̾Á°

cp - ¥Õ¥¡¥¤¥ë¤ä¥Ç¥£¥ì¥¯¥È¥ê¤ò¥³¥Ô¡¼¤¹¤ë

½ñ¼°

cp [options] file path
cp [options] file... directory

POSIX ¥ª¥×¥·¥ç¥ó: [-fipRr]

GNU ¥ª¥×¥·¥ç¥ó (´Êά·Á¼°): [-abdfilprsuvxHLPR] [-S SUFFIX] [-V {numbered,existing,simple}] [--remove-destination] [--sparse=WHEN] [--strip-trailing-slashes] [--target-directory=DIR] [--help] [--version] [--]

ÀâÌÀ

cp ¤Ï¥Õ¥¡¥¤¥ë (¤¢¤ë¤¤¤Ï¤½¤Î¤è¤¦¤Ë»ØÄꤹ¤ì¤Ð¥Ç¥£¥ì¥¯¥È¥ê) ¤ò¥³¥Ô¡¼¤¹¤ë¡£ 1 ¤Ä¤Î¥Õ¥¡¥¤¥ë¤ò»ØÄêÀè¤Ë¥³¥Ô¡¼¤·¤¿¤ê¡¢ Ê£¿ô¤Î¥Õ¥¡¥¤¥ë¤ò»ØÄê¥Ç¥£¥ì¥¯¥È¥ê¤Ë¥³¥Ô¡¼¤·¤¿¤ê¤Ç¤­¤ë¡£

ºÇ¸å¤Î°ú¤­¿ô¤¬´û¤Ë¸ºß¤¹¤ë¥Ç¥£¥ì¥¯¥È¥ê¤ò»Ø¤·¤Æ¤¤¤ë¾ì¹ç¡¢ cp ¤Ï¥³¥Ô¡¼¸µ¤Î file ¤ò¤½¤ì¤¾¤ì (Ʊ¤¸Ì¾Á°¤Î¤Þ¤Þ) ¤½¤Î¥Ç¥£¥ì¥¯¥È¥ê¤Ë¥³¥Ô¡¼¤¹¤ë¡£ 2 ¤Ä¤Î¥Õ¥¡¥¤¥ë¤À¤±¤¬»ØÄꤵ¤ì¤¿¾ì¹ç¡¢ 1 ¤ÄÌܤΥե¡¥¤¥ë¤ò 2 ¤ÄÌܤΥե¡¥¤¥ë¤Ë¥³¥Ô¡¼¤¹¤ë¡£ ºÇ¸å¤Î°ú¤­¿ô¤¬¥Ç¥£¥ì¥¯¥È¥ê¤Ç¤Ê¤¯¡¢ 2 ¤Ä°Ê¾å¤Î¥ª¥×¥·¥ç¥ó¤Ç¤Ê¤¤°ú¤­¿ô¤¬Í¿¤¨¤é¤ì¤¿¾ì¹ç¤Ï¥¨¥é¡¼¤Ë¤Ê¤ë¡£

(¤·¤¿¤¬¤Ã¤Æ `cp -r /a /b' ¤È¤¹¤ë¤È¡¢ /b ¤¬Â¸ºß¤¹¤ë¾ì¹ç¤Ï /a ¤ò /b/a ¤Ë¡¢ /a/x ¤ò /b/a/x ¤Ë¥³¥Ô¡¼¤¹¤ë¡£¤·¤«¤·¥³¥Ô¡¼Á°¤Ë /b ¤¬¤Ê¤¤¾ì¹ç¤Ï /a ¤ò /b ¤Ë¡¢/a/x ¤ò /b/x ¤Ë¥³¥Ô¡¼¤¹¤ë¡£)

ºî¤é¤ì¤¿¥Õ¥¡¥¤¥ë¤È¥Ç¥£¥ì¥¯¥È¥ê¤Î¥â¡¼¥É¤Ï¡¢ ¤Þ¤º¥ª¥ê¥¸¥Ê¥ë¥Õ¥¡¥¤¥ë¤Î¥â¡¼¥É¤ÈƱ¤¸¤â¤Î¤Ë¤µ¤ì¡¢ 0777 ¤È¤Î AND ¤ò¤È¤é¤ì¡¢ ¥æ¡¼¥¶¡¼¤Î umask ¤Î¥Ó¥Ã¥È¤¬°ú¤«¤ì¤ë (-p ¥ª¥×¥·¥ç¥ó¤¬»ØÄꤵ¤ì¤¿¾ì¹ç¤ò½ü¤¯)¡£ (¤·¤«¤·ºÆµ¢¥³¥Ô¡¼¤ÎºÇÃæ¤Ë¤Ï¡¢¿·¤·¤¯ºî¤é¤ì¤¿¥Ç¥£¥ì¥¯¥È¥ê¤ÎºÇ½ª¥â¡¼¥É¤Ë¡¢ °ì»þŪ¤Ë S_IRWXU (0700) ¤¬ OR ¤µ¤ì¤ë¡£ ¤³¤ì¤Ð¥×¥í¥»¥¹¤¬¤³¤ì¤é¤Î¿·¤·¤¯ºî¤é¤ì¤¿¥Ç¥£¥ì¥¯¥È¥ê¤Î Æɤ߽Ф·¡¦½ñ¤­¹þ¤ß¡¦¸¡º÷¤Î¥×¥í¥»¥¹¤ò²Äǽ¤Ë¤¹¤ë¤¿¤á¤Ç¤¢¤ë¡£)

¥Õ¥¡¥¤¥ë¤ò¤½¤ì¼«¿È¤Ë¥³¥Ô¡¼¤·¤è¤¦¤È¤·¤¿¾ì¹ç¡¢ (¥¨¥é¡¼¥á¥Ã¥»¡¼¥¸¤ò½Ð¤¹°Ê³°¤Ï) ²¿¤â¤·¤Ê¤¤¡£ ´û¸¤Î¥Õ¥¡¥¤¥ë¤Ë¥³¥Ô¡¼¤¹¤ë¾ì¹ç¡¢ ¥³¥Ô¡¼Àè¤Î¥Õ¥¡¥¤¥ë¤Ï `open(path, O_WRONLY | O_TRUNC)' ¤Ç³«¤«¤ì¤ë¡£ ¿·µ¬¥Õ¥¡¥¤¥ë¤Ë¥³¥Ô¡¼¤¹¤ë¾ì¹ç¡¢ ¿·µ¬¥Õ¥¡¥¤¥ë¤Ï `open(path, O_WRONLY | O_CREAT, mode)' ¤ÇºîÀ®¤µ¤ì¤ë¡£ ¥³¥Ô¡¼Àè¤Î¥Õ¥¡¥¤¥ë¤¬Â¸ºß¤·¡¢¤«¤Ä -f ¥ª¥×¥·¥ç¥ó¤¬Í¿¤¨¤é¤ì¤Æ¤¤¤ë¾ì¹ç¤Ë ¤³¤Î·Á¼°¤Ç¤Î¥Õ¥¡¥¤¥ë¤Î¥ª¡¼¥×¥ó¤Ë¼ºÇÔ¤¹¤ë¤È¡¢ cp ¤Ï´û¸¤Î¥Õ¥¡¥¤¥ë¤Îºï½ü (¤â¤·¤¯¤Ï¥¢¥ó¥ê¥ó¥¯) ¤ò»î¤ß¤ë¡£ ¤½¤·¤Æ¡¢ºï½ü¤ËÀ®¸ù¤·¤¿¾ì¹ç¤Ï¿·µ¬¥Õ¥¡¥¤¥ë¤Ø¤Î¥³¥Ô¡¼¤È¤·¤Æ Ì¿Îá¤ò³¹Ô¤¹¤ë¡£

ºÆµ¢Åª¤Ë¥³¥Ô¡¼¤¹¤ë¾ì¹ç¡¢ ¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï cp ¤Ï¥·¥ó¥Ü¥ê¥Ã¥¯¥ê¥ó¥¯¤òé¤ë¤À¤±¤Ç¤¢¤ë (-dHL ¥ª¥×¥·¥ç¥ó¤ò»²¾È)¡£

POSIX ¥ª¥×¥·¥ç¥ó

POSIX ¤Ç¤Ï¡¢°Ê²¼¤Î¥ª¥×¥·¥ç¥ó¤òǧ¼±¤¹¤ë¡£
-f
ɬÍפǤ¢¤ì¤Ð¡¢´û¸¤Î¥³¥Ô¡¼Àè¤Î¥Õ¥¡¥¤¥ë¤òºï½ü¤¹¤ë (¾åµ­»²¾È)¡£
-H
¥³¥Þ¥ó¥É¥é¥¤¥ó¤Ç»ØÄꤵ¤ì¤¿Á´¤Æ¤Î¥·¥ó¥Ü¥ê¥Ã¥¯¥ê¥ó¥¯¤òé¤ë¡£
-i
¥³¥Ô¡¼Àè¤Ë´û¤Ë¸ºß¤¹¤ë¥Õ¥¡¥¤¥ë¤ò¾å½ñ¤­¤¹¤ë¤«¤òÌ䤤¹ç¤ï¤»¤Æ¤¯¤ë¡£ (Ì䤤¹ç¤ï¤»¤Ïɸ½à¥¨¥é¡¼¤Ë½ñ¤«¤ì¡¢ÊÖÅú¤Ïɸ½àÆþÎϤ«¤éÆɤޤì¤ë¡£ ¾å½ñ¤­¤ò¹ÎÄꤹ¤ëÊÖÅú¤¬¤¢¤Ã¤¿¾ì¹ç¤Î¤ß¥³¥Ô¡¼¤µ¤ì¤ë¡£)
-L
¥·¥ó¥Ü¥ê¥Ã¥¯¥ê¥ó¥¯¤òé¤ê¡¢ ¤½¤ì¤¬»Ø¤·¤Æ¤¤¤ë¥Õ¥¡¥¤¥ë¤ò¥³¥Ô¡¼¤Þ¤¿¤Ï¾å½ñ¤­¤¹¤ë¡£
-p
¥ª¥ê¥¸¥Ê¥ë¥Õ¥¡¥¤¥ë¤Î½êÍ­¼Ô¡¦¥°¥ë¡¼¥×¡¦¥¢¥¯¥»¥¹¸¢¡¦¥¢¥¯¥»¥¹»þ¹ï¤òÊݸ¤¹¤ë (°Ê²¼¤Î --preserve ¤ò»²¾È)¡£
-R
¥Ç¥£¥ì¥¯¥È¥ê¤òºÆµ¢Åª¤Ë¥³¥Ô¡¼¤·¡¢ °ìÈ̤Υե¡¥¤¥ë¤Ç¤â¤Ê¤¯¥Ç¥£¥ì¥¯¥È¥ê¤Ç¤â¤Ê¤¤¤â¤Î¤ËÂФ·¤Æ¤Ï ¤½¤ì¤ËÁê±þ¤·¤¿¥³¥Ô¡¼¤ò¤¹¤ë¡£ (¤¿¤È¤¨¤Ð FIFO ¤È¥¹¥Ú¥·¥ã¥ë¥Õ¥¡¥¤¥ë¤Î¥³¥Ô¡¼¤Ï¡¢ ¤½¤ì¤¾¤ì FIFO ¤È¥¹¥Ú¥·¥ã¥ë¥Õ¥¡¥¤¥ë¤Ë¤µ¤ì¤ë¡£)
-r
¥Ç¥£¥ì¥¯¥È¥ê¤òºÆµ¢Åª¤Ë¥³¥Ô¡¼¤¹¤ë¤¬¡¢ °ìÈ̤Υե¡¥¤¥ë¤Ç¤â¤Ê¤¯¥Ç¥£¥ì¥¯¥È¥ê¤Ç¤â¤Ê¤¤¤â¤Î¤Ë ÂФ·¤Æ¤É¤¦¤¹¤ë¤«¤Ïµ¬Äꤵ¤ì¤Æ¤¤¤Ê¤¤¡£ (¤·¤¿¤¬¤Ã¤Æ -r ¥ª¥×¥·¥ç¥ó¤ò -R ¥ª¥×¥·¥ç¥ó¤Î ñ¤Ê¤ëÊÌ̾¤Ë¤¹¤ë¤³¤È¤â²Äǽ¤Ç¤¢¤ë (¼Â¤Ï¿ä¾©¤µ¤ì¤Æ¤¤¤ë)¡£ ¤·¤«¤·¡¢¸½ºß¤Î GNU ÈǤΠcp ¤Î¤è¤¦¤Êñ½ã¤ÊÆ°ºî (²¼µ­»²¾È) ¤â¶Ø»ß¤µ¤ì¤Æ¤¤¤Ê¤¤¡£)

GNU ¾ÜºÙ

Ä̾¥Õ¥¡¥¤¥ë¤ÏÆɤޤ줿Ä̤ê¤Ë½ñ¤­½Ð¤µ¤ì¤ë¡£ --sparse ¥ª¥×¥·¥ç¥ó¤Î¾ì¹ç¤ÏÎã³°¤Ç¤¢¤ë¤Î¤Ç²¼µ­¤ò»²¾È¤¹¤ë¤³¤È¡£

¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢`cp' ¤Ï¥Ç¥£¥ì¥¯¥È¥ê¤Î¥³¥Ô¡¼¤ò¹Ô¤ï¤Ê¤¤ (°Ê²¼¤Î -r ¥ª¥×¥·¥ç¥ó¤ò¸«¤è)¡£

cp ¤Ï¥Õ¥¡¥¤¥ë¤Î¤½¤ì¼«¿È¤Ø¤Î¥³¥Ô¡¼¤òÄ̾ï¤ÏµñÈݤ¹¤ë¤¬¡¢ ¼¡¤Î¤è¤¦¤ÊÎã³°¤¬¤¢¤ë¡§ --force --backup ¤¬»ØÄꤵ¤ì¤Æ¤¤¤Æ¡¢ ¥³¥Ô¡¼¸µ ¤È ¥³¥Ô¡¼Àè ¤¬Æ±°ì¤Ç¡¢Ä̾ï¤Î¥Õ¥¡¥¤¥ë¤ò»²¾È¤·¤Æ¤¤¤ë¾ì¹ç¤Ë¤Ï¡¢ cp ¤Ï¥Ð¥Ã¥¯¥¢¥Ã¥×¥Õ¥¡¥¤¥ë¤òºî¤ë¡£ ¥Ð¥Ã¥¯¥¢¥Ã¥×¥Õ¥¡¥¤¥ë̾¤Ë¤ÏÄ̾ï¤Þ¤¿¤ÏÈÖ¹æÉÕ¤­¤Î³ÈÄ¥»Ò¤¬¡¢ Ä̾ï¤Î¾ì¹ç¤ÈƱ¤¸¤è¤¦¤ËÉÕ¤¯¡£ ¤³¤ì¤Ï¡¢´û¤Ë¸ºß¤¹¤ë¥Õ¥¡¥¤¥ë¤òÊѹ¹Á°¤Ë ñ½ã¤Ë¥Ð¥Ã¥¯¥¢¥Ã¥×¤·¤¿¤¤¾ì¹ç¤ËÍ­ÍѤǤ¢¤ë¡£

GNU ¥ª¥×¥·¥ç¥ó

-a, --archive
¥³¥Ô¡¼Àè¤Ç¡¢¤Ç¤­¤ë¸Â¤ê¸µ¤Î¥Õ¥¡¥¤¥ë¤Î¹½À®¤È°À­¤òÊÝ»ý¤¹¤ë (¥Ç¥£¥ì¥¯¥È¥ê¹½Â¤ÂΤÏÊݸ¤·¤Ê¤¤)¡£ -dpR ¤ÈƱ¤¸¡£
-d, --no-dereference
¥·¥ó¥Ü¥ê¥Ã¥¯¥ê¥ó¥¯¤ò¥³¥Ô¡¼¤¹¤ë¾ì¹ç¡¢¥·¥ó¥Ü¥ê¥Ã¥¯¥ê¥ó¥¯¤¬»Ø¤·¤Æ¤¤¤ë ¥Õ¥¡¥¤¥ë¤ò¥³¥Ô¡¼¤¹¤ë¤Î¤Ç¤Ï¤Ê¤¯¡¢¥·¥ó¥Ü¥ê¥Ã¥¯¥ê¥ó¥¯¤È¤·¤Æ¥³¥Ô¡¼¤¹¤ë¡£ ¤Þ¤¿¡¢¥³¥Ô¡¼¸µ¤Ç¤Î¥Ï¡¼¥É¥ê¥ó¥¯¤Ï¥³¥Ô¡¼Àè¤Ç¤â¥Ï¡¼¥É¥ê¥ó¥¯¤È¤·¤ÆÊÝ»ý¤µ¤ì¤ë¡£
-f, --force
¥³¥Ô¡¼Àè¤Î¥Õ¥¡¥¤¥ë¤ò½ñ¤­¹þ¤ß¤Þ¤¿¤Ï¥¢¥ó¥ê¥ó¥¯¤¹¤ë¤¿¤á¡¢ ¥Õ¥¡¥¤¥ë¤ò¥ª¡¼¥×¥ó¤·¤è¤¦¤È¤¹¤ë¡£ ¼ºÇÔ¤·¤¿¾ì¹ç¡¢ÅÓÃæ¤ÇÃæ»ß¤¹¤ë¤³¤È¤Ê¤¯¥Ç¥Õ¥©¥ë¥È¤ÎÆ°ºî¤ò¹Ô¤¦¡£ --remove-destination ¤ò»²¾È¡£
-i, --interactive
¥³¥Ô¡¼Àè¤Ë¾å½ñ¤­¤µ¤ì¤ëÄ̾ï¤Î¥Õ¥¡¥¤¥ë¤¬Â¸ºß¤¹¤ë¾ì¹ç¡¢ ¾å½ñ¤­¤Î²ÄÈݤòÌ䤤¹ç¤ï¤»¤Æ¤¯¤ë¡£
-l, --link
¥³¥Ô¡¼¤¹¤ëÂå¤ï¤ê¤Ë¥Ï¡¼¥É¥ê¥ó¥¯¤òºî¤ë (¤¿¤À¤·¡¢¥Ç¥£¥ì¥¯¥È¥ê°Ê³°)¡£
-L, --dereference
¥·¥ó¥Ü¥ê¥Ã¥¯¥ê¥ó¥¯¤òé¤ê¡¢ ¤½¤ì¤¬»Ø¤·¤Æ¤¤¤ë¥Õ¥¡¥¤¥ë¤ò¥³¥Ô¡¼¤Þ¤¿¤Ï¾å½ñ¤­¤¹¤ë¡£
-p, --preserve
¥ª¥ê¥¸¥Ê¥ë¥Õ¥¡¥¤¥ë¤Î½êÍ­¼Ô¡¦¥°¥ë¡¼¥×¡¦ ¥¢¥¯¥»¥¹¸¢ (setuid, setgid ¥Ó¥Ã¥È¤ò´Þ¤à)¡¦ ºÇ½ª½¤Àµ»þ¹ï¡¦ºÇ½ª¥¢¥¯¥»¥¹»þ¹ï¤òÊݸ¤¹¤ë¡£ ½êÍ­¼Ô¤ä¥°¥ë¡¼¥×¤ÎÊ£À½¤Ë¼ºÇÔ¤·¤¿¾ì¹ç¤Ë¤Ï¡¢ setuid ¥Ó¥Ã¥È¤È setgid ¥Ó¥Ã¥È¤Ï¥¯¥ê¥¢¤µ¤ì¤ë¡£ (¤³¤Î¾ì¹ç¥³¥Ô¡¼¸µ¤È¥³¥Ô¡¼Àè¤ÎºÇ½ª¥¢¥¯¥»¥¹»þ¹ï¤¬°Û¤Ê¤Ã¤Æ¤·¤Þ¤¦¤³¤È¤ËÃí°Õ¡£ ¥³¥Ô¡¼Áàºî¤Ï¥³¥Ô¡¼¸µ¥Õ¥¡¥¤¥ë¤Ø¤Î¥¢¥¯¥»¥¹¤Ç¤¢¤ë¤«¤é¡£)
-P, --parents
¥³¥Ô¡¼Àè¤Î¥Õ¥¡¥¤¥ë̾¤Îºî¤êÊý¤ò ¡Ö¥³¥Ô¡¼Àè¥Ç¥£¥ì¥¯¥È¥ê¤Ë¥¹¥é¥Ã¥·¥å (/) ¤È¥³¥Ô¡¼¸µ¥Õ¥¡¥¤¥ë¤Î̾Á°¤ò²Ã¤¨¤ë¡× ¤È¤¹¤ë¡£ cp ¤ÎºÇ¸å¤Î°ú¤­¿ô¤Ï´û¤Ë¸ºß¤¹¤ë¥Ç¥£¥ì¥¯¥È¥ê¤Ç¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£ ¤¿¤È¤¨¤Ð¡¢

cp --parents a/b/c existing_dir

¤È¤¤¤¦¥³¥Þ¥ó¥É¤Ï `a/b/c'¤È¤¤¤¦¥Õ¥¡¥¤¥ë¤ò `existing_dir/a/b/c' ¤Ë (ÅÓÃæ¤Î¥Ç¥£¥ì¥¯¥È¥ê¤¬¤Ê¤¤¾ì¹ç¤Ï ¤½¤ì¤âºî¤Ã¤Æ) ¥³¥Ô¡¼¤¹¤ë¡£

-r
¥Ç¥£¥ì¥¯¥È¥ê¤òºÆµ¢Åª¤Ë¥³¥Ô¡¼¤¹¤ë¡£(FIFO ¤ä¥¹¥Ú¥·¥ã¥ë¥Õ¥¡¥¤¥ë¤È¤¤¤Ã¤¿) ¥Ç¥£¥ì¥¯¥È¥ê¤Ç¤â¤Ê¤¯¥·¥ó¥Ü¥ê¥Ã¥¯¥ê¥ó¥¯¤Ç¤â¤Ê¤¤¤â¤Î¤ò Ä̾ï¤Î¥Õ¥¡¥¤¥ë¤È¤·¤Æ¥³¥Ô¡¼¤¹¤ë¡£ ¤³¤Î¾ì¹ç cp ¤Ï¥³¥Ô¡¼¸µ¥Õ¥¡¥¤¥ë¤«¤é¥Ç¡¼¥¿¤¬Æɤ߹þ¤ß¡¢ ¥³¥Ô¡¼Àè¤Ë½ñ¤­½Ð¤½¤¦¤È¤¹¤ë¡£¤è¤¯¤¢¤ë´Ö°ã¤¤¤Ï¡¢ `cp -r' ¤ò¥¹¥Ú¥·¥ã¥ë¥Õ¥¡¥¤¥ë¡¢ FIFO¡¢`/dev' ¥Ç¥£¥ì¥¯¥È¥ê°Ê²¼¤Ë¤¢¤ë¤â¤Î¤ËÂФ·¤Æ»È¤¦¤³¤È¤Ç¤¢¤ë¡£ ¿¤¯¤Î¾ì¹ç¡¢cp ¤Ï FIFO ¤ä `/dev/console' ¤È¤¤¤Ã¤¿ ¥¹¥Ú¥·¥ã¥ë¥Õ¥¡¥¤¥ë¤«¤éÆɤ߹þ¤â¤¦¤È¤·¤Æ±Êµ×¤Ë¥Ï¥ó¥°¤·¤¿¤ê¡¢ `/dev/zero' ¤ò¥³¥Ô¡¼¤·¤è¤¦¤È¤·¤Æ¥³¥Ô¡¼Àè¥Ç¥£¥¹¥¯¤ò°î¤ì¤µ¤»¤¿¤ê¡¢ ÉÔÌÀ¤Ê¥Ç¥£¥Ð¥¤¥¹¤ò³«¤¤¤Æ¥Ï¡¼¥É¥¦¥§¥¢¤Ë¤è¤¯¤ï¤«¤é¤Ê¤¤¸ú²Ì¤ò µÚ¤Ü¤·¤Æ¤·¤Þ¤Ã¤¿¤ê¤¹¤ë¡£ ¥¹¥Ú¥·¥ã¥ë¥Õ¥¡¥¤¥ë¤ÎÆâÍƤò¥³¥Ô¡¼¤¹¤ë¤Î¤Ç¤Ê¤¯¡¢ ¥¹¥Ú¥·¥ã¥ë¥Õ¥¡¥¤¥ë¤ò¤½¤ÎÆÃÀ­¤òÊÝ»ý¤·¤¿¤Þ¤Þ¥³¥Ô¡¼¤·¤¿¤¤¾ì¹ç¤Ï¡¢ --recursive ¤Þ¤¿¤Ï -R ¥ª¥×¥·¥ç¥ó¤ò»È¤¦¤³¤È¡£
--remove-destination
¥Õ¥¡¥¤¥ë¤ò½ñ¤­¹þ¤ß¥ª¡¼¥×¥ó¤¹¤ë¤Î¤Ç¤Ï¤Ê¤¯¡¢¥¢¥ó¥ê¥ó¥¯¤¹¤ë¡£ --force ¤ò»²¾È¡£
-R, --recursive
¥Ç¥£¥ì¥¯¥È¥ê¤Ç¤Ê¤¤¤â¤Î¤òÊݸ¤·¤Ä¤Ä¡¢ ¥Ç¥£¥ì¥¯¥È¥ê¤òºÆµ¢Åª¤Ë¥³¥Ô¡¼¤¹¤ë (¤¹¤°¾å¤Î -r ¥ª¥×¥·¥ç¥ó¤ò¸«¤è)¡£
--sparse=WHEN
¡Ö¥¹¥Ñ¡¼¥¹¤Ê¥Õ¥¡¥¤¥ë¡×¤È¤Ï¡Ö¥Û¡¼¥ë( ·ê )¡× (ʪÍý¥Ç¥£¥¹¥¯¥Ö¥í¥Ã¥¯¤òÀêÍ­¤·¤Ê¤¤¥¼¥í¥Ð¥¤¥È¤ÎϢ³) ¤ò´Þ¤à¤â¤Î¤Ç¤¢¤ë¡£ read ¥·¥¹¥Æ¥à¥³¡¼¥ë¤Ï¤½¤ì¤é¤Î¥Õ¥¡¥¤¥ë¤ò¥¼¥í¤È¤·¤ÆÆɤ߹þ¤à¡£ ¿¤¯¤Î¥Ð¥¤¥Ê¥ê¥Õ¥¡¥¤¥ë¤Ë¤Ï¥¼¥í¥Ð¥¤¥È¤ÎʤӤ¬¤¿¤¯¤µ¤ó´Þ¤Þ¤ì¤Æ¤¤¤ë¤Î¤Ç¡¢ ¤³¤Î¥ª¥×¥·¥ç¥ó¤Ë¤è¤ê¡¢¤«¤Ê¤ê¤Î¥Ç¥£¥¹¥¯ÍÆÎ̤òÀáÌó¤·¡¢ ¥¹¥Ô¡¼¥É¤ò¾å¤²¤ë¤³¤È¤¬¤Ç¤­¤ë¡£ ¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï `cp' ¤ÏÂ绨ÇĤÊȯ¸«Åª¼êË¡¤Ç ÆþÎϤµ¤ì¤¿¥³¥Ô¡¼¸µ¥Õ¥¡¥¤¥ë¤«¤é¥Û¡¼¥ë¤ò¸¡ÃΤ·¡¢ Âбþ¤¹¤ë½ÐÎÏ¥Õ¥¡¥¤¥ë¤â¥¹¥Ñ¡¼¥¹¤Ë¤¹¤ë¡£

WHEN ¤ÎÃͤϲ¼¤Î¤¤¤º¤ì¤«¤Ç¤¢¤ë¡§
auto
¥Ç¥Õ¥©¥ë¥È¤ÎÆ°ºî¡§ÆþÎÏ¥Õ¥¡¥¤¥ë¤¬¥¹¥Ñ¡¼¥¹¤Î¤È¤­¡¢ ½ÐÎÏ¥Õ¥¡¥¤¥ë¤â¥¹¥Ñ¡¼¥¹¤Ë¤¹¤ë¡£
always
¾ï¤Ë½ÐÎÏ¥Õ¥¡¥¤¥ë¤ò¥¹¥Ñ¡¼¥¹¤Ë¤¹¤ë¡£¤³¤Î¥ª¥×¥·¥ç¥ó¤ÏÆþÎÏ¥Õ¥¡¥¤¥ë¤¬ ¥¹¥Ñ¡¼¥¹¤Ê¥Õ¥¡¥¤¥ë¤ò¥µ¥Ý¡¼¥È¤·¤Ê¤¤¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¾å¤Ë¤¢¤ë¤¬¡¢ ½ÐÎÏ¥Õ¥¡¥¤¥ë¤Ï¥¹¥Ñ¡¼¥¹¤Ê¥Õ¥¡¥¤¥ë¤ò¥µ¥Ý¡¼¥È¤¹¤ë¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¾å¤Ë ÃÖ¤«¤ì¤ë¾ì¹ç¤ËÍ­ÍѤǤ¢¤ë¡£
never
½ÐÎÏ¥Õ¥¡¥¤¥ë¤ò¥¹¥Ñ¡¼¥¹¤Ë¤·¤Ê¤¤¡£ ¤³¤Î¥ª¥×¥·¥ç¥ó¤ÎÍ­°ÕµÁ¤ÊÍøÍÑË¡¤ò¸«ÉÕ¤±¤¿¤éÉ®¼Ô¤Ë¶µ¤¨¤Æ¤Û¤·¤¤¡£
--strip-trailing-slashes
»ØÄꤵ¤ì¤¿Á´¤Æ¤Î°ú¤­¿ô¤Ë¤Ä¤¤¤Æ¡¢ ¸å¤í¤ËÉÕ¤¤¤Æ¤¤¤ë¥¹¥é¥Ã¥·¥å¤ò¼è¤ê½ü¤¯¡£ ¤³¤ì¤Ï `mkdir a; ln -s a la; mv la/ b' ¤Î¤è¤¦¤Ê¾ì¹ç¤ËÌòΩ¤Ä¡£ ¤³¤Î¾ì¹ç POSIX ¤ÎÌ¿Îá¤Ç¤Ï¡¢ mv ¤Ï¥·¥ó¥Ü¥ê¥Ã¥¯¥ê¥ó¥¯ `la' ¤Ç¤Ï¤Ê¤¯ ¥Ç¥£¥ì¥¯¥È¥ê `a' ¤ò¼ÂºÝ¤Ë°ÜÆ°¤·¤Æ¤·¤Þ¤¦¡£
-s, --symbolic-link
¥Ç¥£¥ì¥¯¥È¥ê°Ê³°¤Î¥Õ¥¡¥¤¥ë¤ËÂФ·¤Æ¡¢¥³¥Ô¡¼¤¹¤ë¤«¤ï¤ê¤Ë ¥·¥ó¥Ü¥ê¥Ã¥¯¥ê¥ó¥¯¤òºî¤ë¡£¥·¥ó¥Ü¥ê¥Ã¥¯¥ê¥ó¥¯¥Õ¥¡¥¤¥ë¤ò ¥«¥ì¥ó¥È¥Ç¥£¥ì¥¯¥È¥ê¤Ëºî¤ë¾ì¹ç¤ò½ü¤­¡¢ ¥³¥Ô¡¼¸µ¥Õ¥¡¥¤¥ë̾¤Ï ('/' ¤Ç»Ï¤Þ¤ë) ÀäÂХѥ¹¤Ç¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£ ¥·¥ó¥Ü¥ê¥Ã¥¯¥ê¥ó¥¯¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Ê¤¤¥·¥¹¥Æ¥à¤Ç¤Ï¡¢ ¤³¤Î¥ª¥×¥·¥ç¥ó¤Ïñ¤Ë¥¨¥é¡¼¥á¥Ã¥»¡¼¥¸¤ò½ÐÎϤ¹¤ë¤À¤±¤Ç¤¢¤ë¡£
--target-directory=DIR
¥³¥Ô¡¼Àè¥Ç¥£¥ì¥¯¥È¥ê¤ò¡¢¥³¥Þ¥ó¥É¥é¥¤¥ó¤ÎºÇ¸å¤Î°ú¤­¿ô¤Ç¤Ï¤Ê¤¯¡¢ ¥ª¥×¥·¥ç¥ó¤Ç»ØÄꤹ¤ë¡£ xargs(1) ¤È°ì½ï¤ËÍѤ¤¤ë¤ÈÊØÍø¡£
-u, --update
¥Ç¥£¥ì¥¯¥È¥ê°Ê³°¤Î¥Õ¥¡¥¤¥ë¤Î¥³¥Ô¡¼¤Ç¡¢ ¥³¥Ô¡¼Àè¥Õ¥¡¥¤¥ë¤¬´û¤Ë¸ºß¤·¡¢ ½¤Àµ»þ¹ï¤¬¥³¥Ô¡¼¸µ¤ÈƱ¤¸¤«¤è¤ê¿·¤·¤¤¾ì¹ç¡¢ ¥³¥Ô¡¼¤ò¹Ô¤ï¤Ê¤¤¡£
-v, --verbose
¥³¥Ô¡¼¤¹¤ëÁ°¤Ë¤½¤ì¤¾¤ì¤Î¥Õ¥¡¥¤¥ë̾¤ò½ÐÎϤ¹¤ë¡£ ¤Þ¤¿Ì¾Á°¤òÊѹ¹¤¹¤ëºÝ¤Î¥Ð¥Ã¥¯¥¢¥Ã¥×¥Õ¥¡¥¤¥ë̾¤âɽ¼¨¤¹¤ë¡£
-x, --one-file-system
¥³¥Ô¡¼¤ò»Ï¤á¤¿¥Ç¥£¥ì¥¯¥È¥ê¤È °Û¤Ê¤ë¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¾å¤Ë¤¢¤ë¥µ¥Ö¥Ç¥£¥ì¥¯¥È¥ê¤ò¥³¥Ô¡¼¤ò¤·¤Ê¤¤¡£ ¥Þ¥¦¥ó¥È¥Ý¥¤¥ó¥È¤ÏƱ¤¸¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¾å¤Ë¤¢¤ë¤Î¤Ç¥³¥Ô¡¼¤µ¤ì¤ë¡£

GNU ¥Ð¥Ã¥¯¥¢¥Ã¥×¥ª¥×¥·¥ç¥ó

GNU ÈÇ¤Î¥×¥í¥°¥é¥à cp, mv, ln, install, patch ¤Ï¡¢¾å½ñ¤­¡¢½¤Àµ¡¢ºï½ü¤È¤¤¤Ã¤¿¾ì¹ç¤Ë¡¢»Ø¼¨¤¹¤ì¤Ð¥Õ¥¡¥¤¥ë¤Î ¥Ð¥Ã¥¯¥¢¥Ã¥×¤òºîÀ®¤¹¤ë¡£ ¥Ð¥Ã¥¯¥¢¥Ã¥×¥Õ¥¡¥¤¥ë¤òɬÍפȤ¹¤ë¾ì¹ç¤Ï -b ¥ª¥×¥·¥ç¥ó¤Ç»ØÄꤹ¤ë¡£ ¤É¤Î¤è¤¦¤Ê̾Á°¤Ë¤¹¤ë¤«¤Ï --backup ¥ª¥×¥·¥ç¥ó¤Ç»ØÄꤹ¤ë¡£ ¥Ð¥Ã¥¯¥¢¥Ã¥×¥Õ¥¡¥¤¥ë¤Î̾Á°¤ò¡¢¥Õ¥¡¥¤¥ë̾¤Ë³ÈÄ¥»Ò¤òÄɲ乤ë·Á¤Ç Í¿¤¨¤ë¤è¤¦¤Ë¤·¤¿¤¤¾ì¹ç¡¢ ¤³¤Î³ÈÄ¥»Ò¤ò -S ¥ª¥×¥·¥ç¥ó¤Ç»Ø¼¨¤¹¤ë¡£
-b, --backup[=METHOD]
¾å½ñ¤­¤â¤·¤¯¤Ïºï½ü¤ÎɬÍפ¬¤¢¤ë¾ì¹ç¤Ë¤Ï¡¢ ¥Õ¥¡¥¤¥ë¤Î¥Ð¥Ã¥¯¥¢¥Ã¥×¤òºîÀ®¤¹¤ë¡£ -b ¤Ï°ú¤­¿ô¤ò¼è¤é¤Ê¤¤ÅÀ¤ËÃí°Õ¤¹¤ë¤³¤È¡£
-S SUFFIX, --suffix=SUFFIX
SUFFIX ¤ò¥Ð¥Ã¥¯¥¢¥Ã¥×¥Õ¥¡¥¤¥ë¤½¤ì¤¾¤ì¤ËÉÕ¤±²Ã¤¨¤ë¡£ ¤³¤Î¥ª¥×¥·¥ç¥ó¤¬»ØÄꤵ¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç¡¢´Ä¶­ÊÑ¿ô SIMPLE_BACKUP_SUFFIX ¤ËÀßÄꤵ¤ì¤Æ¤¤¤ëÃͤ¬»È¤ï¤ì¤ë¡£ SIMPLE_BACKUP_SUFFIX ¤¬ÀßÄꤵ¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç¤Îɸ½àÃÍ¤Ï `~' ¤Ç¤¢¤ë¡£
-V METHOD, --version-control=METHOD
¥Ð¥Ã¥¯¥¢¥Ã¥×¥Õ¥¡¥¤¥ë¤Î̿̾ÊýË¡¤ò»ØÄꤹ¤ë¡£ °ú¤­¿ô METHOD ¤Ë¤Ï¡¢`numbered' (¤Þ¤¿¤Ï `t')¡¢`existing' (¤Þ¤¿¤Ï `nil')¡¢ `never' (¤Þ¤¿¤Ï `simple') ¤ò»ØÄê¤Ç¤­¤ë¡£ ¤³¤Î¥ª¥×¥·¥ç¥ó¤¬»ØÄꤵ¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç¡¢´Ä¶­ÊÑ¿ô VERSION_CONTROL ¤ÎÃͤ¬»È¤ï¤ì¤ë¡£ VERSION_CONTROL ¤¬ÀßÄꤵ¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç¤Îɸ½àÃÍ¤Ï `existing' ¤Ç¤¢¤ë¡£
¤³¤Î¥ª¥×¥·¥ç¥ó¤Ï Emacs ÊÑ¿ô¤Î `version-control' ¤ËÂбþ¤·¤Æ¤¤¤ë¡£ Í­¸ú¤Ê METHOD ¤Ï (¾¤È½ÅÊ£¤·¤Ê¤¤Ã»½Ì·Á¤¬»È¤¨¤ë):
t, numbered
¾ï¤ËÈÖ¹æ¤Î³ÈÄ¥»Ò¤ò»ý¤Ä¥Ð¥Ã¥¯¥¢¥Ã¥×¤¬ºî¤é¤ì¤ë¡£
nil, existing
ÈÖ¹æ¤Î³ÈÄ¥»Ò¤ò»ý¤Ä¥Ð¥Ã¥¯¥¢¥Ã¥×¤¬¤¹¤Ç¤Ë¤¢¤ë¾ì¹ç¤Ë¤Ï ÈÖ¹æ¤Î³ÈÄ¥»Ò¤ò»ý¤Ä¥Ð¥Ã¥¯¥¢¥Ã¥×¤ò¡¢ ¤½¤¦¤Ç¤Ê¤¤¾ì¹ç¤Ë¤Ïñ½ã¤Ê¥Ð¥Ã¥¯¥¢¥Ã¥×¤òºîÀ®¤¹¤ë¡£
never, simple
¾ï¤Ëñ½ã¤Ê¥Ð¥Ã¥¯¥¢¥Ã¥×¤¬ºî¤é¤ì¤ë¡£

¤³¤Î¥ª¥×¥·¥ç¥ó¤Ï¿ä¾©¤µ¤ì¤Ê¤¤¡£ Âå¤ê¤Ë --backup=METHOD ¤ò»È¤¦¤³¤È¡£

GNU ɸ½à¥ª¥×¥·¥ç¥ó

--help
ɸ½à½ÐÎϤ˻ÈÍÑÊýË¡¤Î¥á¥Ã¥»¡¼¥¸¤ò½ÐÎϤ·¤ÆÀµ¾ï½ªÎ»¤¹¤ë¡£
--version
ɸ½à½ÐÎϤ˥С¼¥¸¥ç¥ó¾ðÊó¤ò½ÐÎϤ·¤ÆÀµ¾ï½ªÎ»¤¹¤ë¡£
--
¥ª¥×¥·¥ç¥ó¥ê¥¹¥È¤Î½ª¤ê¤ò¼¨¤¹¡£

´Ä¶­ÊÑ¿ô

ÊÑ¿ô LANG, LC_ALL, LC_CTYPE, LC_MESSAGES ¤¬Ä̾ï¤Î°ÕÌ£¤ò»ý¤Ä¡£ GNU ÈǤǤϡ¢ÊÑ¿ô SIMPLE_BACKUP_SUFFIX ¤È VERSION_CONTROL ¤¬ ¥Ð¥Ã¥¯¥¢¥Ã¥×¥Õ¥¡¥¤¥ë¤Î̿̾ˡ¤ò¾å¤ÇÀâÌÀ¤·¤¿ÊýË¡¤Ç´ÉÍý¤¹¤ë¡£

½àµò

POSIX 1003.2

Ãí°Õ

¤³¤Î¥Ú¡¼¥¸¤Ï fileutils-4.1 ¥Ñ¥Ã¥±¡¼¥¸¤Î cp ¥³¥Þ¥ó¥É¤Ë¤Ä¤¤¤ÆÀâÌÀ¤·¤¿¤â¤Î¤Ç¤¢¤ë; ¤½¤Î¾¤Î¥Ð¡¼¥¸¥ç¥ó¤Ç¤Ï¾¯¤·°ã¤¤¤¬¤¢¤ë¤«¤â¤·¤ì¤Ê¤¤¡£ ½¤Àµ¤äÄÉ²Ã¤Ï aeb@cwi.nl, aw@mail1.bet1.puv.fi, ragnar@ragnar-hojland.com °¸¤Ë¥á¡¼¥ë¤ÇÏ¢Íí¤·¤Æ¤¯¤À¤µ¤¤¡£ ¥×¥í¥°¥é¥à¤Î¥Ð¥°¤Ë¤Ä¤¤¤Æ¤Ï bug-fileutils@gnu.org ¤ØÊó¹ð¤·¤Æ¤¯¤À¤µ¤¤¡£