Quantcast
Channel: Active questions tagged ubuntu - Stack Overflow
Viewing all articles
Browse latest Browse all 5956

Run a command upon clicking the .sh file in Ubuntu [closed]

$
0
0

I have created a file: run.sh and it has the following code:

cd /home/elainedesktop/npm start

I have chmod +x run.sh too FYI.

Currently, I must open terminal and type ./run.sh or bash run.sh but this isn't what I want.

I want to run it by simply clicking the run.sh file. Is this possible?

I tried this too but clicking on it opens it in Vim:

#!/bin/bashcd /home/elainedesktop/npm start

Viewing all articles
Browse latest Browse all 5956

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>