Command Line Basics for Drupal Site Builders Tara King Customer - - PowerPoint PPT Presentation
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 2
Tara King
Customer Service Engineer, Pantheon Leadership Team, Drupal Diversity & Inclusion @sparklingrobots d.o/sparklingrobots
SLIDE 3
Tara King
Customer Success Engineer, Pantheon @sparklingrobots d.o: sparklingrobots
SLIDE 4
Who this talk is for
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
#SiteBuilderCLI
SLIDE 7
Why should site builders learn to use the command line?
Unimaginable power!
SLIDE 8
Operating Systems
- Linux & other *nix systems
- Mac OS X
- Windows (Sorry!)
SLIDE 9
For Windows Users:
Cygwin: https://www.cygwin.com/
SLIDE 10
Don’t Panic.
SLIDE 11
What is the command line?
SLIDE 12
SLIDE 13
SLIDE 14
The command line is, at its heart, simply a place where you type commands to the computer.
- David Baumgold
SLIDE 15
Be careful!
SLIDE 16
Terminal, console, shell
Mac OS X > Applications > Utilities > Terminal Ubuntu Linux > Applications > System > Terminal
SLIDE 17
Anatomy of a command
From https://www.learnenough.com/command-line-tutorial
SLIDE 18
Navigation
SLIDE 19
Navigation
SLIDE 20
Current & Parent Directory
. = current dir .. = parent dir
SLIDE 21
root vs. home
root = / home = ~
SLIDE 22
ls
Lists all files in a directory
ls -al
- a = all of them -l = long format
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
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
Text Editors
SLIDE 26
Text Editors
vim nano vi less emacs ....and many more!
SLIDE 27
The best text editor is the one you use.
SLIDE 28
How to open nano
nano file.txt
SLIDE 29
Connecting to other computers
SLIDE 30
FTP/SFTP
File Transfer Protocol / Secure File Transfer Protocol
SLIDE 31
SSH (Secure Shell)
SLIDE 32
ssh-keygen
SLIDE 33
Version control
SLIDE 34
What is version control?
MyCoolProject.txt MyCoolProject2.txt MyCoolProject3.txt MyCoolProject3b.txt MyCoolProjectFinal.txt MyCoolProjectFinalFinal.txt MyCoolProjectFinalFinal2LastChangeIPromise.txt
SLIDE 35
Let’s see it in action...
SLIDE 36
Deep Dive!
Let’s Learn Git: No More Excuses
October 27, 3:45 PM-4:30 PM
Tilden Dwayne McDaniel
SLIDE 37
Drush
SLIDE 38
What’s Drush? A Command Line Shell For Drupal
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
Install a new module
SLIDE 41
SLIDE 42
Composer, MySQL...and beyond!
SLIDE 43
Resources: http://bit.ly/SiteBuilderCLI
SLIDE 44