This question has been asked before online but with conflicting answers so I am looking for clarification.
What is the best way to add $PATH variables (below) in debian so that they are persitent for every user ?
I have used the below commands when logged in as root, which works fine but obviously when I reboot these are lost.
Another post I read suggested to paste the below lines into .bashrc
or .profile
but assume this will only work for the logged in user ? If so how would I set the below for all users ?
export PATH=$PATH:/etc/xcompile/armv4l/bin
export PATH=$PATH:/etc/xcompile/armv5l/bin
export PATH=$PATH:/etc/xcompile/armv6l/bin
export PATH=$PATH:/etc/xcompile/i586/bin
export PATH=$PATH:/etc/xcompile/m68k/bin
export PATH=$PATH:/etc/xcompile/mips/bin
export PATH=$PATH:/etc/xcompile/mipsel/bin
export PATH=$PATH:/etc/xcompile/powerpc/bin
export PATH=$PATH:/etc/xcompile/powerpc-440fp/bin
Golang
export PATH=$PATH:/usr/local/go/bin
export GOPATH=$HOME/Documents/go