What does the semicolon or newline command delimiter operator in Bash?

Bash Liste Des Attaques Ovh

About

This article talks about the semi-colon and new line as control operator in bash.

Example

command1 ; command2
# or
command1
command2

What effect do they have?

  • Commands separated by a ; or a newline are executed sequentially;
  • the shell waits for each command to terminate in turn.
  • The return status is the exit status of the last command executed.





Discover More
Bash Liste Des Attaques Ovh
Bash - Lists of Commands

A list of command is a sequence of one or more pipelines separated by one of the operators: ‘;’, ‘&’, ‘&&’, or ‘||’, and optionally terminated by one of ‘;’, ‘&’, or a newline....
Bash Liste Des Attaques Ovh
Bash - metacharacter

A metacharacter is a character that has special meaning (bv: separates words,...) Each of the metacharacters has special meaning to the shell and must be quoted if it is to represent itself. One...
Bash Liste Des Attaques Ovh
What are Control Operators in Bash?

A control operator is a separator in a list of command that controls the execution of the commands. They implement: Boolean operator Block syntax End of statement Pipe operators A token that...



Share this page:
Follow us:
Task Runner