Answers for "bash check if executable exists"

0

check if command exists bash

command -v <the_command>
Posted by: Guest on August-27-2021
0

test if file is executable bash

if [ -x file ]; then
  ./file
else
  echo "File is not executable"
fi
Posted by: Guest on November-02-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language