Top Banner
1 COMMAND LINE for Designers Lauren Pittenger
38

Command Line for Designers - WordCamp NYC

Apr 07, 2017

Download

Technology

Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Command Line for Designers - WordCamp NYC

1

COMMAND LINEfor Designers

Lauren Pittenger

Page 2: Command Line for Designers - WordCamp NYC

2

ABOUT LAUREN ● Front end designer &

developer at LBDesign, a global communications consultancy

● Instructor for the Women's Coding Collective

● TA & volunteer for Girl Develop It

Page 3: Command Line for Designers - WordCamp NYC

3

ABOUT YOU● Designer who codes

● Want to bridge the gap between design & development skills

● Interested in using tools that are available on the command line

Page 4: Command Line for Designers - WordCamp NYC

4

WHAT WE’LL COVER ● What is the command line?

● Why use the command line?

● Anatomy of the prompt

● Basic commands

● Exercise: setting up a local WordPress install

Page 5: Command Line for Designers - WordCamp NYC

5

LET’S GO!

Don’t worry, it won’t be too scary!

Page 6: Command Line for Designers - WordCamp NYC

6

WHAT IS THE COMMAND LINE?

Page 7: Command Line for Designers - WordCamp NYC

http://www.davidbaumgold.com/tutorials/command-line/

7

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

Page 8: Command Line for Designers - WordCamp NYC

8

WHAT CAN IT DO? ● Download & install WordPress

core, themes and plugins

● Setup & manage local database

● Compile Sass

● Version control

● Make ASCII art

● Automate tasks

● and more!

Page 9: Command Line for Designers - WordCamp NYC

9

BUT I’M A DESIGNER ● Reduce the number of programs

running simultaneously

● Serves as a "home base" when working on unfamiliar computers

● Gives us access to functionality otherwise unavailable to us

● Gives us access to other tools

● Can help save us a lot of time

Page 10: Command Line for Designers - WordCamp NYC

10

WHERE TO FIND IT ON A MAC

Applications › Utilities › Terminal

ON WINDOWS

Start › All Programs › Accessories › Command Prompt

Page 11: Command Line for Designers - WordCamp NYC

11

COMMAND LINE

Page 12: Command Line for Designers - WordCamp NYC

12

ANATOMY OF THE PROMPT

Page 13: Command Line for Designers - WordCamp NYC

13

COMPUTER NAME

Page 14: Command Line for Designers - WordCamp NYC

14

COMPUTER NAME

Page 15: Command Line for Designers - WordCamp NYC

15

CURRENT DIRECTORY

Page 16: Command Line for Designers - WordCamp NYC

16

OSX USERNAME

Page 17: Command Line for Designers - WordCamp NYC

17

BASIC COMMANDS

Page 18: Command Line for Designers - WordCamp NYC

18

LIST DIRECTORY CONTENTS$ ls

Page 19: Command Line for Designers - WordCamp NYC

19

CHANGE DIRECTORIES$ cd nameofdirectory

Page 20: Command Line for Designers - WordCamp NYC

20

TAB TO AUTOCOMPLETE

Page 21: Command Line for Designers - WordCamp NYC

21

CHANGE DIRECTORIES TO ROOT

$ cd /

$ cd ..

CHANGE DIRECTORIES ONE LEVEL UP

Page 22: Command Line for Designers - WordCamp NYC

22

IS DESKTOP CURRENT DIRECTORY?

$ pwd

Page 23: Command Line for Designers - WordCamp NYC

23

CREATE A NEW DIRECTORY$ mkdir mynewdirectory

Page 24: Command Line for Designers - WordCamp NYC

24

CHECK DESKTOP

Page 25: Command Line for Designers - WordCamp NYC

25

CHECK FINDER

Page 26: Command Line for Designers - WordCamp NYC

26

CHANGE DIRECTORY TO mynewdirectory

$ cd mynewdirectory

Page 27: Command Line for Designers - WordCamp NYC

27

LET’S DOWNLOAD WORDPRESS

$ curl -O https://wordpress.org/latest.zip

Page 28: Command Line for Designers - WordCamp NYC

28

OOPS I ENTERED IT WRONG

Page 29: Command Line for Designers - WordCamp NYC

29

DOWNLOADING...

Page 30: Command Line for Designers - WordCamp NYC

30

EXTRACT!$ unzip latest.zip

Page 31: Command Line for Designers - WordCamp NYC

31

CHANGE DIRECTORIES AGAIN$ cd wordpress

Page 32: Command Line for Designers - WordCamp NYC

32

CREATE WP-CONFIG.PHP

$ cp wp-config-sample.php wp-config.php

Page 33: Command Line for Designers - WordCamp NYC

33

FINISHING UP$ open wp-config.php

Page 34: Command Line for Designers - WordCamp NYC

34

BEWARE OF THESE COMMANDS!

$ rm filename

$ rmdir directoryname

These commands will immediately and permanently delete files and folders!

Page 35: Command Line for Designers - WordCamp NYC

RESOURCES

35

● Fosswire Unix/Linux Command Reference Cheatsheet

● WP-CLI: A command line interface for WordPress

● Git: Getting Started

● Lifehacker: A Command Line Primer for Beginners

● Getting Started with Sass and Compass

● The designer’s guide to the OSX command prompt

● Learn Code the Hard Way: Command Line Crash Course

Page 36: Command Line for Designers - WordCamp NYC

BEFORE WE GO

36

$ banner -w 30 THX!

Page 37: Command Line for Designers - WordCamp NYC

37