Provided by: manpages-zh_1.5.2-1_all bug

NAME

       cp -

       cp []
       cp [] ...

       POSIX : [-fipRr]

       GNU  ():  [-abdfilprsuvxPR] [-S SUFFIX] [-V {numbered,existing,simple}]
       [--sparse=WHEN] [--help] [--version] [--]

       cp ().  , .

        cp  ().  ..  ,,, .

       (:/b,'cp -r /a /b'/a/b/b/a.  /a/x/b/b/a/x./b,/a/b  /a/x/b/b/a/x./b,/a/b
       /a/x/b/x.)

       / umask(-p),( ,Ored, S_IRWXU(0700),.

       ().                   ,                 `open(path,O_WRONLY|O_TRUNC)'.,
       `open(path,O_WRONLY|O_CREAT,mode)'.  ,,-f, cp ,.

POSIX

       POSIX

       -f     ,.(.)

       -i      (,..)

       -p      setuid  setgid  setuid  setgid

       -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

       -i, --interactive

       -l, --link

       -p, --preserve

       -P, --parents
               cp , :
              cp --parents a/b/c existing_dir
               `a/b/c'  texisting_dir()/a/b/c',

       -r     ,(, FIFOs).  , .,,cp', FIFO/dev/tty,(.  (), -r-R, ,)

       -R, --recursive
              ,( -r ).

       --sparse=WHEN
              file'`holes'-0, ;0read'.  0, ., cp holes .

              WHEN

              auto   :,.

              always .  , ().

              never  .  ,.

       -s, --symbolic-link
              .  (`/'),.  .

       -u, --update
              ,, ().

       -v, --verbose
              .

       -x, --one-file-system
              .

GNU

       GNU cp, mv, ln, install patch ,,().  -b.-V.  ,-S .

       -b, --backup
              .

       -S SUFFIX, --suffix=SUFFIX
               SUFFIX()  .   ,  SIMPLE_BACKUP_SUFFIX  .   SIMPLE_BACKUP_SUFFIX
              ,`~'.

       -V METHOD, --version-control=METHOD
              .   METHOD   `numbered'  (or  `t'),  `existing'  (or  `nil'), or
              `never' (or `simple').  , VERSION_CONTROL .   VERSION_CONTROL  ,
              `existing'.

              Emacs  `version-control'.  METHODs ():

              t, numbered

              nil, existing
                     Make  numbered  backups  of files that already have them,
                     simple backups of the others.

              never, simple
                     .

GNU

       --help .

       --version
              .

       --     .

()

       LANG,LC_ALL,LC_COLLATE,LC_CTYPELC_MESSAGES.
       GNU,SIMPLE_BACKUP_SUFFIXVERSION_CONTROL ..

       POSIX 1003.2

        cp FILEUTils-4.0; .aeb@cwi.nl.  fileutils-bugs@gnu.ai.mit.edu.

[]

       Surran <email>

[]

       2000/10/19

linuxman:

       http://cmpp.linuxforum.net