Skip to Content
Small, Sharp Software Tools
book

Small, Sharp Software Tools

by Brian P. Hogan
June 2019
Intermediate to advanced
328 pages
7h 27m
English
Pragmatic Bookshelf
Content preview from Small, Sharp Software Tools

Navigating Files and Folders

The cd command lets you change directories. It’s the tool for changing our current working directory, or the “location” on the filesystem. As you’ve already seen, using cd by itself takes you straight to your home directory. Execute this command in your shell right now:

 $ ​​cd

Then, execute the pwd command to check your location. You will then see a file path displayed:

 $ ​​pwd
 /home/brian

Each slash in the path represents a part of the hierarchy. So, /home/brian is just another way to represent this:

 /
 └── home/
    └── brian

If you’ve built a website and referenced images or CSS files, or written code to work with files, you’re already familiar with the concept of specifying paths to files.

Your home ...

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

The VimL Primer

The VimL Primer

Benjamin Klein
What Employees Want Most in Uncertain Times

What Employees Want Most in Uncertain Times

Kristine W. Powers, Jessica B.B. Diaz

Publisher Resources

ISBN: 9781680507003Errata Page