命令 test -x 在 ubuntu 中做什么?

2024-04-03

什么是test -x从 /etc/cron.daily/logrotate 做什么?

test -x /usr/sbin/logrotate || exit 0
/usr/sbin/logrotate /etc/logrotate.conf

它是否测试是否已经执行文件 /usr/sbin/logrotate?


test -x /path/to/file

它检查是否file exists and is 可执行文件按当前用户

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

命令 test -x 在 ubuntu 中做什么? 的相关文章

随机推荐