Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

bash check if executable

file='test.sh'

if [ -x "$file" ]; then
  echo "This file is executable: $file"
fi
 
PREVIOUS NEXT
Tagged: #bash #check #executable
ADD COMMENT
Topic
Name
5+9 =