L13_linux Unit 1 Commands
L13_linux Unit 1 Commands
LINUX COMMANDS
Linux Commands
Shell
The shell sits between you and the operating
system, acting as a command interpreter.
Shell
The original shell was the Bourne shell, sh.
Every Unix platform will either have the Bourne shell,
or a Bourne compatible shell available.
The default prompt for the Bourne shell is $ (or #, for
the root user).
Another popular shell is C Shell. The default prompt
for the C shell is %.
Linux Commands
Shell
Numerous other shells are available from the network.
Almost all of them are based on either sh or csh with
extensions to provide job control to sh, allow in-line
editing of commands, page through previously executed
commands, provide command name completion and
custom prompt, etc.
Some of the more well known of these may be on your
favorite Unix system: the Korn shell, ksh, by David Korn
and
the Bourne Again SHell, bash, from the Free Software
Foundations GNU project, both based on sh,
the T-C shell, tcsh, and the extended C shell, cshe, both
based on csh.
Linux Commands
Shell Programming
You can write shell programs by creating scripts
containing a series of shell commands.
Shell Programming
The first line is followed by commands
Within the scripts # indicates a comment from that
point until the end of the line, with #! being a
special case if found as the first characters of the
file.
#!/bin/bash