Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I seem to be getting a getcwd error suddenly throughout my system. Thoughts anyone.

shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
share|improve this question
add comment

1 Answer

Have you deleted the directory you are in?

Try cd / or cd ~.

share|improve this answer
    
This is generally the problem when pwd fails. cd alone should work, as it seems to default to the home directory. Attempts to pushd a now non-existent directory fail better: they pop the no-more dir and push the current dir. –  Jeremy W. Sherman Feb 13 '11 at 19:08
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.