How do I make an executable terminal file?

About writing shell scripts and making the most of your shell
Forum rules
Topics in this forum are automatically closed 6 months after creation.
Locked
Setro2

How do I make an executable terminal file?

Post by Setro2 »

Hello,
I am sorry if I did not make myself clear enough in the title, couldn't fit it all, lol.
So, my question is how to make a file on my desktop, that when clicked, opens terminal and automatically enters a code, and executes that code.
All help is appreciated. :D
Specs:
Linux Mint 12
32-bit
Cinnamon
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Orbmiser

Re: How do I make an executable terminal file?

Post by Orbmiser »

Can get better results with a simple google it.
https://www.google.com/search?q=shortcu ... +a+command

As can give you many insights into different ways to do it.
Then expecting a few here to show you.
Google is your best friend waiting to help you so you don't have to wait for a response from us here.
.
mauler5858

Re: How do I make an executable terminal file?

Post by mauler5858 »

Is the file marked as executable?

If not, open a terminal and type.....chmod 770 filename
mank_in

Re: How do I make an executable terminal file?

Post by mank_in »

you can use gedit to create text file. save it. right click on file, select properties, on permission tab : check : allow executing file as program.
after that , just double click the file, select run in terminal.
Locked

Return to “Scripts & Bash”