Linux Kernel
What is Kernel?
Interface between hardware and software
Operating System consist of Shell and Kernel
Software consist of Shell and Application.
Introduction to Shell
What is Shell?
Its like a container
Interface between users and Kernel/OS
CLI is a shell
Find your shell
echo $0
Available Shells "cat /etc/shells"
Your Shell? etc/passwd
Windows GUI is a shell
Linux KDE GUI is a shell
Linux sh, bash etc. is a shell
What is Shell Scripting
- Put instruction in a shell and RUN it
Types of Shells
Gnome
KDE
sh
bash
csh and tcsh
ksh
Starting a Shell
Simply type shell name.
echo $0
sh
csh
cat /etc/shells
How to Run a Shell Script
Absolute path
eg:- /home/Shounak-1998/scripts/xyz-script
Relative Path
eg:- cd /home/Shounak-1998/scripts
./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!👏