Run Multiple Linux Commands in Terminal at Once – Linux Tutorial

By | June 10, 2019

To run multiple linux commands in terminal at once, we can write these linux commands in a shell file and run this file.

How to do?

Step 1: Create a shell file named test_script.sh

Step 2: Write linux commands you want to run in this file

such as:

cd Examples
cd MCA
cd HUAPA
cd mca-svd
ls

Step 3: Make test.sh can be run

chmod a+x test_script.sh

Step 4: Run this file

./test_script.sh

You can find commands in test_script.sh are all run.

The result is:

Leave a Reply