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

标签 bash tomcat catalina

在 catalina.sh 中是行:

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

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

最佳答案

您要查找的文档在 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.

关于bash - catalina.sh中的-r是什么意思?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8120343/

相关文章:

linux - 为puppet中的用户设置默认密码管理

bash - csh 中 "setenv"的范围与 bash 中的 "export"

java - 将正确的类加载器设置到 tomcat 容器内的 spring 上下文中

jmx - 在 tomcat7-maven-plugin 上启用 jmx

tomcat - 更改 tomcat 的 catalina.pid 的位置

linux - 禁用挂起脚本

bash - 如何从字符串中提取子字符串

tomcat - tomcat webapp 服务器中的 ‘catalina.out’ 和 ‘catalina.YYYY-MM-DD.log’ 日志文件有什么区别?

tomcat - 从 WEB-INF/lib/*.jar!/META-INF/resources 间歇加载

java - Tomcat的 "Catalina service"和 "Servlet Engine"之间的区别