Академический Документы
Профессиональный Документы
Культура Документы
common tasks.
What this means is that the shell allows us to execute programs that are generic
enough to take parameters.
For example, by using the file copy program cp, supplying a source file and a
destination file as parameters (also known as arguments), it is possible to copy a
file from one location to another in the file system.
Manage the execution of commands.
It allows users to define shortcuts and abbreviations to refer to these commands
and even to serve as a handy tool for knitting together commands to create
conglomerates that function as new commands (they're called scripts).In terms
of flexibility, performance, task automation, and repetitive processing of tasks,
the shell in the hands of a knowledgeable user still beats a GUI hands down.
Different Types of Shell
The earliest versions of UNIX came with what is today known as the Bourne shell
(also known as sh), named after its inventor, Steve Bourne.
Since then a variety of shell flavours have emerged. However, the core
functionality and basic syntax of all of these shells has changed very little.
The Cshell (or csh), distributed as part of BSD UNIX, was the next popular flavor
of the shell to arrive.
The Cshell syntax resembles the C programming language (particularly when it
comes to writing shell scripts), hence its name.
Other popular shells soon arrived Among them were the Korn shell (or ksh),
which was written by David Korn of AT &T Bell Laboratories, and tcsh or the
Cshell with commandcompletion features that is, the shell intuitively'
completes the commands when we type them in.
The Born Again shell (or Bash) is one of the newer flavors of the shell, and is
almost completely compatible with its ancestor, the Bourne shell.
this is the topmost directory, and contains subdirectories and files. We refer to
the root directory by using the forward slash (/).From this basic structure, there
are a number of tasks that we may need to do, such as changing the working
directory, establishing the contents of a particular directory, or creating, copying,
moving, and deleting files and directories.