SlideShare a Scribd company logo
1 of 28
Download to read offline
Saturday, August 24, 13
daniel immke
Design Engineer at 10up
Worked with WordPress
for 5 years
Started regularly using
command line about 7
months ago
Saturday, August 24, 13
my story
Saturday, August 24, 13
my story
Developed themes for several years
Scared to adopt tools like version
control because of perceived difficulty
Working at 10up and learning command
line helped me break through that
Saturday, August 24, 13
what is
command line?
Saturday, August 24, 13
Saturday, August 24, 13
Command line is not a scary tool
that only hackers use.
Saturday, August 24, 13
Command line is simply a different way
of using your computer.
Saturday, August 24, 13
It’s the same!
Saturday, August 24, 13
Facts about command line
It was the original way to use a
computer
Advanced users still prefer it
because it is more powerful
Saturday, August 24, 13
command line basics
cd - Change directory
ls - List files in directory
nano - Opens file in simple
text editor program
program specific commands
Saturday, August 24, 13
command line basics
mkdir - Create folder
cp - Copy a file
mv - Rename/move file
command -flag param1 param2
rm - Removes a file
Saturday, August 24, 13
command line basics
There are several other commands
that one can learn to navigate the
filesystem and edit files, that you
can learn as you go.
Saturday, August 24, 13
password prompts
These happen in CLI too.
Saturday, August 24, 13
password prompts
sudo - If you don’t have sufficient
permissions, put the sudo
command before everything else
and enter your password
sudo bash - Entering this by
itself will allow you to enter a mode
where you don’t have to enter your
password. Use sparingly.
Saturday, August 24, 13
You won’t learn every command,
but the basics are enough
to get started.
Saturday, August 24, 13
non windows systems
This talk is covering command line
for Unix based systems only
The principles are the same
Even if you use Windows, knowing
Unix is helpful with server
administration.
Saturday, August 24, 13
what can I do
with command line?
Saturday, August 24, 13
improve theme development
If you learn command line, you can
use many tools that will improve
development
We are going to focus on arguably
the most important: version control
Saturday, August 24, 13
Saturday, August 24, 13
version control: git
Git is a distributed version control
system that a group of people can
use to more effectively collaborate
on projects.
Currently the preferred VCS over
others like Subversion
Saturday, August 24, 13
installing git
http://git-scm.com
Configure global information at the
command line like so:
git config --global user.name "John Doe"
git config --global user.email johndoe@example.com
Saturday, August 24, 13
using git
Using the cd command to
navigate to your theme directory
Type git init to create a git repo
Type git add * to add all files
Saturday, August 24, 13
committing with git
Then simply type git commit -m
“initial commit” to begin
versioning your theme with git
Writing concise commit messages
will help you look through versions
of your code.
Saturday, August 24, 13
other CLI tools
Grunt - Can be setup to
automatically minify your css/js
vagrant - Virtual machine
environment that replaces MAMP
wpcli - Tools for managing
WordPress installations from CLI
Saturday, August 24, 13
Demo time!
Saturday, August 24, 13
what you (hopefully) learned
Command line isn't scary, the
basics are actually pretty easy
Overview of basic version control
in Git using the command line
With command line, you can use
many tools that will improve themes.
Saturday, August 24, 13
Thanks for listening!
@daniel_immke on Twitter
These slides are available at
http://slideshare.net/dimmke
Saturday, August 24, 13

More Related Content

Similar to WordPress and the Command Line

Content Management System(CMS) & Basic WordPress
Content Management System(CMS) & Basic WordPressContent Management System(CMS) & Basic WordPress
Content Management System(CMS) & Basic WordPressShahadat Hossain Manik
 
Autotools, Design Patterns and more
Autotools, Design Patterns and moreAutotools, Design Patterns and more
Autotools, Design Patterns and moreVicente Bolea
 
Word press bg 16x9 draft 16
Word press bg 16x9 draft 16Word press bg 16x9 draft 16
Word press bg 16x9 draft 16msz
 
Grav CMS
Grav CMSGrav CMS
Grav CMSbtopro
 
Command line for the beginner - Using the command line in developing for the...
Command line for the beginner -  Using the command line in developing for the...Command line for the beginner -  Using the command line in developing for the...
Command line for the beginner - Using the command line in developing for the...Jim Birch
 
EdTechJoker Spring 2020 - Lecture 5 grav cms
EdTechJoker Spring 2020 - Lecture 5 grav cmsEdTechJoker Spring 2020 - Lecture 5 grav cms
EdTechJoker Spring 2020 - Lecture 5 grav cmsBryan Ollendyke
 
InstallingRoRinLinux
InstallingRoRinLinuxInstallingRoRinLinux
InstallingRoRinLinuxtutorialsruby
 
InstallingRoRinLinux
InstallingRoRinLinuxInstallingRoRinLinux
InstallingRoRinLinuxtutorialsruby
 
How to start your open source project
How to start your open source projectHow to start your open source project
How to start your open source projectEslam Diaa
 
Perch, Patterns and Old Browsers
Perch, Patterns and Old BrowsersPerch, Patterns and Old Browsers
Perch, Patterns and Old BrowsersRachel Andrew
 
Using Git and BitBucket
Using Git and BitBucketUsing Git and BitBucket
Using Git and BitBucketMedhat Dawoud
 
Cd rom mounting cdro-ms on solaris
Cd rom mounting cdro-ms on solarisCd rom mounting cdro-ms on solaris
Cd rom mounting cdro-ms on solarisBui Van Cuong
 

Similar to WordPress and the Command Line (20)

Untangling4
Untangling4Untangling4
Untangling4
 
