Linux BATCH / Shell File...

  2 years ago

But Linux Use Shell file run Terminal commands.

Below example copy pates in Text Editor

# My first script
echo "Hello World!"
read -p "$*"

1. See Below Text Editor "Plain Text" change to sh

2. and save Desktop file name is

3. Open Terminal goto desktop path

4. Type below command
chmod 755

5. Close Terminal.

6. Double click

7. and Click Run in Terminal and you can see
Hello World!

Above Code Details

#!/bin/bash :            Call bash directory

# My first script :  Comment use '#'

echo :                      Output text

read -p "$*" :         Press any key to continue...

chmod :                  Change Modify

755 :                        Allow executing file as program

jgerman_infoready 11 months ago


remoulder 2 years ago

This is not a tutorial