We help IT Professionals succeed at work.

red hat linux. when i double click on any file it opens with emacs

c_hockland used Ask the Experts™
When i double click on a .sh file instead of running it opens with emacs. That happens with every file. how can i set it up to execute instead of opening the file with emacs ?
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Chris StauntonSr. Infrastructure Engineer

change the file association for that file type, to do this open up Nautilus and right click on the file go to select properties, then click on the Open with tab then select the program you wish to open the file with.
IT Administration
Did you change executable writes of the .sh file you are opening?

root@santasi24:#chmod +x some file.sh

This will make the file executable and run on a terminal.