Run parallel multiple commands at once in the same terminal

前端 未结 6 796
礼貌的吻别
礼貌的吻别 2020-11-28 19:15

I want to run a few commands, each of which doesn\'t quit until Ctrl-C is pressed. Is there something I can run to run all of them at once, and Ctrl-C will quit them all? Th

6条回答
  •  猫巷女王i
    2020-11-28 19:35

    Based on comment of @alessandro-pezzato. Run multiples commands by using & between the commands.

    Example:

    $ sleep 3 & sleep 5 & sleep 2 &
    

    It's will execute the commands in background.

提交回复
热议问题