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.

The default prompts in Linux don’t show the full path, but on my Ubuntu

Linux system, typing ls shows the following in the mike user’s Home folder:

If you are following along on a PC, remember that different computers

contain different folders, files, and programs, so you will absolutely see

something different from what’s shown in the previous example. If a lot of

text scrolls quickly down the screen in Windows, try typing dir /p (pause).

Don’t forget to press enter. The dir /p command is a lifesaver when you’re

looking for something in a large directory. Just press SPACEBAR to display the

next screen.

In macOS and Linux, you can get the same result as dir /p by typing ls |

more. The | symbol is called a pipe. You are telling the OS to take the output

of ls and, instead of sending it directly to the screen, “pipe” or send it through

the second command, more. The pipe command works in all three operating

systems and is incredibly powerful. You’ll see lots more of the pipe

command later in this chapter.

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

Saved successfully!

Ooh no, something went wrong!