Run one command after another, even if I suspend the first one (Ctrl-z)

前端 未结 2 2008
伪装坚强ぢ
伪装坚强ぢ 2020-11-30 19:46

I know in bash I can run one command after another by separating them by semicolons, like

$ command1; command2

Or if I only want comm

2条回答
  •  北荒
    北荒 (楼主)
    2020-11-30 19:59

    The following should do it:

    (command1; command2)
    

    Note the added parentheses.

提交回复
热议问题