SlideShare a Scribd company logo
GETTING A CLUE 
AT THE COMMAND LINE 
E M M A J A N E H O G B I N W E S T B Y 
drupal.org/user/1773 
@emmajanehw 
http://bit.ly/getting-a-clue
1. Start by understanding 
how you’ll benefit. 
2. Group functionality and 
map it to things you 
already know. 
3. Play the pre-game to 
learn the moves. 
4. It’ll be okay. Don’t panic.
too long; didn’t listen 
tl;dl 
It’s because there are no pictures. 
You’ll need to learn to make your own.
How People Think 
30% visual/spatial 
45% visual + words 
http://rebloggy.com/post/spoilers-mine-sherlock-bbc-sherlock-sherlock-spoilers-his-last-vow-lars-mikkelse/73135846244 
25% words 
http://en.wikipedia.org/wiki/Visual_thinking
http://www.mobygames.com/game/amiga/dune-ii-the-building-of-a-dynasty/screenshots/gameShotId,142587/
$ _
http://en.wikipedia.org/wiki/Palace
start by understanding 
how you’ll benefit
goal: consistency
so what? 
copy-paste-able 
commands
so what? 
it’s easily 
converted to a script
so what? 
scripts can be 
automated
so what? 
automation means 
fewer mistakes
group functionality and 
map it to things you 
already know
1. task runners 
2. scaffolding 
3. package managers
task runners 
Task runners are a set of tools to make build 
operations consistent, clean and well 
documented. They provide helpers to manage 
operations on the project file system via the 
command line.
http://en.wikipedia.org/wiki/Ball_boy
Examples of Task Runners 
• Front end: grunt, gulp, (npm), broccoli, brunch 
• Linux: Make
scaffolding 
Design time scaffolding produces files of code that 
can later be modified by the programmer to 
customize the way the application database is used.
http://en.wikipedia.org/wiki/Lego_Star_Wars
Examples of 
Scaffolding 
• Tangibles: Lego kit 
• Front end dev: Yeoman 
• Drupal: base theme (with starter theme) 
• Linux: Make
Scaffolding 
Common Tasks 
• create an empty shell site 
$ yo webapp 
• create a new site 
$ compass create my_project
package managers 
A package management system, also called 
package manager, is a collection of software tools to 
automate the process of installing, upgrading, 
configuring, and removing software packages for 
a computer's operating system in a consistent 
manner.
Getting a CLUE at the Command Line
Examples of 
Package Managers 
• OSX: Mac App Store, MacPorts, brew 
• Linux: dpkg, RPM 
• Front End Dev: npm, Bower, RubyGems
Package Manager 
Common Tasks 
• locate software 
$ brew search git 
• install software 
$ brew install git 
• check if updates are available 
$ brew update! 
• install latest version 
$ brew upgrade git
Create Your Mental Palace 
Sport 
Package 
Manager 
Scaffolding Task Runner 
Generic 
download, install 
environment 
create new 
instance 
automate tasks 
Tennis 
builds a tennis 
stadium 
Sets up the 
tennis net 
Retrieves the 
ball during the 
game. 
Front end dev bower yeoman grunt 
???
play the pre-game 
to learn the moves
Good command line utilities 
make you feel smart. 
• The help sub-command includes a functional, 
not alphabetical, grouping of tasks. 
• Always gives an output to the screen after running. 
• Provides tips on customisation, and “next steps”.
Tips for Navigating 
• To navigate past commands, use the arrow keys. 
• To list past commands, type: history. 
• To repeat a previous command, use !history# 
• To search for past commands, use CTRL-r.
Tips for Typing Commands 
• Auto-complete what you’re typing with the tab key. 
• To delete a word in your command, use CTRL-w. 
• To jump to the beginning of the line, use CTRL-a. 
• To jump to the end of the line, use CTRL-e.
Pro Tip 
remap your caps lock key on OSX
Finding 
the Command Line
Command Line Interface 
http://en.wikipedia.org/wiki/Command_Prompt
Getting a CLUE at the Command Line
$ _
Determining Input
define:prompt 
• a transitive verb meaning To move to action. 
? forward 90 
> open mailbox
define:command 
verb! 
• give an authoritative or peremptory order. "a gruff 
voice commanded us to enter” 
noun! 
1. an authoritative order. "he obeyed her commands 
without question" 
2. the ability to use or control something.
Commands 
One-word actions: 
• sing 
• jump 
• look 
One-word commands: 
• help 
• exit 
• history
Commands with Parameters 
An action, and a direct object:! 
• take book 
• read pamphlet 
• open window 
Commands with parameters:! 
• cd /var/www 
• man <command_name> 
• mv current_name.jpg new_name.jpg
Commands with Parameters 
and Modifiers 
Refining the request:! 
• go down stairs 
• take blue pill 
• open left door 
Adding a flag/switch/modifier:! 
• mkdir -p directory/sub-directory 
• tar xvf file_to_extract.tar.gz 
• ls -lh
Ten Commands
“all” commands 
http://www.commandlinefu.com/commands/browse 
This site includes a “rating” function.
It’ll be okay. 
Don’t panic.
read outputs in both 
directions.
the reptile brain
The type of output can change depending 
on the commands you’re running. 
Read outputs in both directions.! 
• Information from the program you just ran: 
read top to bottom 
• Printed summary of actions taken: 
read bottom to top
http://en.wikipedia.org/wiki/Palace
1. Start by understanding 
how you’ll benefit. 
2. Group functionality and 
map it to things you 
already know. 
3. Play the pre-game to 
learn the moves. 
4. It’ll be okay. Don’t panic.
WHAT DID YOU THINK? 
E V A U L A T E T H I S S E S S I O N - W R I T T E N F E E D B A C K F O R M S 
FOR MORE INFORMATION 
drupal.org/user/1773 
@emmajanehw 
http://bit.ly/getting-a-clue

