Linux shell introduction

ü  we are interacting with the shell by using the terminal.

ü   To understanding the shell scripting we have to get familiar with the following terminologies:

·       Kernel

·       Shell

·       Terminal

What is Kernel?

ü  The kernel is a computer program that is the core of a computer’s operating system, with complete control over everything in the system. It manages the following resources of the Linux system –

·       File management

·       Process management

·       I/O management

·       Memory management

·       Device management etc.

è Linus Torvalds has developed Linux OS, but actually, he is only responsible for the development of the Linux kernel.

Complete Linux system = Kernel + GNU system utilities and libraries +     other management scripts + installation scripts.

What is Shell?

ü  A shell is a special user program that provides an interface for the user to use operating system services.

ü  Shell accepts human-readable commands from users and converts them into something which the kernel can understand.

ü   It is a command language interpreter that executes commands read from input devices such as keyboards or from files.

ü   The shell gets started when the user logs in or starts the terminal.


Linux Shell

Shell is broadly classified into two categories –

·       Command Line Shell

·       Graphical shell

Command Line Shell

Shell can be accessed by users using a command line interface. A special program called Terminal in Linux/macOS, or Command Prompt in Windows OS is provided to type in the human-readable commands such as “cat”, “ls” etc. and then it is being executed. The result is then displayed on the terminal to the user.


linux command line

ü  Working with a command line shell is a bit difficult for beginners because it’s hard to memorize so many commands.

ü   It is very powerful; it allows users to store commands in a file and execute them together.

ü  This way any repetitive task can be easily automated.

ü   These files are usually called batch files in Windows and Shell Scripts in Linux/macOS systems.

Graphical Shells

ü  Graphical shells provide means for manipulating programs based on the graphical user interface (GUI), by allowing for operations such as opening, closing, moving, and resizing windows, as well as switching focus between windows. Window OS or Ubuntu OS can be considered as a good example which provides GUI to the user for interacting with the program. Users do not need to type in commands for every action.

 A typical GUI in Linux system –


GUI Shell

There are several shells are available for Linux systems like –

·       BASH (Bourne Again SHell) – It is the most widely used shell in Linux systems. It is used as default login shell in Linux systems and in macOS. It can also be installed on Windows OS.

·       CSH (C SHell) – The C shell’s syntax and its usage are very similar to the C programming language.

·       KSH (Korn SHell) – The Korn Shell was also the base for the POSIX Shell standard specifications etc.

Each shell does the same job but understands different commands and provides different built-in functions.

What is a terminal?

  • ü  A program which is responsible for providing an interface to access the shell.
  • ü  It basically allows users to enter commands and see the output of those commands in a text-based interface.
  • ü  Large scripts that are written to automate and perform complex tasks are executed in the terminal.
  • To access the terminal, simply search in search box “terminal” and double-click it.
  •  open terminal

Linux terminalè

$   ..........................................................

it denoted by the doller sign.


 

 

Comments

Popular posts from this blog