how to change path in linux

C++
export PATH=$PATH:/place/with/the/fileexport PATH=$PATH:/your/new/path/hereecho $0
Source

Also in C++: