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

Bash 命令test-x在ubuntu中做什么?,bash,ubuntu,logging,command,Bash,Ubuntu,Logging,Command,test-x从何而来 /etc/cron.daily/logdo test -x /usr/sbin/logrotate || exit 0 /usr/sbin/logrotate /etc/logrotate.conf 它是否测试是否已经在执行文件/usr/sbin/logrotate test -x /path/to/file 它检查当前用户是否存在文件,是否可执行在Google中键入人工测试,它将为您找到一个说明如下内容的手册页面: '-x file' True if fil

test-x从何而来
/etc/cron.daily/logdo

test -x /usr/sbin/logrotate || exit 0
/usr/sbin/logrotate /etc/logrotate.conf
它是否测试是否已经在执行文件/usr/sbin/logrotate

test -x /path/to/file

它检查当前用户是否存在
文件
,是否可执行

在Google中键入
人工测试
,它将为您找到一个说明如下内容的手册页面:

'-x file'
     True if file is executable.