SlideShare una empresa de Scribd logo
1 de 21
SHELL AND ITS TYPES
IN LINUX
Prof. Neeraj Bhargava
Mrs. Shubha Chaturvedi
Department of Computer Science, School of Engineering & System Science
MDS University Ajmer, Rajasthan
Linux Shell
• Computer understand the language of 0's and
1's called binary language.
• In early days of computing, instruction are
provided using binary language, which is
difficult for all of us, to read and write.
• So in O/s there is special program called Shell.
• Shell accepts your instruction or commands in
English and translate it into computers native
binary language.
This is what Shell does for users
• It's environment provided for user interaction.
• Shell is an command language interpreter
that executes commands read from the
standard input device (keyboard) or from a
file.
• Linux may use one of the following most
popular shells (In MS-DOS, Shell name is
COMMAND.COM which is also used for same
purpose, but it's not as powerful as our Linux
Shells are!)
Different Types of Shells
• In UNIX there are two major types of shells:
1. The Bourne shell (includes sh, ksh, and bash)
2. The C shell (includes csh and tcsh)
• If you are using a Bourne-type shell, the
default prompt is the $ character.
• If you are using a C-type shell, the default
prompt is the % character.
The different types of Bourne shells as follow:
1. Bourne shell (sh)
2. Korn shell (ksh)
3. Bourne Again shell (bash)
4. POSIX shell (sh)
The different C-type shells follow:
1. C shell (csh)
2. TENEX/TOPS C shell (tcsh)
Types of Shells
• Any of the above shell reads command from user
(via Keyboard or Mouse) and tells Linux O/s what
users want.
• If we are giving commands from keyboard it is
called command line interface ( Usually in-front
of $ prompt. This prompt is depend upon your
shell and environment that you set or by your
System Administrator, therefore you may get
different prompt ).
• NOTE: To find your shell type following
command $ echo $SHELL
The Original Bourne Shell
• The original UNIX shell was written in the mid-1970s
by Stephen R. Bourne while he was at AT&T Bell Labs
in New Jersey.
• The Bourne shell was the first shell to appear on
UNIX systems, thus it is referred to as "the shell.“
• The Bourne shell is usually installed as /bin/sh on
most versions of UNIX. For this reason, it is the shell
of choice for writing scripts to use on several
different versions of UNIX.
Features of Bourne Shell
In addition to being a command interpreter, the
Bourne shell is a powerful language with a
programming syntax similar to that of the ALGOL
language. Features of the original Bourne shell :
1. Process control
2. Variables
3. Regular expressions
4. Flow control and Loops
5. Powerful input and output controls
6. Functions
Drawbacks of Bourne shell
Drawbacks of the original Bourne shell is that
it is hard to use interactively.
1. No file name completion
2. No command history or command editing
3. Difficulty in executing multiple background
processes or jobs
The C Shell
• Bill Joy developed the C shell while he was at the
University of California at Berkeley in the early 1980s.
• It was designed to make interactive use of the shell
easier for users.
• Another design goal was to change the syntax of the
shell from the Bourne shell's older ALGOL style to the
newer C style.
• The C language style of the C shell was intended as an
improvement because the C language was familiar to
the programmers working on UNIX at Berkeley.
• The idea was that a shell that used C language style
syntax would be easier to write scripts in than a shell
that used the ALGOL style syntax.
Drawbacks of C Shell
The C shell could not be used for much more
than the most trivial scripts. Some of the
major drawbacks are :
1. Weak input and output controls
2. Lack of functions
3. Confusing syntax due to a "lazy" command
interpreter.
Features of C Shell
Although the C shell did not catch on for scripts, it has become
extremely popular for interactive use. Some this popularity follow:
1. Command History. You can recall commands you previously executed
for re- execution. You can also edit the command before it is re-
executed.
2. Aliases. You can create short mnemonic names for commands.
Aliases are a simplified form of the Bourne shell functions.
3. File Name Completion. You can have the C shell automatically
complete a filename by just typing a few characters of the file's
name.
4. Job Controls. The C shell enables you to execute multiple processes
and control them using the jobs command.
The C shell is usually installed on most systems as /bin/csh.
The TENEX/TOPS C shell, tcsh, is a newer version of the C shell
that enables you to scroll through the command history using the up
and down arrow keys.
Korn shell
• David Korn of AT&T Bell Labs wrote the Korn
shell, ksh, which incorporates all the C shell's
interactive features into the Bourne shell's
syntax.
• In recent years, most vendors have started to
ship the Korn shell with their versions of UNIX.
• Usually you will find it installed as /bin/ksh or
/usr/bin/ksh.
Features of Korn shell
Features that the Korn shell brings to the
Bourne shell include the following:
• Command history and history substitution
• Command aliases and functions
• File name completion
• Arrays
• Built-in integer arithmetic
There are 3 major versions of ksh available:
• The Official version (ksh) :The Official version
is available in binary format (no sources).
• The Public Domain version (pdksh): The Public
Domain version is available in both binary and
source format
• The Desktop version (dtksh) :The Desktop
version provides the capability to create and
display Graphical User Interfaces (GUIs) using
ksh syntax.
POSIX shell
• The POSIX shell is another variant of the Korn
shell.
• Currently, the only major vendor shipping the
POSIX shell is Hewlett-Packard.
• In HP-UX 11.0 (Hewlett Packard Unix), the
POSIX shell is installed as /bin/sh. The Bourne
shell is installed as /usr/old/bin/sh.
The Bourne Again Shell
• The Bourne Again shell, bash, was developed as part of the
GNU project and has replaced the Bourne shell, sh, for
GNU-based systems like Linux.
• All major Linux distributions, including Red Hat, Slackware,
and Caldera, ship with bash as their sh replacement.
• Although it includes C shell (csh and tcsh) and Korn shell
(ksh) features, bash retains syntax compatibility with the
Bourne shell, enabling it to run almost all Bourne shell
scripts.
• bash was written by Brian Fox of the Free Software
Foundation and is currently maintained by Chester Ramey
of Case Western Reserve University.
• Because bash is an implementation of the IEEE
POSIX 1003.2/ISO 9945.2 Shell and Tools
specification, it is extremely portable and can
be built on most UNIX systems.
• It has also been ported to QNX, Minix, OS/2,
and Windows 95/NT. Currently, only Linux
ships with the Bourne Again shell. It is
installed as /bin/bash. On most Linux systems,
it is also installed as /bin/sh.
Features of the Bourne Again Shell
• Some features that bash includes in addition to
those of the Korn shell are :
• Name completion for variable names, usernames,
host names, commands, and filenames
• Spelling correction for pathnames in the cd
command
• Arrays of unlimited size
• Integer arithmetic in any base between 2 and 64

