0

I want to run 2 commands from a single terminal

apt-get update && dpkg -L

not like that, I want to be able to enter one command that executes the same time as the second command in a second terminal

that might sound confusing, let me try another way

I want to be able to run for example:

firefox && apt-get upgrade

and have two different terminals open automatically and execute both of those commands just by running a terminal command, not a script

1 Answers1

2

You could type these commands after the $ prompt:

$ sudo apt update &
[1] 24966

$ firefox

[1]+  Stopped                 sudo apt update

The first command followed by & tells it to start in a second terminal (background session). The terminal immediately displays the process ID (24966) of the background session and prompts for another command. When the first command finishes you are notified in the terminal by:

[1]+  Stopped                 sudo apt update