get current path unix

C++
#Will generate the current directory
pwd
Source

Also in C++: