Good day.You need to create a script to run several commands.I just started to study bash-scripting and especially found no information on my question.

And so:
The script should open the terminal, htop is displayed in the first terminal, then the second terminal window opens.

(I will be glad to learn bash textbooks in Russian)

Thank you in advance

4 Answers 4

No way.This does not apply to the bash.

This should somehow support the terminal;but, I must admit, I have not even heard about this.
tmuxwill help to create and control sessions/windows, and run it all with one command - tmuxinator
What is your understanding of the terminal, and how do you open it?
or screen

but to open a lot is aerobatics I advise you to start with something easier