How can I open pantheon-terminal with starting command to be executed? For example something like pantheon-terminal --start-with echo "Hello World!" should open new terminal window and execute the echo "Hello World!" command in it.

Is it possible to make something like that?

  • Can you expand on your use case as it's possible to have commands run when a shell starts (e.g. .bashrc), but your use case may be specific to using a terminal window in a particular context?
    – ianmjones
    Commented Jun 4, 2018 at 8:34
  • I don't want to run command everytime terminal starts. I wanted to make script that prepares my web testing enviroment (run selenium and node.js server). I wanted each of then run in separate terminal window for crash reports etc.
    – ZobekPL
    Commented Jun 5, 2018 at 9:06
  • If your issue is resolved, please mark the answer as Answer that helped solving your problem. If you have solved this on your own, please write it down as answer and mark it so.
    – Hasan
    Commented Jan 9, 2019 at 11:35

2 Answers 2


With io.elementary.terminal, which seems to be the new name, you might be able to do this using the -e flag. I've done something very similar with xfce4-terminal -e before, maybe that helps when looking for examples around the web. You can find this option in the manpage.

  • how do you pass commands to it -e doesn't work. -T doesn't set title either.
    – tatsu
    Commented Apr 15, 2019 at 15:16

I know it's been quite a while, but.. Put the command you want it into the ~/.bashrc file.

  • Welcome to eOS:SE. Could you expand on your answer with an example in code? This will make it easier for people in the future to solve a similar problem and offer a reason for people to upvote your answer 👍🏻
    – matigo
    Commented May 6, 2023 at 16:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.