Ask Your Question

how to execute .sh programs in fedora

asked 2012-11-10 23:30:32 -0500

SauvikDaz gravatar image

updated 2014-09-30 14:56:20 -0500

mether gravatar image

Can ne 1 help me out with this.. Its very urgent... I have my sem exams coming in 10 days..

When I am trying to run .sh programs.. Then when ever I try to execute it using sh command it doesn't run and gives some errors... May b I have to update or install some package..

Can u tell me which package to download and also how to do it... Pleas,z

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2012-11-11 00:26:26 -0500

sten gravatar image

Either make the file executable, and then run it while specifying the path:

chmod +x

or, pass it to the shell interpreter like this:


Be careful running programs that are from untrusted sources! Here's a link with some more shell basics:

edit flag offensive delete link more

answered 2016-11-06 06:12:42 -0500

islatortuga gravatar image

I have the same question, and the answer by Sten does not solve it, unfortunately.

For example, I enjoy playing games via Vassal ( ), and this worked fine under Ubuntu, Mageia, Debian and Mint. Either by double-clicking on the icon, or by typing "sh" on the command line in the proper directory.

This morning I installed Fedora 24 Workstation, and neither option (clicking the icon, typing the command) works to start up Vassal. On the command line, when I type "sh" or even "bash", the prompt pauses for a few seconds, and then shows me my prompt and cursor again on the next line, as if nothing happened. Trying the "chmod +x" command first changes nothing in the result. Is there another way to go about this, or is there a step that I should do that I am missing? SomethingI should install first?

Thanks in advance!

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools



Asked: 2012-11-10 23:30:32 -0500

Seen: 28,392 times

Last updated: Nov 11 '12