How to make permanent changes to the PATH on Ubuntu 20.04

Open a terminal

$ vim ~/.profile

Add this line at the end of the file (press the ‘i’ key of your keyboard in vim to be in insert mode):

export PATH=$PATH:/your/path

Escape the insert mode, then save and quit ( :w and :q).

$ source ~/.profile

Restart your computer.