Slide 1

Slide 1 text

© JAMF Software, LLC ‘Who’s Afraid of the Command Line?’ Taking the Mystery Out of the Terminal and Scripting 1:30-2:15 pm UP NEXT

Slide 2

Slide 2 text

No content

Slide 3

Slide 3 text

© JAMF Software, LLC William Smith Professional Services Enginerd, Jamf @talkingmoose In session recording, Picture-in-Picture of you presenting will be placed here. Please don’t put anything especially important in this area.

Slide 4

Slide 4 text

© JAMF Software, LLC In session recording, Picture-in-Picture of you presenting will be placed here. Please don’t put anything especially important in this area. ‘Who’s Afraid of the Command Line?’ Taking the Mystery Out of the Terminal and Scripting

Slide 5

Slide 5 text

© JAMF Software, LLC

Slide 6

Slide 6 text

© JAMF Software, LLC

Slide 7

Slide 7 text

© JAMF Software, LLC

Slide 8

Slide 8 text

© JAMF Software, LLC

Slide 9

Slide 9 text

© JAMF Software, LLC

Slide 10

Slide 10 text

© JAMF Software, LLC

Slide 11

Slide 11 text

© JAMF Software, LLC

Slide 12

Slide 12 text

© JAMF Software, LLC

Slide 13

Slide 13 text

© JAMF Software, LLC

Slide 14

Slide 14 text

© JAMF Software, LLC

Slide 15

Slide 15 text

© JAMF Software, LLC Tap!

Slide 16

Slide 16 text

© JAMF Software, LLC

Slide 17

Slide 17 text

© JAMF Software, LLC In session recording, Picture-in-Picture of you presenting will be placed here. Please don’t put anything especially important in this area. ‘Who’s Afraid of the Command Line?’ Taking the Mystery Out of the Terminal and Scripting

Slide 18

Slide 18 text

© JAMF Software, LLC

Slide 19

Slide 19 text

© JAMF Software, LLC

Slide 20

Slide 20 text

© JAMF Software, LLC No management system can replace the command line.

Slide 21

Slide 21 text

© JAMF Software, LLC A management system can send one or more commands to all your Macs.

Slide 22

Slide 22 text

© JAMF Software, LLC A management system can send one or more commands to all your Macs. Quickly. Consistently.

Slide 23

Slide 23 text

© JAMF Software, LLC The command line does the same thing you can do in the Finder.

Slide 24

Slide 24 text

© JAMF Software, LLC The command line does the same thing you can do in the Finder. And quite often more.

Slide 25

Slide 25 text

© JAMF Software, LLC Command + click

Slide 26

Slide 26 text

© JAMF Software, LLC

Slide 27

Slide 27 text

© JAMF Software, LLC

Slide 28

Slide 28 text

© JAMF Software, LLC ls = "list"

Slide 29

Slide 29 text

© JAMF Software, LLC

Slide 30

Slide 30 text

© JAMF Software, LLC

Slide 31

Slide 31 text

© JAMF Software, LLC ls -l = "list one item per line"

Slide 32

Slide 32 text

© JAMF Software, LLC zsh zsh = "zee-shell" = interpreter

Slide 33

Slide 33 text

© JAMF Software, LLC ls 01010100 00100000 01101001 00100000 01101111 00100000 01111000 01110101 01100101 01101111 zsh

Slide 34

Slide 34 text

© JAMF Software, LLC 01101000 01110001 01100011 01100010 01110111 01100110 00100000 01101101 01100100 01110110 zsh Desktop Documents Downloads Movies Music Pictures Public

Slide 35

Slide 35 text

© JAMF Software, LLC zsh

Slide 36

Slide 36 text

© JAMF Software, LLC zsh bash

Slide 37

Slide 37 text

© JAMF Software, LLC zsh bash tcsh

Slide 38

Slide 38 text

© JAMF Software, LLC bash tcsh sh

Slide 39

Slide 39 text

© JAMF Software, LLC tcsh sh csh

Slide 40

Slide 40 text

© JAMF Software, LLC sh csh ksh

Slide 41

Slide 41 text

© JAMF Software, LLC csh ksh

Slide 42

Slide 42 text

© JAMF Software, LLC zsh bash

Slide 43

Slide 43 text

© JAMF Software, LLC zsh bash tcsh sh csh ksh

Slide 44

Slide 44 text

© JAMF Software, LLC TextEdit Word BBEdit Pages Google Docs TextMate

Slide 45

Slide 45 text

© JAMF Software, LLC In session recording, Picture-in-Picture of you presenting will be placed here. Please don’t put anything especially important in this area. ‘tab completion’ Automatically complete file paths by pressing the tab key

Slide 46

Slide 46 text

