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.

5 comments:

  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. Nearmefinds.com

    ReplyDelete
  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.

    ReplyDelete
  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!

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

    ReplyDelete
  5. - how to play emulator games?
    With such a large library of games available for PC users to pick from, it's hardly surprising that this roundup is lacking in quality. We've narrowed our choices to 25, but this isn't a set list. We'll keep highlighting new experiences that we think show off what makes PC gaming so amazing, whether you play on Steam or another platform, as more fantastic PC games are launched. We've also included links to retailers because you can often get better bargains on PC games there.

    Read more: https://www.jbklutse.com/how-to-play-lords-mobile-on-pc-without-an-emulator/

    ReplyDelete