From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: text/plain MIME-Version: 1.0 (NeXT Mail 3.3ciscupdate v148.2.1) From: arisawa@ar.aichi-u.ac.jp To: 9fans@cse.psu.edu Subject: Re: [9fans] dumb question References: Message-Id: <20020626084525.2B9F019981@mail.cse.psu.edu> Date: Wed, 26 Jun 2002 17:45:18 +0900 Topicbox-Message-UUID: b992be7c-eaca-11e9-9e20-41e7f4b1d025 Hello, >ok so im totally stumped on this: how do i copy a directory? >cp can copy files only, but has no nifty recursive option, >what do i do? thanks > Andrew look at http://plan9.aichi-u.ac.jp/netlib/cmd/cpdir/ The following is a part of README file. Kenji Arisawa E-mail: arisawa@aichi-u.ac.jp Usage: cpdir [-vugRm] [-l list] source destination [path ...] Options and arguments: -v: verbose -u: copy owner info -g: copy group info -R: remove redundant files and directories -m: merge -l list: path list to be processed. path list must be a path per line. source: source dir from which copy is made. destination: destination dir in which copy is made. path ... : pathes in source to be processed. Function: `cpdir' makes effort to make a copy of source/path in destination/path. `cpdir' copies only those files that are out of date. `cpdir' tries to preserve the following info.: - contents (judged from modification time) - modification time - permissions - group (under -g option) - owner if possible. (under -u option) and under -R option, `cpdir' removes files and directories in destination/path that are non-existent in source/path.