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

Who's Afraid of the Command Line

9d350fa2294e1192f8f12b0ebf1a1d8b?s=47 Jamf
November 13, 2019
49

Who's Afraid of the Command Line

9d350fa2294e1192f8f12b0ebf1a1d8b?s=128

Jamf

November 13, 2019
Tweet

Transcript

  1. © 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
  2. None
  3. © 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.
  4. © 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
  5. © JAMF Software, LLC

  6. © JAMF Software, LLC

  7. © JAMF Software, LLC

  8. © JAMF Software, LLC

  9. © JAMF Software, LLC

  10. © JAMF Software, LLC

  11. © JAMF Software, LLC

  12. © JAMF Software, LLC

  13. © JAMF Software, LLC

  14. © JAMF Software, LLC

  15. © JAMF Software, LLC Tap!

  16. © JAMF Software, LLC

  17. © 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
  18. © JAMF Software, LLC

  19. © JAMF Software, LLC

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

    command line.
  21. © JAMF Software, LLC A management system can send one

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

    or more commands to all your Macs. Quickly. Consistently.
  23. © JAMF Software, LLC The command line does the same

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

    thing you can do in the Finder. And quite often more.
  25. © JAMF Software, LLC Command + click

  26. © JAMF Software, LLC

  27. © JAMF Software, LLC

  28. © JAMF Software, LLC ls = "list"

  29. © JAMF Software, LLC

  30. © JAMF Software, LLC

  31. © JAMF Software, LLC ls -l = "list one item

    per line"
  32. © JAMF Software, LLC zsh zsh = "zee-shell" = interpreter

  33. © JAMF Software, LLC ls 01010100 00100000 01101001 00100000 01101111

    00100000 01111000 01110101 01100101 01101111 zsh
  34. © JAMF Software, LLC 01101000 01110001 01100011 01100010 01110111 01100110

    00100000 01101101 01100100 01110110 zsh Desktop Documents Downloads Movies Music Pictures Public
  35. © JAMF Software, LLC zsh

  36. © JAMF Software, LLC zsh bash

  37. © JAMF Software, LLC zsh bash tcsh

  38. © JAMF Software, LLC bash tcsh sh

  39. © JAMF Software, LLC tcsh sh csh

  40. © JAMF Software, LLC sh csh ksh

  41. © JAMF Software, LLC csh ksh

  42. © JAMF Software, LLC zsh bash

  43. © JAMF Software, LLC zsh bash tcsh sh csh ksh

  44. © JAMF Software, LLC TextEdit Word BBEdit Pages Google Docs

    TextMate
  45. © 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
  46. © 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'
  47. © JAMF Software, LLC zsh — tab completion tab

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

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

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

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

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

  53. © JAMF Software, LLC bash — tab completion

  54. © JAMF Software, LLC bash — tab completion

  55. © JAMF Software, LLC bash — tab completion

  56. © JAMF Software, LLC bash — tab completion

  57. © JAMF Software, LLC curl parrot.live

  58. © JAMF Software, LLC 1,000 commands-ish ls = "list files

    and folders" open = "open file, folder or URL" mkdir = "make directory" 1,000 commands
  59. © 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"
  60. © 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"
  61. © 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"
  62. © 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"
  63. © JAMF Software, LLC

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

  65. © JAMF Software, LLC

  66. © JAMF Software, LLC

  67. © 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.
  68. © JAMF Software, LLC

  69. © JAMF Software, LLC

  70. © JAMF Software, LLC

  71. © JAMF Software, LLC

  72. © JAMF Software, LLC

  73. © JAMF Software, LLC

  74. © JAMF Software, LLC

  75. © JAMF Software, LLC Quickly. Consistently.

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

    management.
  77. © JAMF Software, LLC The command line does the same

    thing you can do in the Finder.
  78. © JAMF Software, LLC The Terminal is just a window

    to your interpreter.
  79. © JAMF Software, LLC Commands are just tiny applications. ≈

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

    • /usr/bin • /usr/sbin
  81. © JAMF Software, LLC What’s next? Start scripting.

  82. © JAMF Software, LLC

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

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

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

  86. THANK YOU!

  87. © 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