bash -x command

后端 未结 2 838
梦谈多话
梦谈多话 2020-12-09 01:53

I saw a client doing $bash -x command to see if the file is executable (or ksh -x command, etc.) like the -x in the if st

2条回答
  •  既然无缘
    2020-12-09 02:36

    • bash -x runs the script with tracing of each command executed

    • test -x tests whether has execute permissions for the current user.

    It appears that you have muddled these two.

提交回复
热议问题