15.01.2024 Views

CompTIA A+ Certification All-in-One Exam Guide

  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Try inserting an optical disc or a thumb drive and entering its drive letter

to point to its drive. Type dir to see the contents of the optical disc. Type cd

to move the focus to any folders on the optical disc. Now return focus to the

C: drive.

Using the dir, cd, and drive letter commands, you can access any folder on

any storage device on your system. Make sure you can use these commands

comfortably to navigate inside your computer.

Moving Between Drives in macOS and Linux

So if macOS and Linux don’t use drive letters, how do you access your other

drive partitions, optical media, thumb drives, and so on? Well, all media is

mounted as a folder, but the location of those folders is going to vary by the

OS. In macOS, you need to look in the /Volumes folder. In Ubuntu Linux,

you need to look in the /mnt folder for drives and the /media/<user name>

folder for removable media. In other Linux distributions, well, you’re going

to have to explore—good thing you know how to use the cd and ls

commands, eh? The following commands show my optical drive and a thumb

drive in an Ubuntu Linux system:

Making Directories: The md/mkdir Command

Now that you have learned how to navigate in a command-prompt world, it’s

time to start making stuff, beginning with a new directory.

To make a directory, use the md command in Windows. Alternatively, you

can use the mkdir command, which works in all operating systems and is

identical to md. In Windows, to create a directory called practice under your

user’s folder, for example, open a new Command Prompt window or cd to

your users folder at \Users\<your username>. You should see the prompt

C:Users\mike>_

Now that the prompt points to the C:\Users\mike directory, type md

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

Saved successfully!

Ooh no, something went wrong!