Shell Scripting Basic

Shell Scripting Basic

Linux Kernel

  1. What is Kernel?

    1. Interface between hardware and software

    2. Operating System consist of Shell and Kernel

    3. Software consist of Shell and Application.

Introduction to Shell

  1. What is Shell?

    1. Its like a container

    2. Interface between users and Kernel/OS

    3. CLI is a shell

  2. Find your shell

    1. echo $0

    2. Available Shells "cat /etc/shells"

    3. Your Shell? etc/passwd

  3. Windows GUI is a shell

  4. Linux KDE GUI is a shell

  5. Linux sh, bash etc. is a shell

What is Shell Scripting

  1. Put instruction in a shell and RUN it

Types of Shells

  1. Gnome

  2. KDE

  3. sh

  4. bash

  5. csh and tcsh

  6. ksh

Starting a Shell

  1. Simply type shell name.

  2. echo $0

  3. sh

  4. csh

  5. cat /etc/shells

How to Run a Shell Script

  1. Absolute path

  2. eg:- /home/Shounak-1998/scripts/xyz-script

  3. Relative Path

  4. eg:- cd /home/Shounak-1998/scripts

  5. ./xyz-script

That's great if you have make till here you have covered Shell Script Basic.

If you liked what you read, do follow and any feedback for further improvement will be highly appreciated!

Thank you and Happy Learning!👏