Page 1 of 1

Opening A Terminal And Running Several Bash Commands In Orde

PostPosted: Thu May 21, 2026 3:33 am
by CindyrimesS
Hi everyone,

I am trying to make a small Bash script that can open a new terminal window and then run several commands one after another.

I have tested a few different approaches, but I have not managed to get it working properly yet. What I need is something simple where the terminal opens, the first command runs, then the next command runs after that, and so on.

For example, I would like to use it for a short sequence of commands instead of typing each one manually every time.

Is there a clean and beginner-friendly way to do this in Bash? A small working example would be very helpful.

Thanks in advance.

Re: Opening A Terminal And Running Several Bash Commands In

PostPosted: Thu May 21, 2026 9:43 am
by Mr_Noodle
Is there a reason why you need Terminal to do this? If you create a script, each line is a command you execute in sequence.