Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

sh check if program exists

if ! command -v <the_command> &> /dev/null
then
    echo "<the_command> could not be found"
    exit
fi
Comment

PREVIOUS NEXT
Code Example
Shell :: install phpmyadmin mac 
Shell :: decompress tar.gz 
Shell :: how to check my ubuntu version 
Shell :: npm install cli vue 
Shell :: set selinux 
Shell :: zsh: command not found: nslookup 
Shell :: powershell parameter mandatory 
Shell :: autoclicker linux 
Shell :: aws cloudfront invalidation cli 
Shell :: powershell check iso sha256sum 
Shell :: nmcli connect wifi 
Shell :: pscp ubuntu copy folder recursively 
Shell :: kubectl get all the pods 
Shell :: docker exec logs 
Shell :: installing pytesseract in python linux 
Shell :: restart tomcat 
Shell :: aws cli create bucket command 
Shell :: composer 2 install in windows 10 
Shell :: php install apcu 
Shell :: install kubectx 
Shell :: kill process linux using port 
Shell :: how install lxd on lxd ubuntu 18.04 
Shell :: bash folder size 
Shell :: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted 
Shell :: remove openshot ubuntu 
Shell :: command to open linux home folder in windows 
Shell :: ngx translate install 
Shell :: Kali linux Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root? virtualbox 
Shell :: add ssh key to ssh agent 
Shell :: how to change timezone in linux 
ADD CONTENT
Topic
Content
Source link
Name
8+4 =