Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Intro to the shell

Travis Douce
September 01, 2015

Intro to the shell

Introduction to shell, command line interface, terminal emulation, and shell scripting at Developers of Athens Meetup on Sept. 1, 2015

Travis Douce

September 01, 2015
Tweet

More Decks by Travis Douce

Other Decks in Programming

Transcript

  1. Have I ever used the shell? CLI vs GUI Terminal

    Emulator Shells Shell Commands Shell Scripting Shell Manual
  2. Have I ever used the shell? CLI vs GUI Terminal

    Emulator Shells Shell Commands Shell Scripting Shell Manual
  3. Have I ever used the shell? CLI vs GUI Terminal

    Emulator Shells Shell Commands Shell Scripting Shell Manual
  4. Have I ever used the shell? CLI vs GUI Terminal

    Emulator Shells Shell Commands Shell Scripting Shell Manual
  5. Have I ever used the shell? CLI vs GUI Terminal

    Emulator Shells Shell Commands Shell Scripting Shell Manual
  6. Have I ever used the shell? CLI vs GUI Terminal

    Emulator Shells Shell Commands Shell Scripting Shell Manual
  7. In the old days (pre 1973 ) there was only

    the CLI (Command Line Interface) There was not GUI (Graphical User Interface)
  8. In the old days (pre 1973 ) there was only

    the CLI (Command Line Interface) There was no GUI (Graphical User Interface)
  9. An aside • In 1973, Xerox PARC developed the Alto

    personal computer. • It had a bitmapped screen, and was the first computer to have a graphical user interface (GUI)
  10. Terminal Emulator • Allows you to access the “Shell session”

    • The terminal emulator (often just called terminal) the “terminal window”. • When you type characters in the window, the terminal • draws these characters in the window • Sends them to the shell's (or other program's) stdin. • Shell executes • Sends output to stdout and stderr • These get sent to the terminal • Terminal draws these characters in the window. • Terminal, iTerm, Konsole, etc
  11. Shells .sh (bash “Bourne Again SHell) .csh (C shell) .ksh

    (KornShell) .tsch (“tee-cee-shell") .zsh (Z shell) • On most Linux systems there are several shells available • They all offer similar functionality, but different syntax and capabilities • Most shells are descendants of bash (Bourne Again SHell) , `sh` • First bash • then `csh` (C shell) • `bash`, `ksh`, `tsch`, and `zsh`
  12. Shell Commands • Most shells double as interpreted programming languages

    • “Interpretted language” • An interpreted language is a programming language execute instructions directly, without previously compiling a program into machine-language instructions
  13. Have I ever used the shell? CLI vs GUI Terminal

    Emulator Shells Shell Commands Shell Scripting Shell Manual
  14. Have I ever used the shell? CLI vs GUI Terminal

    Emulator Shells Shell Commands Shell Scripting Shell Manual
  15. Have I ever used the shell? CLI vs GUI Terminal

    Emulator Shells Shell Commands Shell Scripting Shell Manual
  16. Have I ever used the shell? CLI vs GUI Terminal

    Emulator Shells Shell Commands Shell Scripting Shell Manual
  17. Have I ever used the shell? CLI vs GUI Terminal

    Emulator Shells Shell Commands Shell Scripting Shell Manual
  18. Have I ever used the shell? CLI vs GUI Terminal

    Emulator Shells Shell Commands Shell Scripting Shell Manual