How to Run Two or More Terminal Commands at Once in Linux

Option One: The Semicolon (;) Operator
ls ; pwd ; whoami

Option Two: The Logical AND Operator (&&)
ls && pwd && whoami

Option Three: The Logical OR Operator (||)
ls || pwd || whoami

Leave a Reply

Your email address will not be published. Required fields are marked *