How is PATH variable set in Linux?
The variable $PATH is set by your shell every time it launches, but you can set it so that it always includes your new path with every new shell you open. The exact way to do this depends on which shell you’re running. That’s the "echo" command followed by a dollar sign ($) and a zero.