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.

macOS and Linux prompts show your folder location a bit differently than

Windows. Generally, your default prompt is pointing at the

/home/<username>/ folder. By default, however, macOS and Linux do not

show that path. They only show a tilde, ~, as follows:

mike@server:~$

The ~ is really just a shorthand for your users folder; in this case it means

you are in /home/mike. Yes, a little confusing, but welcome to UNIX!

macOS and Linux provide a handy utility, pwd, that tells you exactly where

you are if you’re unsure:

EXAM TIP The CompTIA A+ objectives want you to know the difference

between the pwd versus passwd commands. You’ve seen the pwd command;

later in this chapter we’ll cover passwd.

In more precise terms, pwd will show you the working directory. The

output includes the full path.

Here are a few items to remember about folder names and filenames:

• Folders and files may have spaces in their names.

• The only disallowed characters in Windows are the following eleven: *

“/ \ [ ] : ; | = ,

• In macOS and Linux the only disallowed character is a forward slash: /

• Files aren’t required to have extensions, but in most cases the OS

won’t know the file association type without an extension.

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

Saved successfully!

Ooh no, something went wrong!