Más contenido relacionado

La actualidad más candente

Operating system services 9
Operating system services 9Operating system services 9
Operating system services 9
myrajendra
 
Operating system structures
Operating system structuresOperating system structures
Operating system structures
Mohd Arif
 

La actualidad más candente (20)

Memory management
Memory managementMemory management
Memory management
 
Introduction to Shell script
Introduction to Shell scriptIntroduction to Shell script
Introduction to Shell script
 
Process synchronization in Operating Systems
Process synchronization in Operating SystemsProcess synchronization in Operating Systems
Process synchronization in Operating Systems
 
Linux commands
Linux commandsLinux commands
Linux commands
 
Shell programming
Shell programmingShell programming
Shell programming
 
Operating system services 9
Operating system services 9Operating system services 9
Operating system services 9
 
Linux operating system ppt
Linux operating system pptLinux operating system ppt
Linux operating system ppt
 
Unix operating system
Unix operating systemUnix operating system
Unix operating system
 
Unix Operating System
Unix Operating SystemUnix Operating System
Unix Operating System
 
Linux.ppt
Linux.ppt Linux.ppt
Linux.ppt
 
Kernel (OS)
Kernel (OS)Kernel (OS)
Kernel (OS)
 
Scheduling algorithms
Scheduling algorithmsScheduling algorithms
Scheduling algorithms
 
Know the UNIX Commands
Know the UNIX CommandsKnow the UNIX Commands
Know the UNIX Commands
 
Linux file system
Linux file systemLinux file system
Linux file system
 
Operating system structures
Operating system structuresOperating system structures
Operating system structures
 
Processes and threads
Processes and threadsProcesses and threads
Processes and threads
 
Threads (operating System)
Threads (operating System)Threads (operating System)
Threads (operating System)
 
