how to add path to environment variable ubuntu code example
Example: how to add path in ubuntu
# Edit .bashrc, or .zshrc in your home directory and add the following line:
export PATH="/path/to/dir:$PATH"
$ source ~/.bashrc
source ~/.zshrc
# Edit .bashrc, or .zshrc in your home directory and add the following line:
export PATH="/path/to/dir:$PATH"
$ source ~/.bashrc
source ~/.zshrc