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.

Errors Are Good!

Consider errors in general for a moment—not just command-prompt

errors such as “Invalid directory,” but any error, including errors in the

GUI. Many new computer users freeze in horror when they see an error

message. Do not fear error messages. Error messages are good! Love

them. Worship them. They will save you.

Seriously, think how confusing it would be if the computer didn’t tell

you when you messed up. Error messages tell you what you did wrong so

you can fix it. You absolutely cannot hurt your PC in any way by typing

the dir or cd command incorrectly. Take advantage of this knowledge and

experiment. Intentionally make mistakes to familiarize yourself with the

error messages. Have fun and learn from errors!

To return to the root directory, type cd \ and press enter. You can use the

cd command to point the prompt to any directory. For example, typing cd

obiwan\my\hope from a C:\ prompt would change it to C:\Obiwan\my\hope>

—assuming, of course, that your system has a directory called

C:\Obiwan\my\hope.

Once the prompt has changed, type dir again. You should see a different

list of files and directories. Every directory holds different files and

subdirectories, so when you point the prompt to different directories, the dir

command shows you different contents.

Changing directory focus in macOS and Linux is similar to doing so in

Windows, but you use a / instead of a \. Using the same example just shown

for Windows, from the root directory you type cd /obiwan. To go to the

/Obiwan/my/hope directory you type cd /obiwan/my/hope.

NOTE On a Linux system it is considered bad manners to create files and

folders in the root (/) directory. In fact, you need “root” permissions to do

such a thing. This is because of Linux’s history as a multi-user system; it was

important to include restrictions so that users couldn’t break the underlying

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

Saved successfully!

Ooh no, something went wrong!