More Related Content

What's hot (20)

PPTX
5 things STILL! TOO! HARD! in Plone 5
Dylan Jay
 
PPTX
Untangling spring week5
Derek Jacoby
 
PPTX
Untangling spring week10
Derek Jacoby
 
PDF
DevOps for Drupal: Why We Cook With Chef
Promet Source
 
ODP
How To Contribute Drupalcon
guestc9344e
 
PPTX
Untangling fall2017 week1
Derek Jacoby
 
PPTX
Untangling spring week11
Derek Jacoby
 
ODP
Lightning Fast Drupal Theming (Drupal 7)
Globe Runner
 
PDF
Git Makes Me Angry Inside
Emma Jane Hogbin Westby
 
PDF
Forensic Theming for Drupal
Emma Jane Hogbin Westby
 
PDF
Drupal Presentation for CapitalCamp 2011: Features Driven Development
Mediacurrent
 
PDF
Don't make me wait! or Building High-Performance Web Applications
Stoyan Stefanov
 
PDF
Forensic Theming - DrupalCon London
Emma Jane Hogbin Westby
 
PPTX
Ready. Set. Drupal! An Intro to Drupal 8, Part 2
Acquia
 
PPTX
Drupal haters gonna hate
Marcus Deglos
 
PDF
Style Guide Best Practices
Brad Frost
 
PDF
Evaluating Base Themes
Emma Jane Hogbin Westby
 
PPTX
Untangling - fall2017 - week 8
Derek Jacoby
 
PDF
Automated testing DrupalCamp in Asheville
Promet Source
 
PDF
Pimpin' [Software Projects] Ain't Easy
Amy Hoy
 
5 things STILL! TOO! HARD! in Plone 5
Dylan Jay
 
Untangling spring week5
Derek Jacoby
 
Untangling spring week10
Derek Jacoby
 
DevOps for Drupal: Why We Cook With Chef
Promet Source
 
How To Contribute Drupalcon
guestc9344e
 
Untangling fall2017 week1
Derek Jacoby
 
Untangling spring week11
Derek Jacoby
 
Lightning Fast Drupal Theming (Drupal 7)
Globe Runner
 
Git Makes Me Angry Inside
Emma Jane Hogbin Westby
 
Forensic Theming for Drupal
Emma Jane Hogbin Westby
 
Drupal Presentation for CapitalCamp 2011: Features Driven Development
Mediacurrent
 
Don't make me wait! or Building High-Performance Web Applications
Stoyan Stefanov
 
Forensic Theming - DrupalCon London
Emma Jane Hogbin Westby
 
Ready. Set. Drupal! An Intro to Drupal 8, Part 2
Acquia
 
Drupal haters gonna hate
Marcus Deglos
 
