cp

CP(1L)                                                                  CP(1L)



åå
       cp - ãã¡ã¤ã«ãã³ãã¼ããã

æ¸å¼
       cp [options] source dest
       cp [options] source... directory
       Options:
       [-abdfilprsuvxPR] [-S backup-suffix] [-V {numbered,existing,simple}]
       [--backup] [--no-dereference] [--force] [--interactive] [--one-file-
       system] [--preserve] [--recursive] [--update] [--verbose]
       [--suffix=backup-suffix] [--version-control={numbered,existing,simple}]
       [--archive] [--parents] [--link] [--symbolic-link] [--help] [--version]

説æ
       ãã®ããã¥ã¢ã«ãã¼ã¸ã¯ GNU ãã¼ã¸ã§ã³ã® cp ã«ã¤ãã¦æ¸ãã¦ãããæå¾ã®å¼æ°ããã§ã«å‐
       å¨ãããã£ã¬ã¯ããªãªãã°ã cp ã¯ãã®ãã£ã¬ã¯ããªã«æå®ãããã¡ã¤ã«ãåãååã§ã³ãã¼ããã
       ãããï¼ã¤ã®ãã¡ã¤ã«ãæå®ããå ´åã¯ãæåã®ãã¡ã¤ã«ãï¼ã¤ç®ã®
       ãã¡ã¤ã«ã«ä¸æ¸ããããï¼ã¤ä»¥ä¸ã®ãã¡ã¤ã«ãæå®ããã®ã«ãæå¾ã®å¼æ°
       ããã£ã¬ã¯ããªã§ãªãã¨ã¨ã©ã¼ã¨ãªããããã©ã«ãã§ã¯ãã£ã¬ã¯ããªã® ã³ãã¼ã¯ããªãã

   ãªãã·ã§ã³
       -a, --archive
              åã®ãã¡ã¤ã«ã®æ ¡æ£ã¨ã¢ããªãã¥ã¼ãããªãã¹ãä¿ã£ãã¾ã¾ä¿åããã -dpR ã¨åãã

       -b, --backup
              ä¸æ¸ããããããåé¤ããããã¨ã«ãªããã¡ã¤ã«ã®ããã¯ã¢ãããä½ãã

       -d, --no-dereference
              ã·ã³ããªãã¯ãªã³ã¯ãã³ãã¼ããã¨ãã¯ãã·ã³ããªãã¯ãªã³ã¯ãæãã¦ãã
              ãã¡ã¤ã«ãã³ãã¼ããã®ã§ãªããã·ã³ããªãã¯èªä½ãã³ãã¼ãããã¾ãã
              ãã¼ããªã³ã¯ããããã®å士ãã³ãã¼ããå ´åã¯ããããå士ã¯ã³ãã¼å
              ã§ããã¼ããªã³ã¯ãããã¾ã¾ã«ãªãã

       -f, --force
              ã³ãã¼åã®ãã¡ã¤ã«ãããã°ãããåé¤ãã¦ã³ãã¼ããã

       -i, --interactive
              ä¸æ¸ãããããã¡ã¤ã«ãããã°å¯å¦ãåãåããã¦ããã

       -l, --link
              ã³ãã¼ã®ãããã«ãã¼ããªã³ã¯ãä½ã(ãã ããã£ã¬ã¯ããªä»¥å¤)

       -P, --parents
              æå®ãããã³ãã¼åã®ãã£ã¬ã¯ããªãä»ãã¦ã³ãã¼ããã æå¾ã®å¼æ°ã¯ãã§ã«å‐
              å¨ãããã£ã¬ã¯ããªã§ãªããã°ãªããªãã ãã¨ãã°ã `cp --parents a/b/c
              existing_dir' ã¨ããã³ãã³ã㯠a/b/c ã¨ãããã¡ã¤ã«ã existing_dir/a/b/c
              ã¨ãããã¡ã¤ã«ã«(éã®ãã£ã¬ã¯ããªããªããã°ä½ã£ã¦)ã³ãã¼ããã

       -p, --preserve
              åãã¡ã¤ã«ã®ãªã¼ãã¼ãã°ã«ã¼ãããã¼ããã·ã§ã³ãã¿ã¤ã ã¹ã¿ã³ããä¿æããã

       -r     ãã£ã¬ã¯ããªãå帰çã«ã³ãã¼ãããããã®éããã£ã¬ã¯ããªä»¥å¤ã¯
              å¨ã¦ãã¡ã¤ã«ã¨ãã¦ã³ãã¼ãããã

       -s, --symbolic-link
              ãã£ã¬ã¯ããªä»¥å¤ã®ãã¡ã¤ã«ãã³ãã¼ãããããã«ã·ã³ããªãã¯
              ãªã³ã¯ãä½ããã·ã³ããªãã¯ãªã³ã¯ãã¡ã¤ã«ãã«ã¬ã³ããã£ã¬ã¯ããª
              ã«ä½ãå ´åãé¤ããã³ãã¼åãã¡ã¤ã«åã¯çµ¶å¯¾ãã¹( '/'ã§å§ãã )
              ã§ãªããã°ãªããªãããã®ãªãã·ã§ã³ãä»ããã¨ã·ã³ããªãã¯ãªã³ã¯
              ããµãã¼ããã¦ããªãã·ã¹ãã ã§ã¯ã¨ã©ã¼ã¡ãã»ã¼ã¸ãåºãã

       -u, --update
              ãã§ã«åå¨ããã³ãã¼åãã¡ã¤ã«(ãã£ã¬ã¯ããªãé¤ã)ã®ã¿ã¤ã ã¹ã¿ã³ã
              ãåããæ°ããã¨ãã¯ã³ãã¼ããªãã

       -v, --verbose
              ã³ãã¼ããã¾ãã«ãã®ãã¡ã¤ã«åã表示ããã

       -x, --one-file-system
              ã³ãã¼ããéãéããã¡ã¤ã«ã·ã¹ãã ã®ãµããã£ã¬ã¯ããªã¯ã³ãã¼ããªãã

       -R, --recursive
              ãã£ã¬ã¯ããªãå帰çã«ã³ãã¼ããã

       --help æ¨æºåºåã«ä½¿ãæ¹ã表示ããã

       --version
              æ¨æºåºåã«ãã¼ã¸ã§ã³æå ±ã表示ããã

       -S, --suffix backup-suffix
              ããã¯ã¢ãããã¡ã¤ã«ãä½ãéã®æ·»åã¯ç°å¢å¤æ° SIMPLE_BACKUP_SUFFIX
              ãåç§ãããããã®ãªãã·ã§ã³ã§æå®ãããã®ãåªåããã ã©ã¡ãããªãæ㯠Emacs ã®ããã«
              '~' ã¨ãªãã

       -V, --version-control {numbered,existing,simple}
              ããã¯ã¢ããæ¹æ³ã¯ç°å¢å¤æ° VERSION_CONTROL
              ãåç§ãããããã®ãªãã·ã§ã³ã§æå®ãããã®ãåªåããã VERSION_CONTROL
              ããã®ãªãã·ã§ã³ã¨ãã«ãªããã°ãããã©ã«ãã®ããã¯ã¢ããæ¹æ³ã¯
               `existing' ã§ãããç°å¢å¤æ° VERSION_CONTROL ã®ä¸‐
              身ã¨ãã®ãªãã·ã§ã³ã®å¼æ°ã¯ãGNU Emacs ã® `version-control' ã«
              ä¼¼ã¦ãã(ãã¡ãã®ã»ããããç´°ããè¨å®ã§ãããã¨ã«æ°ã¥ãã ãã)ã
              使ããå¤ã¯ä»¥ä¸(åºå¥ãã¤ãã°çç¥å½¢ã使ãã)ï¼

              `t' or `numbered'
                     常ã«(æ·»åã«)æ°åã使ã£ã¦ããã¯ã¢ãããä½ãã

              `nil' or `existing'
                     ãã§ã«(æ·»åã«)æ°åã使ã£ãããã¯ã¢ãããã¡ã¤ã«ãããã° æ°å‐
                     ã使ã£ã¦ããã¯ã¢ãããã¡ã¤ã«ãä½ãããã以å¤ã®ã¨ãã¯ã
                     åç´ãª(ãã¾ã£ãæ·»åã®)ããã¯ã¢ãããä½ãã

              `never' or `simple'
                     常ã«åç´ãª(ãã¾ã£ãæ·»åã®)ããã¯ã¢ãããä½ãã


