How to run shell script via terminal
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgO9GURib1T8z7lCwjOGLQaGtrueEthgQ8LO42ZX8cOfTqDK4jvDDpKkLFwf2J49kYCMNW7d4ABih_XCb_2UXdq5fPJDkoyg7-8g_YfRUot-XnaXkNYycsNp7lA5_TW9td0FFpLQ2APzKcZ/s1600/1.jpg)
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYQ0N5W1qAOxLP7t7iOM6O6AzbZnkXUy16s7P_CWfOb5UbTQY_aDsc727chyphenhyphen5W4IppVNernMMQeaUFTB_rFzAd95_CDt-tnwN-nBx6JyUp2duGjPaL5-VgNO41AVsA_vu30EJcipdDG409/s400/Clash+Royale+CLAN+TAG%2523URR8PPP.png)
up vote
7
down vote
favorite
I just upgraded to 13.04. Before this when I click on a shell script file it'll give an option to run via terminal but now the option is no longer available and when I click the file it'll directly open via gedit.
How to run it via terminal and if possible, make it like that on default?
command-line 13.04 scripts
add a comment |Â
up vote
7
down vote
favorite
I just upgraded to 13.04. Before this when I click on a shell script file it'll give an option to run via terminal but now the option is no longer available and when I click the file it'll directly open via gedit.
How to run it via terminal and if possible, make it like that on default?
command-line 13.04 scripts
add a comment |Â
up vote
7
down vote
favorite
up vote
7
down vote
favorite
I just upgraded to 13.04. Before this when I click on a shell script file it'll give an option to run via terminal but now the option is no longer available and when I click the file it'll directly open via gedit.
How to run it via terminal and if possible, make it like that on default?
command-line 13.04 scripts
I just upgraded to 13.04. Before this when I click on a shell script file it'll give an option to run via terminal but now the option is no longer available and when I click the file it'll directly open via gedit.
How to run it via terminal and if possible, make it like that on default?
command-line 13.04 scripts
edited Apr 23 at 22:56
![](https://i.stack.imgur.com/zqElV.png?s=32&g=1)
![](https://i.stack.imgur.com/zqElV.png?s=32&g=1)
karel
50.2k11107127
50.2k11107127
asked May 28 '13 at 3:22
Dania
54137
54137
add a comment |Â
add a comment |Â
2 Answers
2
active
oldest
votes
up vote
10
down vote
accepted
Open the file explorer Files
. Press Alt+F10 and select Preferences
. You should see something like this.
In the Behavior
tab, select Ask each time
and close it. Now double on a shell script will ask you what to do each time. If you want to straight away execute the script, select the first option Run executable text files when they are opened
.
add a comment |Â
up vote
5
down vote
Open up a terminal and change to the dir that the script is in and type
./scriptname
add a comment |Â
protected by Community⦠Jun 22 '13 at 6:27
Thank you for your interest in this question.
Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
10
down vote
accepted
Open the file explorer Files
. Press Alt+F10 and select Preferences
. You should see something like this.
In the Behavior
tab, select Ask each time
and close it. Now double on a shell script will ask you what to do each time. If you want to straight away execute the script, select the first option Run executable text files when they are opened
.
add a comment |Â
up vote
10
down vote
accepted
Open the file explorer Files
. Press Alt+F10 and select Preferences
. You should see something like this.
In the Behavior
tab, select Ask each time
and close it. Now double on a shell script will ask you what to do each time. If you want to straight away execute the script, select the first option Run executable text files when they are opened
.
add a comment |Â
up vote
10
down vote
accepted
up vote
10
down vote
accepted
Open the file explorer Files
. Press Alt+F10 and select Preferences
. You should see something like this.
In the Behavior
tab, select Ask each time
and close it. Now double on a shell script will ask you what to do each time. If you want to straight away execute the script, select the first option Run executable text files when they are opened
.
Open the file explorer Files
. Press Alt+F10 and select Preferences
. You should see something like this.
In the Behavior
tab, select Ask each time
and close it. Now double on a shell script will ask you what to do each time. If you want to straight away execute the script, select the first option Run executable text files when they are opened
.
edited Jun 9 '13 at 6:55
answered May 28 '13 at 4:11
![](https://i.stack.imgur.com/w6Ffg.jpg?s=32&g=1)
![](https://i.stack.imgur.com/w6Ffg.jpg?s=32&g=1)
thefourtheye
4,23421630
4,23421630
add a comment |Â
add a comment |Â
up vote
5
down vote
Open up a terminal and change to the dir that the script is in and type
./scriptname
add a comment |Â
up vote
5
down vote
Open up a terminal and change to the dir that the script is in and type
./scriptname
add a comment |Â
up vote
5
down vote
up vote
5
down vote
Open up a terminal and change to the dir that the script is in and type
./scriptname
Open up a terminal and change to the dir that the script is in and type
./scriptname
answered Jun 22 '13 at 3:01
user169254
591155
591155
add a comment |Â
add a comment |Â
protected by Community⦠Jun 22 '13 at 6:27
Thank you for your interest in this question.
Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?