1

I want to run a .sh file in the Terminal. Apparently there is a pop up for that: pop-up window providing launch options for a shell script

I don't get that pop up when right clicking the .sh file and the way shown here doesn't work: If I right click "files", there is nothing like "Select Preferences".

Can someone help me enable that pop up?

What I see when right clicking the "Files" program when it's closed:

If open this, this is what I see:

Right clicking on my .sh file looks like this, even after doing this command:

chmod +x meinscript.sh

"Run as a Program" doesn't open the terminal that I need.

Phili Boy
  • 11
  • 3

1 Answers1

-1

Don't right click on the .sh file... Right click on the word "Files" in the top left hand corner of the Files Window. Then select Preferences, etc.

You will have to ensure the .sh file is executable first...

Launch a Terminal window, cd into the directory of the .sh file and run:

chmod +x filename.sh

That will make it executable by EVERYONE... You might want to limit it to either User (u), Group (g) or Other (o).

So, for just the user you would run:

chmod u+x filename.sh

Click on this...

Right clicking on the above and clicking "Preferences" will load the following:

enter image description here

NOTE: The above is for Ubuntu 18.04, for 20.04 the same Preferences can be found in the button with the three horizontal lines as shown here:

enter image description here

Clicking on that and selecting "Preferences" will load the following window:

enter image description here

terdon
  • 104,119
Mike
  • 247