命令 test -x 在 ubuntu 中有什么作用? [英] what does command test -x do in ubuntu?
本文介绍了命令 test -x 在 ubuntu 中有什么作用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
test -x
来自什么/etc/cron.daily/logrotate 做什么?
what does test -x
from
/etc/cron.daily/logrotate do?
test -x /usr/sbin/logrotate || exit 0
/usr/sbin/logrotate /etc/logrotate.conf
它是否测试是否已经在执行文件/usr/sbin/logrotate?
Does it test if already executing file /usr/sbin/logrotate?
推荐答案
test -x /path/to/file
它检查 file
存在 以及当前用户是否可执行
It checks if file
exists and is executable by current user
这篇关于命令 test -x 在 ubuntu 中有什么作用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文