Style Guide Best Practices
Brad Frost
 
Evaluating Base Themes
Emma Jane Hogbin Westby
 
Untangling - fall2017 - week 8
Derek Jacoby
 
Automated testing DrupalCamp in Asheville
Promet Source
 
Pimpin' [Software Projects] Ain't Easy
Amy Hoy
 

Similar to Getting a CLUE at the Command Line (20)

PPTX
Advanced windows debugging
chrisortman
 
PDF
10x Command Line Fu
Anthony Bui
 
PPTX
The basics of hacking and penetration testing 이제 시작이야 해킹과 침투 테스트 kenneth.s.kwon
Kenneth Kwon
 
PDF
On the Edge Systems Administration with Golang
Chris McEniry
 
PDF
Where is the bottleneck
Manuel Miranda de Cid
 
PPT
Introduction to the intermediate Python - v1.1
Andrei KUCHARAVY
 
PPTX
Vulnerability, exploit to metasploit
Tiago Henriques
 
PDF
Unleash your inner console cowboy
Kenneth Geisshirt
 
PDF
PAC 2019 virtual Christoph NEUMÜLLER
Neotys
 
PDF
What we Learned Implementing Puppet at Backstop
Puppet
 
PDF
Wait, IPython can do that?! (30 minutes)
Sebastian Witowski
 
PDF
Packaging is the Worst Way to Distribute Software, Except for Everything Else
mckern
 
PDF
Practicing Python 3
Mosky Liu
 
PPTX
Burp plugin development for java n00bs (44 con)
Marc Wickenden
 
ODP
NYPHP March 2009 Presentation
brian_dailey
 
PDF
the productive programer: mechanics
elliando dias
 
PPT
ch01-basic-java-programs.ppt
Mahyuddin8
 
PPTX
Processes
primeteacher32
 
PDF
Getting root with benign app store apps vsecurityfest
Csaba Fitzl
 
PDF
[Hackersuli][HUN]MacOS - Going Down the Rabbit Hole
hackersuli
 
Advanced windows debugging
chrisortman
 
10x Command Line Fu
Anthony Bui
 
The basics of hacking and penetration testing 이제 시작이야 해킹과 침투 테스트 kenneth.s.kwon
Kenneth Kwon
 
On the Edge Systems Administration with Golang
Chris McEniry
 
Where is the bottleneck
Manuel Miranda de Cid
 
Introduction to the intermediate Python - v1.1
Andrei KUCHARAVY
 
Vulnerability, exploit to metasploit
Tiago Henriques
 
Unleash your inner console cowboy
Kenneth Geisshirt
 
PAC 2019 virtual Christoph NEUMÜLLER
Neotys
 
What we Learned Implementing Puppet at Backstop
Puppet
 
Wait, IPython can do that?! (30 minutes)
Sebastian Witowski
 
Packaging is the Worst Way to Distribute Software, Except for Everything Else
mckern
 
Practicing Python 3
Mosky Liu
 
Burp plugin development for java n00bs (44 con)
Marc Wickenden
 
NYPHP March 2009 Presentation
brian_dailey
 
the productive programer: mechanics
elliando dias
 
ch01-basic-java-programs.ppt
Mahyuddin8
 
Processes
primeteacher32
 
Getting root with benign app store apps vsecurityfest
Csaba Fitzl
 
[Hackersuli][HUN]MacOS - Going Down the Rabbit Hole
hackersuli
 
Ad

More from Emma Jane Hogbin Westby (20)

PDF
Was it something I said?
Emma Jane Hogbin Westby
 
PDF
HOWTO Empathy
Emma Jane Hogbin Westby
 
PDF
Lessons From an Unlikely Superhero
Emma Jane Hogbin Westby
 
PDF
PSD to Theme: The SMACSS Way
Emma Jane Hogbin Westby
 
PDF
Git Makes Me Angry Inside - DrupalCon Prague
Emma Jane Hogbin Westby
 
PDF
Was It Something I Said? The Art of Giving (and getting) A Critique
Emma Jane Hogbin Westby
 
PDF
Beyond the Bikeshed
Emma Jane Hogbin Westby
 
PDF
Gamestorming Meets Quiet
Emma Jane Hogbin Westby
 
PDF
Work Flow for Solo Developers and Small Teams
Emma Jane Hogbin Westby
 
