I need to add a directory to the path for non-login shells on a Red Hat Server.
ssh user@server echo \$PATH
How can I add a directory to this path. I tried putting
~/.bashrc but in both cases
ssh user@server echo \$PATH gives the same result as above. So where is that magic place to add
$PATH for non-login shells?