© JAMF Software, LLC In session recording, Picture-in-Picture of you presenting will be placed here. Please don’t put anything especially important in this area. open '/Applications/Microsoft OneNote.app'

Slide 47

Slide 47 text

© JAMF Software, LLC zsh — tab completion tab

Slide 48

Slide 48 text

© JAMF Software, LLC zsh — tab completion tab tab

Slide 49

Slide 49 text

© JAMF Software, LLC zsh — tab completion tab tab tab

Slide 50

Slide 50 text

© JAMF Software, LLC zsh — tab completion tab tab tab

Slide 51

Slide 51 text

© JAMF Software, LLC zsh — tab completion tab tab tab

Slide 52

Slide 52 text

© JAMF Software, LLC zsh — tab completion

Slide 53

Slide 53 text

© JAMF Software, LLC bash — tab completion

Slide 54

Slide 54 text

© JAMF Software, LLC bash — tab completion

Slide 55

Slide 55 text

© JAMF Software, LLC bash — tab completion

Slide 56

Slide 56 text

© JAMF Software, LLC bash — tab completion

Slide 57

Slide 57 text

© JAMF Software, LLC curl parrot.live

Slide 58

Slide 58 text

© JAMF Software, LLC 1,000 commands-ish ls = "list files and folders" open = "open file, folder or URL" mkdir = "make directory" 1,000 commands

Slide 59

Slide 59 text

© JAMF Software, LLC 1,000 commands-ish ls = "list files and folders" open = "open file, folder or URL" mkdir = "make directory" softwareupdate = "install macOS updates"

Slide 60

Slide 60 text

© JAMF Software, LLC 1,000 commands-ish ls = "list files and folders" open = "open file, folder or URL" mkdir = "make directory" softwareupdate = "install macOS updates" cat = "read a file"

Slide 61

Slide 61 text

© JAMF Software, LLC 1,000 commands-ish ls = "list files and folders" open = "open file, folder or URL" mkdir = "make directory" softwareupdate = "install macOS updates" cat = "read a file" hostname = "get computer name"

Slide 62

Slide 62 text

© JAMF Software, LLC 1,000 commands-ish ls = "list files and folders" open = "open file, folder or URL" mkdir = "make directory" softwareupdate = "install macOS updates" cat = "read a file" hostname = "get computer name" jamf = "do Jamfy things"

Slide 63

Slide 63 text

© JAMF Software, LLC

Slide 64

Slide 64 text

© JAMF Software, LLC Shift + Command + period (.)

Slide 65

Slide 65 text

© JAMF Software, LLC

Slide 66

Slide 66 text

© JAMF Software, LLC

Slide 67

Slide 67 text

© JAMF Software, LLC softwareupdate softwareupdate --help softwareupdate --list softwareupdate --download softwareupdate --download --install --restart softwareupdate --ignore "macOS Catalina" softwareupdate --reset-ignored softwareupdate --fetch-full-installer In session recording, Picture-in-Picture of you presenting will be placed here. Please don’t put anything especially important in this area.

Slide 68

Slide 68 text

© JAMF Software, LLC

Slide 69

Slide 69 text

© JAMF Software, LLC

Slide 70

Slide 70 text

© JAMF Software, LLC

Slide 71

Slide 71 text

© JAMF Software, LLC

Slide 72

Slide 72 text

© JAMF Software, LLC

Slide 73

Slide 73 text

© JAMF Software, LLC

Slide 74

Slide 74 text

© JAMF Software, LLC

Slide 75

Slide 75 text

© JAMF Software, LLC Quickly. Consistently.

Slide 76

Slide 76 text

© JAMF Software, LLC The command line is necessary for management.

Slide 77

Slide 77 text

© JAMF Software, LLC The command line does the same thing you can do in the Finder.

Slide 78

Slide 78 text

© JAMF Software, LLC The Terminal is just a window to your interpreter.

Slide 79

Slide 79 text

© JAMF Software, LLC Commands are just tiny applications. ≈

Slide 80

Slide 80 text

© JAMF Software, LLC A thousand-ish commands /bin • /sbin • /usr/bin • /usr/sbin

Slide 81

Slide 81 text

© JAMF Software, LLC What’s next? Start scripting.

Slide 82

Slide 82 text

© JAMF Software, LLC

Slide 83

Slide 83 text

© JAMF Software, LLC https://jamf.it/101

Slide 84

Slide 84 text

© JAMF Software, LLC https://jamf.it/101PDF

Slide 85

Slide 85 text

© JAMF Software, LLC https://trainingcatalog.jamf.com

Slide 86

Slide 86 text

THANK YOU!

Slide 87

Slide 87 text

© JAMF Software, LLC Thank you for listening! Give us feedback by completing the 2-question session survey in the JNUC 2019 app. UP NEXT Identity: The Keys to Your Technology 4:00 PM