PATH system variable in Linux

If you need to configure PATH in Windows - please visit this page

Check PATH content

echo $PATH

/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games

Add /home/andrei/.local/bin to PATH

export PATH="/home/andrei/.local/bin:$PATH"

Check

echo $PATH

/home/andrei/home/andrei/.local/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games

.bashrc

Change directory

cd ~

Most likely, you can find .bashrc file there

Edit it with the vi editor

vi .bashrc

PATH="/your_folder:${PATH}" export PATH

Please note, that there is no space after PATH, as well as after = sign

:${PATH} means, that you are adding your_folder directory to the existing PATH without overwriting.

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: