catalina.sh中的-r是什么意思?

发布于 2024-12-16 00:24:39 字数 143 浏览 3 评论 0原文

在 catalina.sh 中,行:

if [ -r "$CATALINA_BASE"/conf/logging.properties ]; 

-r 是什么意思?是缩写吗?还可以是哪些其他符号? 谢谢。

In catalina.sh is row:

if [ -r "$CATALINA_BASE"/conf/logging.properties ]; 

What does it mean -r ? Does it abbreviation? What other symbols can be?
Thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

在梵高的星空下 2024-12-23 00:24:39

您要查找的文档位于 man test 中:

-r 路径名
如果路径名解析为存在的文件并且将授予从该文件读取的权限,则为 true,如 文件读取、写入和创建。如果路径名无法解析,或者路径名解析为不会授予从该文件读取的权限的文件,则返回 False。

The documentation you are looking for is in man test:

-r pathname
True if pathname resolves to a file that exists and for which permission to read from the file will be granted, as defined in File Read, Write, and Creation. False if pathname cannot be resolved, or if pathname resolves to a file for which permission to read from the file will not be granted.

ι不睡觉的鱼゛ 2024-12-23 00:24:39

查看此文档。 -r 表示文件有读权限。

Check out this document. -r means file has read permission.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文