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.