🏠 | 💻 | Linux | Bash |

Errors Bash

↓ Contents ↓
!#/bin/bash: not found
VAR: command not found

1: !#/bin/bash: not found

Error

1: !#/bin/bash: not found

Occurs if you mix up ! and # in the first line of the script

Write correctly

#!/bin/bash

VAR: command not found

Error

VAR: command not found

Occurs if you confuse when assigning a variable value to put a space at the equal sign

Write correctly

VAR='https://eth1.ru'

Wrong to write

VAR = 'https://eth1.ru'

There should be no spaces around =.

↓ Статьи о Bash ↓
Bash
Bash Scripting
-eq -gt …: Операторы сравнения
if else: Условные операторы
Цикл while
date
Переход на новую строку
Арифметические операции
Передать файл или пароль по SFTP в Bash скрипте
Contacts and cooperation:
I recommend our hosting beget.ru
Write to info@urn.su, info@aredel.com if you:
1. Want to write an article for our site or translate an article into your native language.
2. Want to place thematically relevant ads on the site.
3. Ads on my site pass maximum censorship. If you see an ad block unsuitable for school-age children, shocking or misleading - please contact us by e-mail
4. Found a mistake, inaccuracy, bug, etc. on the site. ... .......
5. Articles can be shared on social media by clicking a network icon: