what does command test -x do in ubuntu?

后端 未结 2 1877
天命终不由人
天命终不由人 2021-01-29 10:20

what does test -x from /etc/cron.daily/logrotate do?

test -x /usr/sbin/logrotate || exit 0
/usr/sbin/logrotate /etc/logrotate.conf
<
2条回答
  •  梦如初夏
    2021-01-29 10:39

    Type man test in Google and it will find you a manual page that says this:

    '-x file'
         True if file is executable.
    

提交回复
热议问题