The PWD environment variable contains the full pathname of the current working directory. The pwd command merely echoes the value of $PWD.