W
W
WhiteBachelor2018-12-20 12:47:10
bash
WhiteBachelor, 2018-12-20 12:47:10

Can't add folder to $PATH. Writes No such file or directory. What's the matter?

I made a customscripts folder in /bin, then tried to add it to $PATH.
Copied an existing one and wrote it to /etc/bash.bashrc

$PATH=/home/king/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/lib/jvm/java-8-oracle/bin:/usr/lib/jvm/java-8-oracle/db/bin:/usr/lib/jvm/java-8-oracle/jre/bin=/home/king/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/lib/jvm/java-8-oracle/bin:/usr/lib/jvm/java-8-oracle/db/bin:/usr/lib/jvm/java-8-oracle/jre/bin:/bin/customscripts

As you can see, there, at the end of /bin/customscripts. The folder exists, I go through it. Just in case, I did:
sudo chmod 777 /bin/customscripts
But every time I restart the terminal, I get:
bash: /home/king/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/lib/jvm/java-8-oracle/bin:/usr/lib/jvm/java-8-oracle/db/bin:/usr/lib/jvm/java-8-oracle/jre/bin=/home/king/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/lib/jvm/java-8-oracle/bin:/usr/lib/jvm/java-8-oracle/db/bin:/usr/lib/jvm/java-8-oracle/jre/bin:/bin/customscripts: Нет такого файла или каталога

What's the matter?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
L
Lynn "Coffee Man", 2018-12-20
@WhiteBachelor

Emnip, when assigning a dollar is not needed.
PATH=...

A
Alexey Cheremisin, 2018-12-20
@leahch

Here is some crap in the form of an equals sign
..../bin=/home/.....

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question