訳注
       以ä¸ã«ãã£ã¬ã¯ããªã®ã³ãã¼ä¾ãæ·»ä»ããã
       <<testdir ã«å種㮠file ãä½ããcp ãå種 option ä»ãã§å®è¡ããçµæ>>
       (å·¦ããããã¼ããã·ã§ã³ããã¼ããªã³ã¯ã®æ°ããã¡ã¤ã«å)
       ---------------- begin ----------------------
       testdir:
          drwxr-xr-x   2 directory/
          -rw-r--r--   2 file
          -rw-r--r--   2 hardlinkfile
          prw-r--r--   2 hardlinkpipe|
          prw-r--r--   2 pipe|
          lrwxrwxrwx   2 symlinkfile -> file
          lrwxrwxrwx   1 symlinkpipe -> pipe|

       testdir-R:
          drwxr-xr-x   2 directory/
          -rw-r--r--   1 file
          -rw-r--r--   1 hardlinkfile
          prw-r--r--   1 hardlinkpipe|
          prw-r--r--   1 pipe|
          -rw-r--r--   1 symlinkfile
          prw-r--r--   1 symlinkpipe|

       testdir-a:
          drwxr-xr-x   2 directory/
          -rw-r--r--   2 file
          -rw-r--r--   2 hardlinkfile
          prw-r--r--   2 hardlinkpipe|
          prw-r--r--   2 pipe|
          lrwxrwxrwx   1 symlinkfile -> file
          lrwxrwxrwx   1 symlinkpipe -> pipe|

       testdir-dR:
          drwxr-xr-x   2 directory/
          -rw-r--r--   2 file
          -rw-r--r--   2 hardlinkfile
          prw-r--r--   2 hardlinkpipe|
          prw-r--r--   2 pipe|
          lrwxrwxrwx   1 symlinkfile -> file
          lrwxrwxrwx   1 symlinkpipe -> pipe|

       testdir-dr:
          drwxr-xr-x   2 directory/
          -rw-r--r--   2 file
          -rw-r--r--   2 hardlinkfile
          -rw-r--r--   2 hardlinkpipe
          -rw-r--r--   2 pipe
          lrwxrwxrwx   1 symlinkfile -> file
          lrwxrwxrwx   1 symlinkpipe -> pipe

       testdir-r:
          drwxr-xr-x   2 directory/
          -rw-r--r--   1 file
          -rw-r--r--   1 hardlinkfile
          -rw-r--r--   1 hardlinkpipe
          -rw-r--r--   1 pipe
          -rw-r--r--   1 symlinkfile
          -rw-r--r--   1 symlinkpipe
       ----------------- end ------------------------



FSF                           GNU File Utilities                        CP(1L)