Making a file with terminal commands?

Posted by iSeth on Ask Ubuntu See other posts from Ask Ubuntu or by iSeth
Published on 2012-11-30T02:56:35Z Indexed on 2012/11/30 5:26 UTC
Read the original article Hit count: 241

Filed under:
|
|
|

In Windows I can write a file containing commands for cmd (usually .cmd or .bat files). When I click on those files it will open cmd.exe and run them commands the file contains.

How would I do this in Ubuntu?

I'm sure this is a duplicate, but I can't find my answer.
Its similar to these questions, but they don't answer the question:

Store frequently used terminal commands in a file

CMD.exe Emulator in Ubuntu to run .cmd/.bat file

© Ask Ubuntu or respective owner

Related posts about command-line

Related posts about 12.10