$path linux

C++
export PATH=$PATH:/place/with/the/fileexport PATH="/path/to/dir:$PATH"
echo $PATHecho $0
Source

Also in C++: