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.

EXAM TIP Know xcopy and robocopy for the CompTIA A+ 220-1002

exam.

cp and mv (again!)

If you really want to see some powerful commands, let’s head over to Linux.

Unlike Windows, you can both move and copy folders and their contents,

using the same cp and mv commands we saw earlier for regular copying and

moving. Let’s say we have a folder called /home/mike/Backups. The

Backups folder has ten subfolders and hundreds of files. I want to save a copy

of these files to a folder called /mnt/storage. To do this I only need to run cp

with the –R (recursive) switch (note that the ~ in my prompt shows that I’m

in the home folder):

mike@server:~$ cp –R Backups /mnt/storage

If I want to move all of that to storage instead of copy, I use the mv

command. Interestingly, the mv command doesn’t even need a special switch

—just run the program, pointing at the folder of interest and giving it a

destination:

mike@server:~$ mv Desktop/Backups /mnt/storage

Assorted Windows Commands

As a proficient IT technician in the field, you need to be familiar with a

whole slew of command-line tools and other important utilities. The

CompTIA A+ 220-1002 exam focuses in on several of them, and although

many have been discussed in detail in previous chapters, it is extremely

important that you understand and practice with chkdsk, format, hostname,

gpupdate, gpresult, sfc, and shutdown.

chkdsk (/f /r)

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

Saved successfully!

Ooh no, something went wrong!