Unix Shell Environments September 27, 2004 Class Meeting 6, Part I * Notes adapted by Lenwood Heath from previous work by other members of the CS faculty at Virginia Tech Lenwood Heath, Virginia Tech, Fall, 2004 2 Shell Characteristics ! Command-line interface between the user and the operating system ! Automatically starts on login, waits for user to type in commands ! Both a command interpreter and a programming language ! Shell script is a text file containing logic for shell interpretation Lenwood Heath, Virginia Tech, Fall, 2004 3 Shell Interactivity ! Command line parsing ! Environment ! Textual completion ! Aliases ! Command line editing ! Command history ! Configuration Lenwood Heath, Virginia Tech, Fall, 2004 4 Shell Programming ! Variables ! Control structures ! Loops and conditionals ! Function definition and invocation ! Shell scripts ! Next lecture Lenwood Heath, Virginia Tech, Fall, 2004 5 Various Unix Shells ! sh (Bourne shell, original Unix shell) ! ksh (Korn shell) ! csh (C shell, developed at Berkeley) ! tcsh ! bash (Bourne again SHell) ! Default user shell in Linux ! http://www. faqs .org/ faqs / unix -faq/shell/shell-differences/ Lenwood Heath, Virginia Tech, Fall, 2004 6 Bourne Again SHell ! bash is the standard shell for this class ! Superset of the Bourne shell (sh) ! Borrows features from sh, csh, tcsh, and ksh ! Part of the GNU project
3
Embed
Various Unix Shells Bourne Again SHell Shell Interactivity ...
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Unix Shell Environments
September 27, 2004
Class Meeting 6, Part I
* Notes adapted by Lenwood Heath from previous work by other members of the CS