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.

EXAM TIP Look for the .. option or switch with the dir and other

commands on the CompTIA A+ 1002 exam. It moves the focus up one level

when navigating from the command line.

Moving Between Drives

Windows and macOS and Linux have very different techniques for moving

between drives, given that Windows uses drive letters while macOS and

Linux do not. Let’s start with Windows and then we’ll take a look at macOS

and Linux.

Moving Between Drives in Windows

The cd command is not used to move between Windows’ drive letters. To get

the prompt to point to another drive (“point” is command-line geekspeak for

“switch its focus”), just type the drive letter and a colon. If the prompt points

at the C:\Users\mike directory and you want to see what is on the USB thumb

drive (E:), just type e: and the prompt will point to the USB drive. You’ll see

the following on the screen:

To return to the C: drive, just type c: and you’ll see the following:

Note that you return to the same directory you left. Just for fun, try typing

in a drive letter that you know doesn’t exist. For example, I know that my

system doesn’t have a W: drive. If I type in a nonexistent drive on a

Windows system, I get the following error:

The system cannot find the drive specified.

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

Saved successfully!

Ooh no, something went wrong!