Slide 1

Slide 1 text

Command Line goodness Jessie Link RailsGirlsDC June 2014

Slide 2

Slide 2 text

Welcome! • Command line intro • Key commands you can use to be more productive • Difference between Windows and *nix/OSX commands

Slide 3

Slide 3 text

About Me • Jessie Link • Director of Engineering – Living Social • Former US Air Force officer, Wellesley grad • I <3 RailsGirls • I am lazy!

Slide 4

Slide 4 text

Why Use the Command Line • Makes you faster • Powerful • Concise • Sometimes it’s the only way to run certain programs

Slide 5

Slide 5 text

Common commands for getting around in your directories • cd – Change directory – .. lets you go up one level • ls – List contents of directory – Command for windows is dir • pwd – Shows directory you are currently in

Slide 6

Slide 6 text

Moving around on the command line • Ctrl + Left/Right arrow – Jumps between arguments in your – Option instead of Ctrl on Mac • Ctrl + U clears the line • Ctrl + A or the Home key takes you to the front of the line • Ctrl + E or the End key takes you to the end of the line

Slide 7

Slide 7 text

Helpful tips • Tab – Autocompletes directory and/or file name • Up/down arrow – Cycles through commands you’ve previously inputted • clear • Make your terminal beautiful by customizing your ~/.bashrc or ~/.bash_profile

Slide 8

Slide 8 text

If you are on Windows… • Consider using Cygwin • /? after any command will show help and optional flags • To switch between different drives simply type : (e.g - e: will switch to the E drive)

Slide 9

Slide 9 text

Cheatsheets • http://pragtob.github.io/rails- beginner-cheatsheet/ index.html#console • Lifehacker tips - http:// bit.ly/OYOGDt

Slide 10

Slide 10 text

Thank you! • @mad_typist on twitter • Come hang out with me at the various DC Tech meetups • Get the slides here: https:// speakerdeck.com/madtypist/ command-line-goodness 10