Linux booting Process
Linux booting ProcessLinux booting Process
Linux booting Process
 
Critical section problem in operating system.
Critical section problem in operating system.Critical section problem in operating system.
Critical section problem in operating system.
 
Linux kernel
Linux kernelLinux kernel
Linux kernel
 

Similar a Shell and its types in LINUX

ITE117 Konikoff Week1 wrap
ITE117 Konikoff Week1 wrapITE117 Konikoff Week1 wrap
ITE117 Konikoff Week1 wrap
Robert Konikoff
 

Similar a Shell and its types in LINUX (20)

Bash vs C Shell vs Korn Shell | Edureka
Bash vs C Shell vs Korn Shell | EdurekaBash vs C Shell vs Korn Shell | Edureka
Bash vs C Shell vs Korn Shell | Edureka
 
2
22
2
 
Shell Scripting in Linux
Shell Scripting in LinuxShell Scripting in Linux
Shell Scripting in Linux
 
Licão 02 shell basics bash intro
Licão 02 shell basics bash introLicão 02 shell basics bash intro
Licão 02 shell basics bash intro
 
Unixshellscript 100406085942-phpapp02
Unixshellscript 100406085942-phpapp02Unixshellscript 100406085942-phpapp02
Unixshellscript 100406085942-phpapp02
 
Redirection of output and input in unix/linux
Redirection of output and input in unix/linuxRedirection of output and input in unix/linux
Redirection of output and input in unix/linux
 
Shell Basics
Shell BasicsShell Basics
Shell Basics
 
Bn1025 demo basic unix
Bn1025 demo  basic unixBn1025 demo  basic unix
Bn1025 demo basic unix
 
The Shell Game Part 2: What are your shell choices?
The Shell Game Part 2: What are your shell choices?The Shell Game Part 2: What are your shell choices?
The Shell Game Part 2: What are your shell choices?
 
Linux systems - Getting started with setting up and embedded platform
Linux systems - Getting started with setting up and embedded platformLinux systems - Getting started with setting up and embedded platform
Linux systems - Getting started with setting up and embedded platform
 
Bash shell scripting
Bash shell scriptingBash shell scripting
Bash shell scripting
 
Linux notes
Linux notesLinux notes
Linux notes
 
Linux forensics
Linux forensicsLinux forensics
Linux forensics
 
Linux basics
Linux basicsLinux basics
Linux basics
 
UnixShells.ppt
UnixShells.pptUnixShells.ppt
UnixShells.ppt
 
Linux
LinuxLinux
Linux
 
ITE117 Konikoff Week1 wrap
ITE117 Konikoff Week1 wrapITE117 Konikoff Week1 wrap
ITE117 Konikoff Week1 wrap
 
Shell scrpting(payal harne)
Shell scrpting(payal harne)Shell scrpting(payal harne)
Shell scrpting(payal harne)
 
Shell & Shell Script
Shell & Shell ScriptShell & Shell Script
Shell & Shell Script
 
Shell & Shell Script
Shell & Shell Script Shell & Shell Script
Shell & Shell Script
 

Más de SHUBHA CHATURVEDI

Más de SHUBHA CHATURVEDI (20)

Unix and its Components
Unix and its ComponentsUnix and its Components
Unix and its Components
 
Linux Advantages and Disadvantages
Linux Advantages and DisadvantagesLinux Advantages and Disadvantages
Linux Advantages and Disadvantages
 
Linux Features
Linux FeaturesLinux Features
Linux Features
 
Architecture of Linux
 Architecture of Linux Architecture of Linux
Architecture of Linux
 
Introduction and history of linux
Introduction and history of linuxIntroduction and history of linux
Introduction and history of linux
 
Block Cipher and Operation Modes
Block Cipher  and Operation Modes Block Cipher  and Operation Modes
Block Cipher and Operation Modes
 
Block Cipher and its Design Principles
Block Cipher and its Design PrinciplesBlock Cipher and its Design Principles
Block Cipher and its Design Principles
 
Stream Ciphers
Stream CiphersStream Ciphers
Stream Ciphers
 
Symmetric Key Algorithm
Symmetric Key AlgorithmSymmetric Key Algorithm
Symmetric Key Algorithm
 
Product Cipher
Product CipherProduct Cipher
Product Cipher
 
