How run multiple commands in Linux script?

Nguyễn Hào

New member
How run multiple commands in Linux script?
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