What does the semicolon do when it is run in a bash command?
问题 For example, when running echo a; echo b in the terminal, its output is: a b It seems to me that the semicolon waits for the first command ( echo a ) to finish, then it starts the second command ( echo b ). Q: Is the semicolon just used for iterating over commands in bash? Q: What does the semicolon do when it is run in a bash command? 回答1: The ; separates the two commands. echo a; echo b It lets the bash know that echo a and echo b are two separate commands and need to be run separately one