how to add a directory to path in linux

C++
export PATH=$PATH:/place/with/the/fileexport PATH="$HOME/bin:$PATH"
nano ~/.bashrc
Source

Also in C++: