命令test -x在ubuntu中做什么? [英] what does command test -x do in ubuntu?

查看:128
本文介绍了命令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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