Results 1 to 7 of 7

Thread: "-bash: No such file or directory" (File exist)

  1. #1
    Join Date
    Oct 2010
    Posts
    56

    "-bash: No such file or directory" (File exist)

    Guys, I don’t know that what the problem with the bash is. Whenever, I try to access any file with it then is shows me that it gives me message "-bash: No such file or directory". Although the file is there in the same directory with all permissions with a quick 'ls' command. This problem took place on installation of the Ubuntu Server and it has also been effort with ' Sudo '. I that know that what will be the default troubleshooting steps for this issue for this problem and what is the reason behind this? I am sure that the path to that file is proper. Please share your ideas if you have any. Thank you very much.

  2. #2
    Join Date
    Nov 2009
    Posts
    1,035

    Re: "-bash: No such file or directory" (File exist)

    You can try to edit the file that is not getting found by the bash. You should also complete the naming properly after naming it because there is possibility that it may contain some whitespace and that is why it is creating the naming problem. If you have already tried all this then check whether that file can be opened with the file Manager and see whether it is able to open it or not?

  3. #3
    Join Date
    May 2008
    Posts
    859

    Re: "-bash: No such file or directory" (File exist)

    OK, It is better idea to try the above things that is suggested by Dolsy_bendal and I wish that it should help you in any manner but if you provide the command that you are using and the output that you are getting with that command then it will be easier for us to provide you the exact reason and solution for this. So please post the same to get proper answer.

  4. #4
    Join Date
    Oct 2010
    Posts
    56

    Re: "-bash: No such file or directory" (File exist)

    Thank you for your reply but I would like to tell you that I cannot actually show these commands unless I myself change all the particulars out which would be supposed to create the information ineffective in the first place. It is getting executed on itself with '$./FILENAME', '$SUDO ./FILENAME ' or '$/path/to/directory'. After that I am only given with the generic bash that ' No such file or directory’ but I can see the existence of that file.

    I think that it has to do something between Arch like running a 64-bit execute without having 64 bit library. Also tell me is there is any technique to inform which ARCH the file kind is?

  5. #5
    Join Date
    May 2008
    Posts
    962

    Re: "-bash: No such file or directory" (File exist)

    You should check for the permission of the file. If that is not having the proper permission then also it may create such problems. Sometimes this gives the permission denied error message. You can do a quick test. Try to attempt the ' su - ' and see whether it provide the same result? You can also create a test file that has the same path and the permission and try to test it on that see whether it works r not. Finally I think that there is problem with the file itself that is not getting located and that is why bash is showing you the error message. I wish that this will help you in any manner to solve the problem for you.

  6. #6
    Join Date
    May 2008
    Posts
    1,020

    Re: "-bash: No such file or directory" (File exist)

    I am sure that you know that the Linux is case sensitive. That means that it considers the character ‘A’ and characters ‘a’ as two different characters and not the same. You can try to copy the file from the ls output and paste it on the command. You can copy it by selecting it and paste that by middle clicking. This would covenant with whatever thing similar to odd characters. Just try it out and see the result.

  7. #7
    Join Date
    May 2008
    Posts
    2,680

    Re: "-bash: No such file or directory" (File exist)

    I have a couple of possibilities for this issue that I am listing below.

    • It is possible that the file or the program that you are trying to execute has any white space either it is leading or tailing the name of the file.
    • There is also possibility that the file or the program that is not being located is missing some libraries. You should check that if "ldd ./FILENAME" results any missing library.

Similar Threads

  1. How to avoid the "FILE or Directory" message in Xcopy
    By Channing in forum Operating Systems
    Replies: 3
    Last Post: 31-03-2010, 12:46 PM
  2. "Failed to open stream No such file or directory" error in PHP
    By EULALIA in forum Software Development
    Replies: 3
    Last Post: 13-07-2009, 02:40 PM
  3. Error message "crt0.o no such file or directory"
    By Francesca in forum Operating Systems
    Replies: 1
    Last Post: 19-02-2009, 12:34 PM
  4. In vista how to disable the "scan" the file in a directory ... ?
    By Brijesh Shah in forum Operating Systems
    Replies: 3
    Last Post: 07-02-2009, 07:57 PM
  5. Replies: 3
    Last Post: 17-01-2009, 06:34 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,902,201.04171 seconds with 17 queries