Question
Bash throwing error when I try to run file
I was trying to run a file in my home directory called millibyted, but whenever I run ./millibyted, it says
-bash: ./millibyted: No such file or directory
Now, I am absolutely certain that the file is there; I have sftp’d in and everything, but it just keeps throwing that error. This doesn’t happen on my personal PC, also on Ubuntu 16.04. What do I do?
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×
Hello,
Could you try giving the file execute permissions first?
I think this should resolve the issue. If it doesn’t, maybe you need to make it a shell file.
Hope it helps, thanks.
I has already tried giving exec permissions, and it didn’t work. I just tried running it as a shell script and that just threw an error.