PDF
Speaker Check-in - 3 - Munich
Emma Jane Hogbin Westby
 
PDF
Responsive Web Design for Drupal, CMS Expo
Emma Jane Hogbin Westby
 
PDF
Selling Hopes and Dreams - DrupalCamp Toronto
Emma Jane Hogbin Westby
 
PDF
There's a Module for That, MIMA Summit 2010
Emma Jane Hogbin Westby
 
PDF
Intro to Theming Drupal, FOSSLC Summer Camp 2010
Emma Jane Hogbin Westby
 
PDF
Advanced Layout Techniques @ CMSExpo
Emma Jane Hogbin Westby
 
PDF
Design to Theme @ CMSExpo
Emma Jane Hogbin Westby
 
PDF
Drupal Help System
Emma Jane Hogbin Westby
 
PDF
Lessons from Life Coaching for Linux
Emma Jane Hogbin Westby
 
PDF
Beautiful In Print
Emma Jane Hogbin Westby
 
PDF
We Economy - Drupalsouth
Emma Jane Hogbin Westby
 
Was it something I said?
Emma Jane Hogbin Westby
 
Lessons From an Unlikely Superhero
Emma Jane Hogbin Westby
 
PSD to Theme: The SMACSS Way
Emma Jane Hogbin Westby
 
Git Makes Me Angry Inside - DrupalCon Prague
Emma Jane Hogbin Westby
 
Was It Something I Said? The Art of Giving (and getting) A Critique
Emma Jane Hogbin Westby
 
Beyond the Bikeshed
Emma Jane Hogbin Westby
 
Gamestorming Meets Quiet
Emma Jane Hogbin Westby
 
Work Flow for Solo Developers and Small Teams
Emma Jane Hogbin Westby
 
Speaker Check-in - 3 - Munich
Emma Jane Hogbin Westby
 
Responsive Web Design for Drupal, CMS Expo
Emma Jane Hogbin Westby
 
Selling Hopes and Dreams - DrupalCamp Toronto
Emma Jane Hogbin Westby
 
There's a Module for That, MIMA Summit 2010
Emma Jane Hogbin Westby
 
Intro to Theming Drupal, FOSSLC Summer Camp 2010
Emma Jane Hogbin Westby
 
Advanced Layout Techniques @ CMSExpo
Emma Jane Hogbin Westby
 
Design to Theme @ CMSExpo
Emma Jane Hogbin Westby
 
Drupal Help System
Emma Jane Hogbin Westby
 
Lessons from Life Coaching for Linux
Emma Jane Hogbin Westby
 
Beautiful In Print
Emma Jane Hogbin Westby
 
We Economy - Drupalsouth
Emma Jane Hogbin Westby
 
Ad

Recently uploaded (20)

PDF
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
PDF
IoT-Powered Industrial Transformation – Smart Manufacturing to Connected Heal...
Rejig Digital
 
PPTX
"Autonomy of LLM Agents: Current State and Future Prospects", Oles` Petriv
Fwdays
 
PDF
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
PDF
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
PDF
NewMind AI - Journal 100 Insights After The 100th Issue
NewMind AI
 
PPTX
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
PDF
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
PDF
What Makes Contify’s News API Stand Out: Key Features at a Glance
Contify
 
PDF
Presentation - Vibe Coding The Future of Tech
yanuarsinggih1
 
PDF
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
PPTX
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 
PDF
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
PDF
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
PDF
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
PDF
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
PDF
Mastering Financial Management in Direct Selling
Epixel MLM Software
 
PPTX
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
PDF
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 
PDF
How Startups Are Growing Faster with App Developers in Australia.pdf
India App Developer
 
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
IoT-Powered Industrial Transformation – Smart Manufacturing to Connected Heal...
Rejig Digital
 
"Autonomy of LLM Agents: Current State and Future Prospects", Oles` Petriv
Fwdays
 
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
NewMind AI - Journal 100 Insights After The 100th Issue
NewMind AI
 
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
What Makes Contify’s News API Stand Out: Key Features at a Glance
Contify
 
Presentation - Vibe Coding The Future of Tech
yanuarsinggih1
 
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
Mastering Financial Management in Direct Selling
Epixel MLM Software
 
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 
How Startups Are Growing Faster with App Developers in Australia.pdf
India App Developer
 

Getting a CLUE at the Command Line