$30 off During Our Annual Pro Sale. View Details »

Who's Afraid of the Command Line

Jamf
November 13, 2019
120

Who's Afraid of the Command Line

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

    View Slide

  2. View Slide

  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.

    View Slide

  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

    View Slide

  5. © JAMF Software, LLC

    View Slide

  6. © JAMF Software, LLC

    View Slide

  7. © JAMF Software, LLC

    View Slide

  8. © JAMF Software, LLC

    View Slide

  9. © JAMF Software, LLC

    View Slide

  10. © JAMF Software, LLC

    View Slide

  11. © JAMF Software, LLC

    View Slide

  12. © JAMF Software, LLC

    View Slide

  13. © JAMF Software, LLC

    View Slide

  14. © JAMF Software, LLC

    View Slide

  15. © JAMF Software, LLC
    Tap!

    View Slide

  16. © JAMF Software, LLC

    View Slide

  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

    View Slide

  18. © JAMF Software, LLC

    View Slide

  19. © JAMF Software, LLC

    View Slide

  20. © JAMF Software, LLC
    No management system

    can replace the command line.

    View Slide

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

    one or more commands to all your Macs.

    View Slide

  22. © JAMF Software, LLC
    A management system can send

    one or more commands to all your Macs.

    Quickly. Consistently.

    View Slide

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

    View Slide

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

    And quite often more.

    View Slide

  25. © JAMF Software, LLC
    Command + click

    View Slide

  26. © JAMF Software, LLC

    View Slide

  27. © JAMF Software, LLC

    View Slide

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

    View Slide

  29. © JAMF Software, LLC

    View Slide

  30. © JAMF Software, LLC

    View Slide

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

    View Slide

  32. © JAMF Software, LLC

    zsh
    zsh = "zee-shell" = interpreter

    View Slide

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

    zsh

    View Slide

  34. © JAMF Software, LLC
    01101000
    01110001
    01100011
    01100010
    01110111
    01100110
    00100000
    01101101
    01100100
    01110110

    zsh
    Desktop
    Documents
    Downloads
    Movies
    Music
    Pictures
    Public

    View Slide

  35. © JAMF Software, LLC

    zsh

    View Slide

  36. © JAMF Software, LLC

    zsh

    bash

    View Slide

  37. © JAMF Software, LLC

    zsh

    bash

    tcsh

    View Slide

  38. © JAMF Software, LLC

    bash

    tcsh

    sh

    View Slide

  39. © JAMF Software, LLC

    tcsh

    sh

    csh

    View Slide

  40. © JAMF Software, LLC

    sh

    csh

    ksh

    View Slide

  41. © JAMF Software, LLC

    csh

    ksh

    View Slide

  42. © JAMF Software, LLC

    zsh

    bash

    View Slide

  43. © JAMF Software, LLC

    zsh

    bash

    tcsh

    sh

    csh

    ksh

    View Slide

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

    View Slide

  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

    View Slide

  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'

    View Slide

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

    View Slide

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

    View Slide

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

    View Slide

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

    View Slide

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

    View Slide

  52. © JAMF Software, LLC
    zsh — tab completion

    View Slide

  53. © JAMF Software, LLC
    bash — tab completion

    View Slide

  54. © JAMF Software, LLC
    bash — tab completion

    View Slide

  55. © JAMF Software, LLC
    bash — tab completion

    View Slide

  56. © JAMF Software, LLC
    bash — tab completion

    View Slide

  57. © JAMF Software, LLC
    curl parrot.live

    View Slide

  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

    View Slide

  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"

    View Slide

  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"

    View Slide

  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"

    View Slide

  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"

    View Slide

  63. © JAMF Software, LLC

    View Slide

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

    View Slide

  65. © JAMF Software, LLC

    View Slide

  66. © JAMF Software, LLC

    View Slide

  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.

    View Slide

  68. © JAMF Software, LLC

    View Slide

  69. © JAMF Software, LLC

    View Slide

  70. © JAMF Software, LLC

    View Slide

  71. © JAMF Software, LLC

    View Slide

  72. © JAMF Software, LLC

    View Slide

  73. © JAMF Software, LLC

    View Slide

  74. © JAMF Software, LLC

    View Slide

  75. © JAMF Software, LLC
    Quickly. Consistently.

    View Slide

  76. © JAMF Software, LLC
    The command line

    is necessary for management.

    View Slide

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

    View Slide

  78. © JAMF Software, LLC
    The Terminal is just a window

    to your interpreter.

    View Slide

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

    View Slide

  80. © JAMF Software, LLC
    A thousand-ish commands

    /bin • /sbin • /usr/bin • /usr/sbin

    View Slide

  81. © JAMF Software, LLC
    What’s next?

    Start scripting.

    View Slide

  82. © JAMF Software, LLC

    View Slide

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

    View Slide

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

    View Slide

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

    View Slide

  86. THANK YOU!

    View Slide

  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

    View Slide