Friday, February 22, 2013

No such file or directory?

Sometimes when a shell session shows you this error it baffles. You check the file exists, you check the syntax for the command, you check the permissions. You do everything that a page like this suggests you do.

And then you realise that the entire directory you are attempting to execute a command within has been deleted or recreated since your shell set it as its current working directory.

I stumble across this problem from time to time when I have multiple shell windows open. If you are in a particular directory in session 1, and delete that directory in another, even if you immediately recreate a directory with the same name, all further commands in the first session that are dependent on relative directories are doomed to failure.

This makes sense, but sometimes it takes me a while to remember. Maybe writing this post will trigger my memory earlier in the piece in the future.


  1. Looking for a Local Irish Business? Here at Local Directory we list hundreds of Irish businesses and services that work nationwide and Locally in Ireland.

  2. I would like to show thanks to you for bailing me out of this dilemma. Because of checking throughout the the net and getting methods that were not helpful, I believed my entire life was done. Existing minus the strategies to the issues you've sorted out by means of your entire site is a critical case, and ones which might have in a wrong way affected my entire career if I hadn't come across the website. The know-how and kindness in maneuvering a lot of things was tremendous. I don’t know what I would've done if I hadn't encountered such a step like this. I can now relish my future. Thanks for your time so much for the specialized and effective help. I will not be reluctant to suggest the best paper writing services to anyone who would like assistance about this subject.

  3. I recently came across your blog and have been reading along. I thought I would leave my first comment. I don't know what to say except that I have enjoyed reading. This is the best Instagram online web viewer on the Internet. Discovering top trending photo and video on Pikdo right now!

  4. A beautiful paint job can make all the difference in how a building—old or new—looks.
    polished plaster saskatoon