Перевірка чи існує директорія
if [ -d "$DIRECTORY" ]; then # Control will enter here if $DIRECTORY exists. fi
Перевірка чи директорія не існує:
if [ ! -d "$DIRECTORY" ]; then # Control will enter here if $DIRECTORY doesn't exist. fi
Перевірка чи існує директорія
if [ -d "$DIRECTORY" ]; then # Control will enter here if $DIRECTORY exists. fi
Перевірка чи директорія не існує:
if [ ! -d "$DIRECTORY" ]; then # Control will enter here if $DIRECTORY doesn't exist. fi
net stop IIsadmin net stop w3svc net stop msdepsvc
Можна перевірити який PID зайняв порт.
netstat -aon