运行此命令时:
$ sudo rsync -r --delete --force --checksum --exclude=uploads /data/prep/* /data/app/
Run Code Online (Sandbox Code Playgroud)
我得到以下输出:
cannot delete non-empty directory: html/js/ckeditor/_source/plugins/uicolor/yui
cannot delete non-empty directory: html/js/ckeditor/_source/plugins/uicolor/yui
cannot delete non-empty directory: html/js/ckeditor/_source/plugins/uicolor
cannot delete non-empty directory: html/js/ckeditor/_source/plugins/uicolor
cannot delete non-empty directory: html/js/ckeditor/_source/plugins
cannot delete non-empty directory: html/js/ckeditor/_source/plugins
cannot delete non-empty directory: html/js/ckeditor/_source
cannot delete non-empty directory: html/js/ckeditor/_samples
cannot delete non-empty directory: html/js/ckeditor/plugins/uicolor/yui
cannot delete non-empty directory: html/js/ckeditor/plugins/uicolor/yui
cannot delete non-empty directory: html/js/ckeditor/plugins/uicolor
Run Code Online (Sandbox Code Playgroud)
通过阅读man rsync
我的印象,该--force
选项会告诉 rsync 删除这些非空目录,这是预期的结果。
参考:
--force force deletion of …
Run Code Online (Sandbox Code Playgroud) 所以我们man whatever
用来获取有关whatever
命令的用法和其他信息,当找到信息的相关部分时,我想退出man
命令并在屏幕上留下信息。所以我可以用上面的裁判输入下一个命令。但是该man
命令会退出整个屏幕以恢复类似于 的旧屏幕vim
。有没有办法实现这一目标?
为此,我在 vim 中设置了文件类型。我希望帮助程序是man
. 这当然行不通。例如,对于ssh_config
的手册页,如果我在一个单词上,比如说ServerAliveCountMax
,我会收到一个错误,因为没有手册页ServerAliveCountMax
- 它在ssh_config
的手册页中。
从命令行,有没有办法跳转到字符串或在里面运行某种类型的命令man
?随便怎么样都info
可以带我到Miscellaneous
的部分screen
的信息页面:
info screen Miscellaneous
Run Code Online (Sandbox Code Playgroud)
这可能man
吗?即使运行搜索也会服务......
对于 OSX/*BSD with /usr/bin/man
,这有效:
man -P 'less -p PATTERN' ssh_config
Run Code Online (Sandbox Code Playgroud) 我被邀请以较少的意见重新发布这个问题,所以如果它看起来很熟悉,那就是原因。
如何将信息页转换为手册页?我曾经有一个 shell one liner,它可以将整个信息文档展平成一个平面页面,适合用 less 导航,但我似乎已经失去了它。如果您知道如何执行此操作,请分享。:)
谢谢!
当我尝试获取有关 Unix 命令的帮助时,我得到了 saytar(1)
或lsof(8)
.
为什么括号内有一个数字,它到底指的是什么?