The Cookie Machine - Click here to drag window

DUMMY TEXT - Real text set in assets/js/theCookieMachine.js

If you can read me, I'm broken!

Views: 1,374     Votes:  2     ✅ Solution
Tag : command-line  
Link: 🔍 See Original Answer on Ask Ubuntu ⧉ 🔗

URL: https://askubuntu.com/q/1060423
Title: running two commands from a single terminal
ID: /2018/07/29/running-two-commands-from-a-single-terminal
Created: July 29, 2018    Edited:  July 29, 2018
Upload: September 15, 2024    Layout:  post
TOC: false    Navigation:  false    Copy to clipboard:  false


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
⇧ Can't find lock computer option in ubuntu 18 Execute a script when the output of a command has a specific string  ⇩