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.

almost completely inflexible, so you have to learn the correct syntax for each

command.

[command] [target (if any)] [switches]

or

[command] [switches] [target (if any)]

How do you know what switches are allowed? How do you know whether

the switches come before or after the target? If you want to find out the

syntax and switches used by a particular command, in Windows type the

command followed by /? to get help:

[command name] /?

In macOS or Linux, type the command man (manual) followed by the

command you’re interested in:

man [command name]

When you are done reading the manual, press the q key to quit back to the

prompt.

Viewing Directory Contents: dir and ls

The Windows dir command and the macOS and Linux ls command show you

the contents of the working directory. If you’re like most techs, you’ll use dir

or ls more often than any other command at the command prompt. When you

open a command-line window in Windows, it opens focused on your user

folder. You will know this because the prompt looks like C:\Users\User

name>. By typing dir and then pressing the enter key (remember that you

must always press enter to execute a command from the command line), you

will see something like this:

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

Saved successfully!

Ooh no, something went wrong!