The Command Line
The Command Line
for Web Developers
About the Book
This book is for developers and designers alike. Seeing a blank Terminal window waiting for your input can feel overwhelming. Where do you begin? Why should a web developer even need to know about Bash or Unix? Do you have to become an expert in this stuff just to do your job? Chris Williams is here to help.
This book is perfect for those just starting out and for those who want to really understand what’s going on in their computers.
Table of Contents
-
-
About this book
- Just enough information
- This book is already out of date
- This book has a Mac bias
- So why the book?
- Acknowledgements
- Who am I?
-
1. Overview
- 1.1 What is the command line?
- 1.2 Why use the command line?
- 1.3 A brief history of Bash
- 1.4 Today’s development landscape
- 1.5 Using Git for version control
- 1.6 Summary
-
2. Basic Commands
- 2.1 Moving around
- 2.2 Changing directories
- 2.3 Using shortcuts to execute commands
- 2.4 Using flags on commands
- 2.5 What are hidden files and directories?
- 2.6 Files have permissions
- 2.7 ACL: Access Control List
- 2.8 Moving, copying, and removing files
- 2.9 Move to rename
- 2.10 Copying files with cp
- 2.11 Removing files with rm
- 2.12 You’ve just replaced Finder
-
3. More Advanced Bash
- 3.1 Finding data with grep
- 3.2 Using pipes to chain commands
- 3.3 Other ways to chain commands
- 3.4 Redirection syntax
- 3.5 Common redirection examples
- 3.6 Shortcuts to accessing desktop applications
- 3.7 Symbolic Links
- 3.8 Application helpers
- 3.9 Aliases
- 3.10 Searching command history
- 3.11 PATH is where commands are located
- 3.12 You’re a wizard, Harry
-
4. Setting things up
- 4.1 Install Xcode Command Line Tools
- 4.2 Install Ruby for user access
- 4.3 Install Homebrew
- 4.4 Install Node.js
- 4.5 Install Python
- 4.6 What have I done?
-
5. Dotfiles
- 5.1 What are all these hidden files?
- 5.2 The loading order for dotfiles
- 5.3 Configure your profile
- 5.4 Customize your Prompt
- 5.5 Sharing configurations
- 5.6 Summary
-
6. Serving Locally
- 6.1 How local servers work
- 6.2 Using Apache as a server
- 6.3 Using Node as a server
- 6.4 Using Python as a server
- 6.5 Summary
-
7. Getting started with Git
- 7.1 Why everyone loves Git
- 7.2 So how does Git work?
- 7.3 Set up Git
- 7.4 The Basics
- 7.5 Timeline visualized
- 7.6 Moving back in time
- 7.7 Common workflows and best practices
- 7.8 Making great commits
- 7.9 Troubleshooting and Tips
- 7.10 Summary
-
8. Text Editors
- 8.1 Using popular text editor applications
- 8.2 Using Vim
- 8.3 Summary
-
9. npm
- 9.1 How to use npm
- 9.2 Using package.json
- 9.3 Defining run commands
- 9.4 Managing Front-end Packages and Tasks
- 9.5 Summary
-
About this book
- Notes
The Leanpub 60 Day 100% Happiness Guarantee
Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.
Now, this is technically risky for us, since you'll have the book or course files either way. But we're so confident in our products and services, and in our authors and readers, that we're happy to offer a full money back guarantee for everything we sell.
You can only find out how good something is by trying it, and because of our 100% money back guarantee there's literally no risk to do so!
So, there's no reason not to click the Add to Cart button, is there?
See full terms...
Earn $8 on a $10 Purchase, and $16 on a $20 Purchase
We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.
(Yes, some authors have already earned much more than that on Leanpub.)
In fact, authors have earnedover $13 millionwriting, publishing and selling on Leanpub.
Learn more about writing on Leanpub
Free Updates. DRM Free.
If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).
Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.
Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.
Learn more about Leanpub's ebook formats and where to read them