我正在使用dry-run
(-n) 选项rsync
来比较两个不同系统上的目录。对于标准文件和目录,一切正常。但是,当我使用包含符号链接的目录时,出现错误:
> ls -l /usr/user1/server10s/system/
total 1
lrwxrwxrwx 1 localuser other 37 Jun 19 17:18 nrcalc -> /usr/user2/nrcalc10s
> rsync -n -avrc /usr/user1/server10s/* aisdba@Server:deployment_area/server
building file list ... done
system/
cannot delete non-empty directory: system/nrcalc
could not make way for new symlink: system/nrcalc
template/
template/nrcalc
sent 190 bytes received 24 bytes 38.91 bytes/sec
total size is 330 speedup is 1.54
rsync error: some files could not be transferred (code 23) at main.c(692)
Run Code Online (Sandbox Code Playgroud)
我很高兴它不能删除目录,因为我实际上并没有试图改变任何东西,但为什么它甚至试图改变?顺便说一句,我已经尝试添加-l
(链接)和 …
最初,我的 MANPATH 环境变量没有设置。尽管如此,我可以man
像往常一样使用该命令查看大多数手册页。
man top
找不到那个特定的手册页,但which man
告诉我命令在 /opt/sfw/bin 中。
top
/opt/sfw/man 中有用于和其他命令的手册页。
我设置了export MANPATH=/opt/sfw/man
,现在可以看到带有man top
. 但是man
再也找不到了页面bash
,cp
或任何其他标准的命令。
如何将这个目录添加到用于查找手册页的列表中?
如果重要的话,我正在使用 SunOS 5.10 和 bash 3.0.16。