linux show path

C++
readlink -f file.txt #file
readlink -f Downloads #folder$ pwdpwd		//Unix command for showing the path
$PATH  //Enviromental variable for showing the path
Source

Also in C++: