From owner-freebsd-questions@FreeBSD.ORG Sat Mar 20 06:10:14 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9BFB416A4CE for ; Sat, 20 Mar 2004 06:10:14 -0800 (PST) Received: from hotmail.com (bay16-f43.bay16.hotmail.com [65.54.186.93]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6DEE643D2F for ; Sat, 20 Mar 2004 06:10:14 -0800 (PST) (envelope-from weiwuzhang@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Sat, 20 Mar 2004 06:10:14 -0800 Received: from 218.85.100.248 by by16fd.bay16.hotmail.msn.com with HTTP; Sat, 20 Mar 2004 14:10:14 GMT X-Originating-IP: [218.85.100.248] X-Originating-Email: [weiwuzhang@hotmail.com] X-Sender: weiwuzhang@hotmail.com From: "Zhang Weiwu" To: freebsd-questions@freebsd.org Date: Sat, 20 Mar 2004 22:10:14 +0800 Mime-Version: 1.0 Content-Type: text/plain; charset=gb2312; format=flowed Message-ID: X-OriginalArrivalTime: 20 Mar 2004 14:10:14.0406 (UTC) FILETIME=[1088DA60:01C40E85] X-Mailman-Approved-At: Sun, 21 Mar 2004 05:21:11 -0800 Subject: what's the difference of -R and -r? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: zhangweiwu@realss.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Mar 2004 14:10:14 -0000 >From cp(1): Historic versions of the cp utility had a -r option. This implementation supports that option, however, its use is strongly discouraged, as it does not correctly copy special files, symbolic links or fifo's. So I keep using -R rather than -r in cp. But I found other commands like scp(1), ncftp(1), does not support -R; they use -r. Does that mean other tools like scp, ncftp, do not copy special files, follow symbolic links rather than re-create them, do not deal with fifo's correctly? I think it is reasonable, because creating symbolic links cross different hosts is useless, so it is with special files. About fifo files, I don;t know what that is:) _________________________________________________________________ 与联机的朋友进行交流,请使用 MSN Messenger: http://messenger.msn.com/cn