Content Management System(CMS) & Basic WordPress
Content Management System(CMS) & Basic WordPressContent Management System(CMS) & Basic WordPress
Content Management System(CMS) & Basic WordPress
 
Autotools, Design Patterns and more
Autotools, Design Patterns and moreAutotools, Design Patterns and more
Autotools, Design Patterns and more
 
Word press bg 16x9 draft 16
Word press bg 16x9 draft 16Word press bg 16x9 draft 16
Word press bg 16x9 draft 16
 
Grav CMS
Grav CMSGrav CMS
Grav CMS
 
Drupal
DrupalDrupal
Drupal
 
Command line for the beginner - Using the command line in developing for the...
Command line for the beginner -  Using the command line in developing for the...Command line for the beginner -  Using the command line in developing for the...
Command line for the beginner - Using the command line in developing for the...
 
EdTechJoker Spring 2020 - Lecture 5 grav cms
EdTechJoker Spring 2020 - Lecture 5 grav cmsEdTechJoker Spring 2020 - Lecture 5 grav cms
EdTechJoker Spring 2020 - Lecture 5 grav cms
 
InstallingRoRinLinux
InstallingRoRinLinuxInstallingRoRinLinux
InstallingRoRinLinux
 
InstallingRoRinLinux
InstallingRoRinLinuxInstallingRoRinLinux
InstallingRoRinLinux
 
How to start your open source project
How to start your open source projectHow to start your open source project
How to start your open source project
 
Perch, Patterns and Old Browsers
Perch, Patterns and Old BrowsersPerch, Patterns and Old Browsers
Perch, Patterns and Old Browsers
 
Using Git and BitBucket
Using Git and BitBucketUsing Git and BitBucket
Using Git and BitBucket
 
Sandy Report
Sandy ReportSandy Report
Sandy Report
 
Sandy Report
Sandy ReportSandy Report
Sandy Report
 
Ch03
Ch03Ch03
Ch03
 
Ch03 system administration
Ch03 system administration Ch03 system administration
Ch03 system administration
 
Introduction to WordPress
Introduction to WordPress Introduction to WordPress
Introduction to WordPress
 
Cd rom mounting cdro-ms on solaris
Cd rom mounting cdro-ms on solarisCd rom mounting cdro-ms on solaris
Cd rom mounting cdro-ms on solaris
 
Hpc4 linux advanced
Hpc4 linux advancedHpc4 linux advanced
Hpc4 linux advanced
 

Recently uploaded

🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAndrey Devyatkin
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsJoaquim Jorge
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...DianaGray10
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfhans926745
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesBoston Institute of Analytics
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobeapidays
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherRemote DBA Services
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdflior mazor
 

Recently uploaded (20)

🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 

WordPress and the Command Line

  • 2. daniel immke Design Engineer at 10up Worked with WordPress for 5 years Started regularly using command line about 7 months ago Saturday, August 24, 13
  • 4. my story Developed themes for several years Scared to adopt tools like version control because of perceived difficulty Working at 10up and learning command line helped me break through that Saturday, August 24, 13
  • 7. Command line is not a scary tool that only hackers use. Saturday, August 24, 13
  • 8. Command line is simply a different way of using your computer. Saturday, August 24, 13
  • 10. Facts about command line It was the original way to use a computer Advanced users still prefer it because it is more powerful Saturday, August 24, 13
  • 11. command line basics cd - Change directory ls - List files in directory nano - Opens file in simple text editor program program specific commands Saturday, August 24, 13
  • 12. command line basics mkdir - Create folder cp - Copy a file mv - Rename/move file command -flag param1 param2 rm - Removes a file Saturday, August 24, 13
  • 13. command line basics There are several other commands that one can learn to navigate the filesystem and edit files, that you can learn as you go. Saturday, August 24, 13
  • 14. password prompts These happen in CLI too. Saturday, August 24, 13
  • 15. password prompts sudo - If you don’t have sufficient permissions, put the sudo command before everything else and enter your password sudo bash - Entering this by itself will allow you to enter a mode where you don’t have to enter your password. Use sparingly. Saturday, August 24, 13
  • 16. You won’t learn every command, but the basics are enough to get started. Saturday, August 24, 13
  • 17. non windows systems This talk is covering command line for Unix based systems only The principles are the same Even if you use Windows, knowing Unix is helpful with server administration. Saturday, August 24, 13
  • 18. what can I do with command line? Saturday, August 24, 13
  • 19. improve theme development If you learn command line, you can use many tools that will improve development We are going to focus on arguably the most important: version control Saturday, August 24, 13
  • 21. version control: git Git is a distributed version control system that a group of people can use to more effectively collaborate on projects. Currently the preferred VCS over others like Subversion Saturday, August 24, 13
  • 22. installing git http://git-scm.com Configure global information at the command line like so: git config --global user.name "John Doe" git config --global user.email johndoe@example.com Saturday, August 24, 13
  • 23. using git Using the cd command to navigate to your theme directory Type git init to create a git repo Type git add * to add all files Saturday, August 24, 13
  • 24. committing with git Then simply type git commit -m “initial commit” to begin versioning your theme with git Writing concise commit messages will help you look through versions of your code. Saturday, August 24, 13
  • 25. other CLI tools Grunt - Can be setup to automatically minify your css/js vagrant - Virtual machine environment that replaces MAMP wpcli - Tools for managing WordPress installations from CLI Saturday, August 24, 13
  • 27. what you (hopefully) learned Command line isn't scary, the basics are actually pretty easy Overview of basic version control in Git using the command line With command line, you can use many tools that will improve themes. Saturday, August 24, 13
  • 28. Thanks for listening! @daniel_immke on Twitter These slides are available at http://slideshare.net/dimmke Saturday, August 24, 13