0

I know similar questions have been asked before on here (for example: How to add a directory to the PATH?)

However, I don't know what to add and where to add this.

If I open ~/.profile, it looks like this:

# if running bash
if [ -n "$BASH_VERSION" ]; then
    # include .bashrc if it exists
    if [ -f "$HOME/.bashrc" ]; then
    . "$HOME/.bashrc"
    fi
fi

# set PATH so it includes user's private bin directories
PATH="$HOME/bin:$HOME/.local/bin:$PATH"

Now I want to add a directory to this

/home/newsof/mypackage/TT/V1_1

How can I add this permanently?

Moh
  • 41

1 Answers1

0

You can use /etc/environment to set PATH environment variable, but it does not support variable expansion.

See this Link to get more information about enviroment variables