bookmark

bash - Intelligent chmod -x for all executable files that actually cannot be executed - Ask Ubuntu


Описание

find . -type f -executable ( -exec sh -c 'file -b "$1" | grep -q executable' Test {} \; -o -exec chmod a-x {} \; )

тэги

Пользователи данного ресурса

  • @analyst

Комментарии и рецензии