Command Line Basics for Drupal Site Builders Tara King Customer - - PowerPoint PPT Presentation

command line basics for drupal site builders tara king
SMART_READER_LITE
LIVE PREVIEW

Command Line Basics for Drupal Site Builders Tara King Customer - - PowerPoint PPT Presentation

Command Line Basics for Drupal Site Builders Tara King Customer Service Engineer, Pantheon Leadership Team, Drupal Diversity & Inclusion @sparklingrobots d.o/sparklingrobots Tara King Customer Success Engineer, Pantheon


slide-1
SLIDE 1

Command Line Basics for Drupal Site Builders

slide-2
SLIDE 2

Tara King

Customer Service Engineer, Pantheon Leadership Team, Drupal Diversity & Inclusion @sparklingrobots d.o/sparklingrobots

slide-3
SLIDE 3

Tara King

Customer Success Engineer, Pantheon @sparklingrobots d.o: sparklingrobots

slide-4
SLIDE 4

Who this talk is for

slide-5
SLIDE 5

After this session, you’ll know:

  • How to find the terminal.
  • How to navigate your files.
  • How to get help when you get stuck.
slide-6
SLIDE 6

#SiteBuilderCLI

slide-7
SLIDE 7

Why should site builders learn to use the command line?

Unimaginable power!

slide-8
SLIDE 8

Operating Systems

  • Linux & other *nix systems
  • Mac OS X
  • Windows (Sorry!)
slide-9
SLIDE 9

For Windows Users:

Cygwin: https://www.cygwin.com/

slide-10
SLIDE 10

Don’t Panic.

slide-11
SLIDE 11

What is the command line?

slide-12
SLIDE 12
slide-13
SLIDE 13
slide-14
SLIDE 14

The command line is, at its heart, simply a place where you type commands to the computer.

  • David Baumgold
slide-15
SLIDE 15

Be careful!

slide-16
SLIDE 16

Terminal, console, shell

Mac OS X > Applications > Utilities > Terminal Ubuntu Linux > Applications > System > Terminal

slide-17
SLIDE 17

Anatomy of a command

From https://www.learnenough.com/command-line-tutorial

slide-18
SLIDE 18

Navigation

slide-19
SLIDE 19

Navigation

slide-20
SLIDE 20

Current & Parent Directory

. = current dir .. = parent dir

slide-21
SLIDE 21

root vs. home

root = / home = ~

slide-22
SLIDE 22

ls

Lists all files in a directory

ls -al

  • a = all of them -l = long format
slide-23
SLIDE 23

Useful commands cd sites/default/files = change into directory cp example.settings.php settings.php = copy rm mytemplate.html.twig = remove file or directory mkdir my_theme = make directory for new theme pwd = print working directory

slide-24
SLIDE 24

How can I learn more?

  • 1. Google it.
  • 2. Check the man page (man ls).
  • 3. Try using -h, --help, -v (php

help).

slide-25
SLIDE 25

Text Editors

slide-26
SLIDE 26

Text Editors

vim nano vi less emacs ....and many more!

slide-27
SLIDE 27

The best text editor is the one you use.

slide-28
SLIDE 28

How to open nano

nano file.txt

slide-29
SLIDE 29

Connecting to other computers

slide-30
SLIDE 30

FTP/SFTP

File Transfer Protocol / Secure File Transfer Protocol

slide-31
SLIDE 31

SSH (Secure Shell)

slide-32
SLIDE 32

ssh-keygen

slide-33
SLIDE 33

Version control

slide-34
SLIDE 34

What is version control?

MyCoolProject.txt MyCoolProject2.txt MyCoolProject3.txt MyCoolProject3b.txt MyCoolProjectFinal.txt MyCoolProjectFinalFinal.txt MyCoolProjectFinalFinal2LastChangeIPromise.txt

slide-35
SLIDE 35

Let’s see it in action...

slide-36
SLIDE 36

Deep Dive!

Let’s Learn Git: No More Excuses

October 27, 3:45 PM-4:30 PM

Tilden Dwayne McDaniel

slide-37
SLIDE 37

Drush

slide-38
SLIDE 38

What’s Drush? A Command Line Shell For Drupal

slide-39
SLIDE 39

A (short) list of things Drush does...

Install/update Drupal core & contrib modules Change passwords or log-in to your site Clear caches Export/import configuration ...and much, much more!

slide-40
SLIDE 40

Install a new module

slide-41
SLIDE 41
slide-42
SLIDE 42

Composer, MySQL...and beyond!

slide-43
SLIDE 43

Resources: http://bit.ly/SiteBuilderCLI

slide-44
SLIDE 44

Questions!