Transposition cipher techniques
Transposition cipher techniquesTransposition cipher techniques
Transposition cipher techniques
 
Polygraphic Substitution Cipher - Part 2
Polygraphic Substitution Cipher  - Part 2Polygraphic Substitution Cipher  - Part 2
Polygraphic Substitution Cipher - Part 2
 
Polygraphic Substitution Cipher -Part 1
Polygraphic Substitution Cipher  -Part 1Polygraphic Substitution Cipher  -Part 1
Polygraphic Substitution Cipher -Part 1
 
Homophonic Substitution Cipher
Homophonic Substitution CipherHomophonic Substitution Cipher
Homophonic Substitution Cipher
 
Polyalphabetic Substitution Cipher
Polyalphabetic Substitution CipherPolyalphabetic Substitution Cipher
Polyalphabetic Substitution Cipher
 
Monoalphabetic Substitution Cipher
Monoalphabetic Substitution  CipherMonoalphabetic Substitution  Cipher
Monoalphabetic Substitution Cipher
 
Classical encryption techniques
Classical encryption  techniquesClassical encryption  techniques
Classical encryption techniques
 
Types of attack -Part3 (Malware Part -2)
Types of attack -Part3 (Malware Part -2)Types of attack -Part3 (Malware Part -2)
Types of attack -Part3 (Malware Part -2)
 
CLASSICAL ENCRYPTION TECHNIQUE- PART 1
CLASSICAL ENCRYPTION TECHNIQUE- PART 1CLASSICAL ENCRYPTION TECHNIQUE- PART 1
CLASSICAL ENCRYPTION TECHNIQUE- PART 1
 
CONVENTIONAL ENCRYPTION
CONVENTIONAL ENCRYPTIONCONVENTIONAL ENCRYPTION
CONVENTIONAL ENCRYPTION
 

Último

Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
AnaAcapella
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 

Último (20)

How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 

