0

I have Ubuntu Server 18.04 LTS.

I want to run two processes, but at the same time have a "clean" command line.

For example,

process 1: ping google.com

process 2: ping facebook.com

I tried running them in the background using &:

process 1: ping google.com &

process 2: ping facebook.com &

However, the results of executing commands are displayed in the command line:

enter image description here

How can I run two processes to leave the command line "clean"?

alexhak
  • 131
  • 1
  • 4
  • What do you mean by "clean command line"? – Barmar May 14 '20 at 17:41
  • 1
    [so] is for programming questions, not questions about using or configuring Unix and its utilities. [unix.se] or [su] would be better places for questions like this. – Barmar May 14 '20 at 17:42

1 Answers1

1

I would recommend the "screen" program.

You can create new screen with screen -S [name]. Simply said it just open a new bash where you can run your commands. If you want to exit the screen just press Ctrl + A + D

If you want to resume the screen, just run screen -r [screen-name]

The advantage is that you can close you terminal and the screen will continuously running in the background.

For more information check this link out: https://www.digitalocean.com/community/tutorials/how-to-install-and-use-screen-on-an-ubuntu-cloud-server

Jaaakob
  • 45
  • 4