标签: man

rsync “无法删除非空目录”错误,即使使用 --force 选项

运行此命令时:

$ 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)

rsync gentoo man deleting

31
推荐指数
2
解决办法
3万
查看次数

退出后如何保留我从男人那里阅读的内容?

所以我们man whatever用来获取有关whatever命令的用法和其他信息,当找到信息的相关部分时,我想退出man命令并在屏幕上留下信息。所以我可以用上面的裁判输入下一个命令。但是该man命令会退出整个屏幕以恢复类似于 的旧屏幕vim。有没有办法实现这一目标?

terminal man

25
推荐指数
2
解决办法
2666
查看次数

如何跳转到手册页中的特定标题?

为此,我在 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)

command-line-interface man

15
推荐指数
2
解决办法
5527
查看次数

将信息页转换为手册页

我被邀请以较少的意见重新发布这个问题,所以如果它看起来很熟悉,那就是原因。

如何将信息页转换为手册页?我曾经有一个 shell one liner,它可以将整个信息文档展平成一个平面页面,适合用 less 导航,但我似乎已经失去了它。如果您知道如何执行此操作,请分享。:)

谢谢!

man

6
推荐指数
1
解决办法
794
查看次数

为什么 Unix 应用程序用 man 括号中的数字记录?

当我尝试获取有关 Unix 命令的帮助时,我得到了 saytar(1)lsof(8).

为什么括号内有一个数字,它到底指的是什么?

linux unix man

6
推荐指数
2
解决办法
305
查看次数

标签 统计

man ×5

command-line-interface ×1

deleting ×1

gentoo ×1

linux ×1

rsync ×1

terminal ×1

unix ×1