How do I run multiple commands in bash?

Khang Lê

New member
How do I run multiple commands in bash?
Answer
To run multiple commands in a single step from the shell, you can type them on one line and separate them with semicolons. This is a Bash script!! The pwd command runs first, displaying the current working directory, then the whoami command runs to show the currently logged in users.
 

Tìm kiếm

Back
Top