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.

In Windows, if you see a prompt that looks like Figure 15-5, you know

that the focus is on the \Diploma\APLUS\ folder of the C: drive. The trick to

using a command line is first to focus the prompt on the drive and folder

where you want to work.

Figure 15-5 Command prompt indicating focus on the C:\Diploma\APLUS\

folder

Closing the Terminal

Closing a command prompt is easy and is done the same way in Windows,

macOS, and Linux. At the prompt just type exit. The terminal window will

disappear.

mike@server:/home$ exit

File Formats and Filenames

The command line requires precision. That means you need to type

commands, filenames, and switches accurately. Otherwise you get errors or

no results at all. What you type (or typo) can have tremendous impact when

working in the command-line interface. Here’s the scoop.

All operating systems manifest each program and piece of data as

individual files. All files are stored in mass storage devices in binary format,

but every program has a unique method of binary organization, called a file

format. One program cannot read another program’s files unless it can

convert the other program’s file format into its file format.

Each file has a name, which is stored with the file on the drive. Names are

broken down into two parts: the filename and the extension. In the early days

of PCs, Microsoft used a file system that dictated the filename could be no

longer than eight characters. The extension, which was optional, could be up

to three characters long. The filename and extension are separated by a

period, or dot. Here’s an example of an old-style filename:

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

Saved successfully!

Ooh no, something went wrong!