Sign up ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

I try to run a shell script file but failed so far on Ubuntu.

In my terminal:

~/Desktop/FTL/data$ ls
amd64  exe_icon.bmp  FTL  licenses  resources  x86
~/Desktop/FTL/data$ sudo bash ./
[sudo] password for anon: 
bash: ./ No such file or directory
~/Desktop/FTL/data$ sh
sh: 0: Can't open
share|improve this question
You can use file FTL and the system will do its best to work out what it is and tell you. – stemartin Sep 20 '13 at 9:27

2 Answers 2

Well, as can be deduced from the output of ls command, the name of the file is FTL, not So you should use:

sudo bash ./FTL


 sh ./FTL

or maybe only:


Also be sure that the file is executable, by running:

chmod +x FTL
share|improve this answer

Always use this command for every script to be executed by server.

chmod +x filename.ext
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.