How to execute multiple commands after opening a new terminal tab

user4315382

I need to open a new terminal tab and execute multiple commands on it, how can I do it. I have already tried the following,

gnome-terminal --tab -t "X" -e "cd ~/Desktop/terminal_test;mkdir test"

Here I need to cd into a new directory and create a new folder.

Qmick Zh

Try this:

gnome-terminal -x bash -c "cmd1; cmd2; …cmdN; exec bash"

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How to execute multiple commands after opening a new terminal tab

From Dev

How to auto execute commands after opening a file in GNU Emacs

From Dev

Opening a new tab in Firefox through the terminal

From Dev

Opening a new tab in Firefox through the terminal

From Dev

How to execute command after opening new tmux session

From Dev

Open new terminal tab and execute script

From Dev

Execute multiple commands after [ test

From Dev

Execute multiple commands after [ test

From Dev

execute multiple commands after ssh

From Dev

How to run xfce-terminal with different commands per tab and keep using the tabs after the commands have returned?

From Dev

Execute multiple commands in a terminal window from bash

From Dev

How to execute a specific command on opening a terminal

From Dev

Make "pro" style terminal default when opening new tab/window

From Dev

How to combine multiple commands in terminal?

From Dev

Desktop Launcher executing a sequence of commands after opening a terminal

From Dev

How to execute terminal commands through scala

From Dev

How to avoid GULP opening a new tab?

From Dev

How to execute several commands after each other with one request to the terminal (without using a file)?

From Dev

How to execute several commands after each other with one request to the terminal (without using a file)?

From Dev

Execute script in new tab command line gnome-terminal

From Dev

How can we open minicom from current terminal and pass multiple commands to execute and exit to 1st terminal using shell script

From Dev

Window not opening in a new tab

From Dev

Opening a new browser tab

From Dev

Opening popup in new tab

From Dev

Opening new tab in the background

From Dev

Open gnome terminal programmatically and execute commands after bashrc was executed

From Dev

Chrome no longer focus address bar after opening a new tab

From Dev

Clearing input data on submit after opening it in a new tab

From Dev

Open multiple terminal tabs, execute commands and continue working on them

Related Related

  1. 1

    How to execute multiple commands after opening a new terminal tab

  2. 2

    How to auto execute commands after opening a file in GNU Emacs

  3. 3

    Opening a new tab in Firefox through the terminal

  4. 4

    Opening a new tab in Firefox through the terminal

  5. 5

    How to execute command after opening new tmux session

  6. 6

    Open new terminal tab and execute script

  7. 7

    Execute multiple commands after [ test

  8. 8

    Execute multiple commands after [ test

  9. 9

    execute multiple commands after ssh

  10. 10

    How to run xfce-terminal with different commands per tab and keep using the tabs after the commands have returned?

  11. 11

    Execute multiple commands in a terminal window from bash

  12. 12

    How to execute a specific command on opening a terminal

  13. 13

    Make "pro" style terminal default when opening new tab/window

  14. 14

    How to combine multiple commands in terminal?

  15. 15

    Desktop Launcher executing a sequence of commands after opening a terminal

  16. 16

    How to execute terminal commands through scala

  17. 17

    How to avoid GULP opening a new tab?

  18. 18

    How to execute several commands after each other with one request to the terminal (without using a file)?

  19. 19

    How to execute several commands after each other with one request to the terminal (without using a file)?

  20. 20

    Execute script in new tab command line gnome-terminal

  21. 21

    How can we open minicom from current terminal and pass multiple commands to execute and exit to 1st terminal using shell script

  22. 22

    Window not opening in a new tab

  23. 23

    Opening a new browser tab

  24. 24

    Opening popup in new tab

  25. 25

    Opening new tab in the background

  26. 26

    Open gnome terminal programmatically and execute commands after bashrc was executed

  27. 27

    Chrome no longer focus address bar after opening a new tab

  28. 28

    Clearing input data on submit after opening it in a new tab

  29. 29

    Open multiple terminal tabs, execute commands and continue working on them

HotTag

Archive