Skip to Content
Learn Enough Developer Tools to Be Dangerous: Command Line, Text Editor, and Git Version Control Essentials
book

Learn Enough Developer Tools to Be Dangerous: Command Line, Text Editor, and Git Version Control Essentials

by Michael Hartl
May 2022
Beginner
368 pages
7h 44m
English
Addison-Wesley Professional
Content preview from Learn Enough Developer Tools to Be Dangerous: Command Line, Text Editor, and Git Version Control Essentials

Chapter 4

Directories

Having examined many of the Unix utilities for dealing with files, the time has come to learn about directories, sometimes known by the synonym folders (Figure 4.1). As we’ll see, many of the ideas developed in the context of files also apply to directories, but there are many differences as well.

Image

Figure 4.1: The correspondence between folders & directories.

4.1 Directory Structure

The structure of Unix-style directories is typically indicated using a list of directory names separated by forward slashes, which we can combine with the ls command (Section 2.2) like this:

$ ls /Users/mhartl/ruby

or like this:

$ ls /usr/local/bin ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Version Control with Git, 3rd Edition

Version Control with Git, 3rd Edition

Prem Kumar Ponuthorai, Jon Loeliger
Git for Programmers

Git for Programmers

Jesse Liberty
DevOps Tools for Java Developers

DevOps Tools for Java Developers

Stephen Chin, Melissa McKay, Ixchel Ruiz, Baruch Sadogursky
Git Essentials for Beginners

Git Essentials for Beginners

Coding Gears | Train Your Brain

Publisher Resources

ISBN: 9780137843404