Bash throwing error when I try to run file

Posted November 4, 2017 1.8k views
ApplicationsUbuntu 16.04

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?

  • Hello,

    Could you try giving the file execute permissions first?

    chmod +x millibyted

    I think this should resolve the issue. If it doesn’t, maybe you need to make it a shell file.

    mv millibyted
    rm -f millibyted

    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.

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.

Submit an Answer
1 answer

Is the Ubuntu 16.04 droplet you’re running the 32-bit image or the 64-bit one?

Could be this: