Ever got the following error “Getcwd cannot access parent directories”? Here is the fix.
error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
You are getting this error because your current directory doesn’t exist anymore. Go to an existing directory, and you won’t see the error again.
Just do a “cd”
cd
That will do it!