Topic 5
Topic 5
0
LINUX SHELLS
SHELL SCRIPT
Shell is the interface between end user and
in Windows
Typical operations performed by shell
scripts include
file manipulation, program execution, text printing.
of programs.
Version 7, It replaced the Thompson shell, but the executable file had the same name, sh.
It was developed by Stephen Bourne, and released in 1977 in
the Version 7 Unix. It remains a popular default shell for Unix accounts. The binary program of the Bourne shell or a compatible program is located at /bin/sh on most Unix systems
Its command interpreter contained all the features that are
commonly considered to produce structured programs. Although it is used as an interactive command interpreter, it was always intended as a scripting language.
late 1970s. It has been distributed widely in 1978. The C shell is a command processor that's typically run in a text window, allowing the user to type commands which cause actions. The C shell can also read commands from a file, called a script. C shell has an interactive features and overall style. Its new features made it easier and faster to use. And the overall style of the language looked more like C and was seen as more readable.
appear in the GNU operating system. Bash is an sh-compatible shell that incorporates useful features from the Korn shell (ksh) and C shell (csh). It offers functional improvements over sh for both programming and interactive use. In addition, most sh scripts can be run by Bash without modification. The manual is available online at www.gnu.org/software/bash/manual/. BASH can be downloaded at http://ftp.gnu.org/gnu/bash/
developed by David Korn in the early 1980s. It is backwards-compatible with the Bourne shell but includes many features of the C shell as well, such as a command history The main advantage of ksh over the traditional Unix shell is in its use as a programming language. Several features were gradually added, while maintaining strong backwards compatibility with the Bourne shell.
originally developed by Kenneth Almquists it is a fast, small, POSIX-compatible Unix shell designed to replace the Bourne shell in later BSD distributions. Originally it did not feature line editing or command history mechanisms - should be moved into the terminal driver; ash are installed as the default shell (/bin/sh) on FreeBSD, NetBSD, DragonFly BSD and Minix. Debian's version of ash is known as Debian Almquist Shell (dash).
window.
A terminal window allows the user access to Command Line
other hosts regardless of terminal type and characteristics, Allows remote log-on by LAN managers for the purpose of management, Allows users to access information from another host processor for transaction processing, Serves as a backup facility.
hassles.
Pico is not very good when manipulating certain types of files such as
complicated Vi.
Unlike Vi, we don't need to switch between modes to perform basic
the internal editor and opening the file specified on the command
line.
The editor is based on the terminal version of cooledit (standalone
Nedit editor
already installed in Computer Systems smaller and easier to use/customise than emacs easy to get it to do syntax colouring for Java/HTML etc suitable for Unix/Linux only (see below) impossible to use via telnet/ssh more difficult than emacs
Xedit editor
It is a text editor for the X Window System on Linux and UNIX