Shell and its types in LINUX

  • 1. SHELL AND ITS TYPES IN LINUX Prof. Neeraj Bhargava Mrs. Shubha Chaturvedi Department of Computer Science, School of Engineering & System Science MDS University Ajmer, Rajasthan
  • 2. Linux Shell • Computer understand the language of 0's and 1's called binary language. • In early days of computing, instruction are provided using binary language, which is difficult for all of us, to read and write. • So in O/s there is special program called Shell. • Shell accepts your instruction or commands in English and translate it into computers native binary language.
  • 3. This is what Shell does for users
  • 4. • It's environment provided for user interaction. • Shell is an command language interpreter that executes commands read from the standard input device (keyboard) or from a file. • Linux may use one of the following most popular shells (In MS-DOS, Shell name is COMMAND.COM which is also used for same purpose, but it's not as powerful as our Linux Shells are!)
  • 5. Different Types of Shells • In UNIX there are two major types of shells: 1. The Bourne shell (includes sh, ksh, and bash) 2. The C shell (includes csh and tcsh) • If you are using a Bourne-type shell, the default prompt is the $ character. • If you are using a C-type shell, the default prompt is the % character.
  • 6. The different types of Bourne shells as follow: 1. Bourne shell (sh) 2. Korn shell (ksh) 3. Bourne Again shell (bash) 4. POSIX shell (sh) The different C-type shells follow: 1. C shell (csh) 2. TENEX/TOPS C shell (tcsh)
  • 8. • Any of the above shell reads command from user (via Keyboard or Mouse) and tells Linux O/s what users want. • If we are giving commands from keyboard it is called command line interface ( Usually in-front of $ prompt. This prompt is depend upon your shell and environment that you set or by your System Administrator, therefore you may get different prompt ). • NOTE: To find your shell type following command $ echo $SHELL
  • 9. The Original Bourne Shell • The original UNIX shell was written in the mid-1970s by Stephen R. Bourne while he was at AT&T Bell Labs in New Jersey. • The Bourne shell was the first shell to appear on UNIX systems, thus it is referred to as "the shell.“ • The Bourne shell is usually installed as /bin/sh on most versions of UNIX. For this reason, it is the shell of choice for writing scripts to use on several different versions of UNIX.
  • 10. Features of Bourne Shell In addition to being a command interpreter, the Bourne shell is a powerful language with a programming syntax similar to that of the ALGOL language. Features of the original Bourne shell : 1. Process control 2. Variables 3. Regular expressions 4. Flow control and Loops 5. Powerful input and output controls 6. Functions
  • 11. Drawbacks of Bourne shell Drawbacks of the original Bourne shell is that it is hard to use interactively. 1. No file name completion 2. No command history or command editing 3. Difficulty in executing multiple background processes or jobs
  • 12. The C Shell • Bill Joy developed the C shell while he was at the University of California at Berkeley in the early 1980s. • It was designed to make interactive use of the shell easier for users. • Another design goal was to change the syntax of the shell from the Bourne shell's older ALGOL style to the newer C style. • The C language style of the C shell was intended as an improvement because the C language was familiar to the programmers working on UNIX at Berkeley. • The idea was that a shell that used C language style syntax would be easier to write scripts in than a shell that used the ALGOL style syntax.
  • 13. Drawbacks of C Shell The C shell could not be used for much more than the most trivial scripts. Some of the major drawbacks are : 1. Weak input and output controls 2. Lack of functions 3. Confusing syntax due to a "lazy" command interpreter.
  • 14. Features of C Shell Although the C shell did not catch on for scripts, it has become extremely popular for interactive use. Some this popularity follow: 1. Command History. You can recall commands you previously executed for re- execution. You can also edit the command before it is re- executed. 2. Aliases. You can create short mnemonic names for commands. Aliases are a simplified form of the Bourne shell functions. 3. File Name Completion. You can have the C shell automatically complete a filename by just typing a few characters of the file's name. 4. Job Controls. The C shell enables you to execute multiple processes and control them using the jobs command. The C shell is usually installed on most systems as /bin/csh. The TENEX/TOPS C shell, tcsh, is a newer version of the C shell that enables you to scroll through the command history using the up and down arrow keys.
  • 15. Korn shell • David Korn of AT&T Bell Labs wrote the Korn shell, ksh, which incorporates all the C shell's interactive features into the Bourne shell's syntax. • In recent years, most vendors have started to ship the Korn shell with their versions of UNIX. • Usually you will find it installed as /bin/ksh or /usr/bin/ksh.
  • 16. Features of Korn shell Features that the Korn shell brings to the Bourne shell include the following: • Command history and history substitution • Command aliases and functions • File name completion • Arrays • Built-in integer arithmetic
  • 17. There are 3 major versions of ksh available: • The Official version (ksh) :The Official version is available in binary format (no sources). • The Public Domain version (pdksh): The Public Domain version is available in both binary and source format • The Desktop version (dtksh) :The Desktop version provides the capability to create and display Graphical User Interfaces (GUIs) using ksh syntax.
  • 18. POSIX shell • The POSIX shell is another variant of the Korn shell. • Currently, the only major vendor shipping the POSIX shell is Hewlett-Packard. • In HP-UX 11.0 (Hewlett Packard Unix), the POSIX shell is installed as /bin/sh. The Bourne shell is installed as /usr/old/bin/sh.
  • 19. The Bourne Again Shell • The Bourne Again shell, bash, was developed as part of the GNU project and has replaced the Bourne shell, sh, for GNU-based systems like Linux. • All major Linux distributions, including Red Hat, Slackware, and Caldera, ship with bash as their sh replacement. • Although it includes C shell (csh and tcsh) and Korn shell (ksh) features, bash retains syntax compatibility with the Bourne shell, enabling it to run almost all Bourne shell scripts. • bash was written by Brian Fox of the Free Software Foundation and is currently maintained by Chester Ramey of Case Western Reserve University.
  • 20. • Because bash is an implementation of the IEEE POSIX 1003.2/ISO 9945.2 Shell and Tools specification, it is extremely portable and can be built on most UNIX systems. • It has also been ported to QNX, Minix, OS/2, and Windows 95/NT. Currently, only Linux ships with the Bourne Again shell. It is installed as /bin/bash. On most Linux systems, it is also installed as /bin/sh.
  • 21. Features of the Bourne Again Shell • Some features that bash includes in addition to those of the Korn shell are : • Name completion for variable names, usernames, host names, commands, and filenames • Spelling correction for pathnames in the cd command • Arrays of unlimited size • Integer arithmetic in any base between 2 and 64