15.01.2024 Views

CompTIA A+ Certification All-in-One Exam Guide

  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

OS on which everyone depended.

In the previous examples we have been using what are known as absolute

paths, meaning we have been typing out the entire path of a directory

destination. This might work OK for an ancient DOS system from the ’80s,

but it’s way too much work to move around in today’s deeply nested

directory trees.

That’s where relative paths come in handy; instead of starting the path

with a \, you can just type the name of the directory. For example, you could

go to the C:\Obiwan directory from the root directory simply by typing cd

obiwan at the C:\> prompt. You can then move one level at a time, like this:

Or, you can jump multiple directory levels in one step, like this:

These tricks also work for macOS and Linux, but of course you always

use a forward slash instead of a backslash as needed:

A final trick: if you want to go up a single directory level, you can type cd

followed immediately by two periods or a space and two periods. So, for

example, if you’re in the C:\Obiwan\my directory and you want to move up

to the C:\Obiwan directory, you can simply type cd .. and you’ll be there:

Take some time to move the prompt focus around the directories of your

PC, using the cd and dir commands. Use dir to find a directory, and then use

cd to move the focus to that directory. Remember, cd \ (or cd / in macOS and

Linux) always gets you back to the root directory.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!