Sunday, May 5, 2024
3
rated 0 times [  3] [ 0]  / answers: 1 / hits: 5835  / 2 Years ago, tue, march 22, 2022, 1:53:07

I want to run shell script or at least run it from terminal. I tried going to home folder/edit/preferences/behaviour and set executable text files to 'ask each time' but it doesn't even give the option to run from terminal,etc (even after restart). I also tried choosing 'run executable text files when they are opened' but both keep opening via gedit.


More From » command-line

 Answers
6

In order to run a text file as executable from nautilus two things need to be set. Sounds like you have done the first already.



The second is that the file needs to be marked as executable.



To do this from nautilus right click on the file select "properties"
enter image description here



then on the "Permissions" tab select "Allow executing file as program".
enter image description here



Or from the command line



chmod +x file 


replacing file with the file name.


[#30802] Thursday, March 24, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
fulerio

Total Points: 172
Total Questions: 124
Total Answers: 109

Location: Hungary
Member since Thu, Aug 6, 2020
4 Years ago
fulerio questions
;