1
SErHo 2013-01-04 20:42:17 +08:00
man cp 中有讲解。就是对非目录文件的处理差别。
|
2
adeba 2013-01-04 20:52:37 +08:00
在Linux,GNU和BusyBox的cp-r和-R的实现是相同的。
More reference: http://unix.stackexchange.com/questions/18712/difference-between-cp-r-and-cp-r-copy-command |
3
hewigovens 2013-01-04 20:52:54 +08:00
推荐用-R, 能够正确处理符号链接等, -r是为了兼容之前版本而保留的. 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.
|
4
hewigovens 2013-01-04 20:53:32 +08:00
忘记说了, 在mac下man的cp
|