Slide 1

Slide 1 text

Intro to the shell

Slide 2

Slide 2 text

What are we going to talk about?

Slide 3

Slide 3 text

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

Slide 4

Slide 4 text

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

Slide 5

Slide 5 text

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

Slide 6

Slide 6 text

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

Slide 7

Slide 7 text

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

Slide 8

Slide 8 text

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

Slide 9

Slide 9 text

Have you ever?

Slide 10

Slide 10 text

No content

Slide 11

Slide 11 text

No content

Slide 12

Slide 12 text

No content

Slide 13

Slide 13 text

No content

Slide 14

Slide 14 text

No content

Slide 15

Slide 15 text

No content

Slide 16

Slide 16 text

• If so, you are interacting with “the shell”

Slide 17

Slide 17 text

On Unix based systems, it’s everywhere Like JavaScript in browsers

Slide 18

Slide 18 text

On Unix based systems, it’s everywhere Like JavaScript in browsers

Slide 19

Slide 19 text

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

Slide 20

Slide 20 text

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

Slide 21

Slide 21 text

It was this

Slide 22

Slide 22 text

Not this

Slide 23

Slide 23 text

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)

Slide 24

Slide 24 text

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

Slide 25

Slide 25 text

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`

Slide 26

Slide 26 text

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

Slide 27

Slide 27 text

Shell Commands

Slide 28

Slide 28 text

Shell Commands

Slide 29

Slide 29 text

Shell Commands

Slide 30

Slide 30 text

Vim dev_of_athens.sh

Slide 31

Slide 31 text

Shell Scripting

Slide 32

Slide 32 text

Shell Scripting

Slide 33

Slide 33 text

Shell Scripting

Slide 34

Slide 34 text

Shell Scripting

Slide 35

Slide 35 text

Shell Scripting

Slide 36

Slide 36 text

Shell Scripting

Slide 37

Slide 37 text

Shell Scripting

Slide 38

Slide 38 text

Man • Manual for bash

Slide 39

Slide 39 text

Man • Manualk

Slide 40

Slide 40 text

What did we going to talk about?

Slide 41

Slide 41 text

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

Slide 42

Slide 42 text

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

Slide 43

Slide 43 text

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

Slide 44

Slide 44 text

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

Slide 45

Slide 45 text

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

Slide 46

Slide 46 text

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

Slide 47

Slide 47 text

• http://linuxcommand.org/lts0010.php • https://kb.iu.edu/d/agvf • https://en.wikipedia.org/wiki/ Interpreted_language Sources