Horje
check if a command exists Code Example
check if a command exists
# To find out if a given command exists:

if command -v given-command > /dev/null 2>&1; then
  echo given-command is available
else
  echo given-command is not available
fi




Shell

Related
mac zip a folder without compression Code Example mac zip a folder without compression Code Example
check wordpress version cli Code Example check wordpress version cli Code Example
linux zip a folder without compression Code Example linux zip a folder without compression Code Example
bin/magento command not found Code Example bin/magento command not found Code Example
git tag Code Example git tag Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
11