File Exists but... "-bash: No such file or directory"
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
File Exists but... "-bash: No such file or directory"
Hello,
I am curious what could cause bash to describe a file as not existant however it is obviously existant with proper permissions with a quick 'ls' command. This has occured on a Ubuntu Server Installation and it has also been attempted with ' Sudo '. I am curious what would be the default troubleshooting steps in such as situation, what causes this?
I am aware the path to the file is correct, full path and direct current directory has been specified with same results.
have you tried to edit the file or are you executing it? have you tried name completion to finish typing it (maybe a trailing whitespace char for instance.) Have you tried to open it with say a file manager?
Unfortunately I am not able to actually display these commands or output due to certain circumstances unless I personally modify all the details out which would be believed to make the information useless in the first place. It is simply being executed itself with '$./FILENAME', '$SUDO ./FILENAME ' or '$/path/to/directory' and I am simply being given the generic bash, ' No such file or directory ' although it does display and is existant.
Due to these circumstances is why I more or less requested general possibilities.
I do enjoy the idea of the possibility of special-character or white-space.
Could this have anything to do between Arch, such as running a 64-bit execute without 64-bit libraries? Is there a way to tell which ARCH the file type is?
I am able to execute file on the 'file' and get, ' ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.2.5, dynamically linked (uses shared libs), not stripped '.
Have you tried copying the file from the ls output and pasting it into the command. (Copy by selecting it, paste by middle-clicking). That would deal with anything like odd characters.
Is it possible that either:
a) The file/program you are attempting to execute has leading or trailing white characters (ie. spaces, tabs, etc..) in it's name ?
b) The file/program is missing some libraries ? (ie. bash is complaining about the missing libraries and not the missing file)
Does "ldd ./FILENAME" report any missing libraries ?
Unfortunately I am not able to actually display these commands or output due to certain circumstances unless I personally modify all the details out which would be believed to make the information useless in the first place. It is simply being executed itself with '$./FILENAME', '$SUDO ./FILENAME ' or '$/path/to/directory' and I am simply being given the generic bash,
Has anyone here ever known a "branded" (non-generic) bash?
One clear specific information about the problem is worth better than a thousand blahs of gorgeous flowery talk.
Quote:
No such file or directory ' although it does display and is existant.
Due to these circumstances is why I more or less requested general possibilities.
OMG! Please speak English.
Unless you tell us what you have done, what files, which directories and reported error...... well, there is no end for grandiose oration.
Ha ha ha I didn't imagine I was helping out a ghost. I didn't bother checking the dates. I was merely using the Zero Reply button hoping to become useful to the community when my time affords this pleasure.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.