How to run multiple Unix commands in one time?

前端 未结 8 1241
一向
一向 2021-02-06 02:04

I\'m still new to Unix. Is it possible to run multiple commands of Unix in one time? Such as write all those commands that I want to run in a file, then after I call that file,

8条回答
  •  礼貌的吻别
    2021-02-06 02:26

    We can run multiple commands in shell by using ; as separator between multiple commands

    For example,

    ant clean;ant
    

    If we use && as separator then next command will be running if last command is successful.

提交回复
热议问题