PATH system variable in Linux

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

Check PATH content

echo $PATH


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

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


echo $PATH



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.

Share in social media: