Operating System Navigation and Command-Line Tools Flashcards

CompTIA A+ 220-1102 Exam Criteria

1
Q

dir

A

Purpose: Displays directory of files and directories stored on disk.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

cd

A

The cd (change directory) command allows you to move between directories. The cd command takes an argument, usually the name of the folder you want to move to

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

md

A

the md command, which creates a directory or subdirectory.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

rmdir

A

Use the rmdir command to remove the directory, specified by the Directory parameter, from the system. The directory must be empty (it can contain only . and ..) before you can remove it, and you must have write permission in its parent directory.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How can you navigate to a drive?

A

C: or D: - depending on the drive you want to go to

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What Command do you use to check if there is any error on the disk?

A

chkdsk /r = Locates bad sector and recovers readable information (implies /F (fixes error on disk) when not specified)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

how can I check files if there are problems with them?

A

System File Checker is a utility in Windows that checks for problems with files on your computer. (sfc)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What command line tool do I have to scan file for problems and replace the corrupted files?

A

The sfc /scannow command will scan all protected system files, and replace corrupted files with a cached copy that is located in a compressed folder at %WinDir%\System32\dllcache.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is the difference between sfc and chkdsk ?

A

Both have almost the same function, which is to detect file errors. However, SFC has its specifications for the Windows series mentioned above. Not only that, but SFC will also automatically take action, unlike CHKDSK, which tends to only “report.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What command line tool do I use if I only want to verify system files without repairs being done?

A

sfc /verifyonly

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

How can I scan a particular system file only and repair it?

A

sfc /scanfile (filepath)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

How can I check integrity of a system file without repairing it?

A

sfc /verifyfile (filepath)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What does the format command do?

A

The format command creates a new root directory and file system for the disk. It can also check for bad areas on the disk, and it can delete all data on the disk. To be able to use a new disk, you must first use this command to format the disk

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

How can I format the disk drive D using the format command line tool?

A

format Y: /q /fs:ntfs
enter current volume for drive Y: (enter drive volume)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is the function of the diskpart on disk management command line interface?

A

The diskpart command interpreter helps you manage your computer’s drives (disks, partitions, volumes, or virtual hard disks). Before you can use diskpart commands, you must first list, and then select an object to give it focus. After an object has focus, any diskpart commands that you type will act on that object.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

I need to find out how many disk is partitions on my computer, which command line tool can I use?

A

diskpart list disk

17
Q

What command line tool can be used to select a disk part?

A

diskpart select disk (enter disk number here)

18
Q

What command line tool can I use to create primary partition and allocate size?

A

diskpart create partition primary size=2048

19
Q

How can I list the volume on disk partition command line tool? I also want to assign the volume?

A

disk part list volume
disk part assign

20
Q

I need to copy a file what command line should I use?

A

copy

21
Q

how can I copy file into the same folder

A

C:\Users\JohnVargas\Documents\Test1>copy hello2.txt hello3.txt

You will need to use file path and then copy filename.txt newfilename.txt

You can also delete via:

C:\Users\JohnVargas\Documents\Test1>del filename.txt

22
Q

How can I copy one file into another directory?

A

File path: xcopy (enter file path) (enter new file path where file is going to the new directory)

eg.

C:\Users\JohnVargas\Documents\Test1>xcopy C:\users\johnvargas\Documents\Test1 C:\Users\JohnVargas /E /I

(/E = copies all files including empty sub directories) (/I will make a new directory for you if the directory does not exist)

23
Q

What does robocopy utilizes?

A

Robocopy is a robust file copying program built into Windows similar to UNIX rsync. It is a much better method of copying large datasets or lots of files across volumes and is a great tool for backing up data. It has the ability to resume copies if interrupted, various options and logging during copying

24
Q

how to structure command line using robocopy?

A

robocopy /sourcepathA SourcepathB /E

25
Q

What does DISM tool utilize?

A

Deployment Image Servicing Management Tool

Microsoft Windows Deployment Image Servicing and Management (DISM) is a command-line tool that allows IT administrators to service Windows desktop images and virtual hard disks prior to deployment to users. DISM is an administrator-level tool to repair Windows images and make changes to Windows installation media.

If the SFC isn’t working, try DISM. The DISM (Deployment Image Servicing and Management) tool uses Windows Update to restore corrupted system files.

26
Q

How to repair windows image and check status on DISM command line?

A

dism /online /cleanup-image /CheckHealth

Once you complete the steps, the Deployment Image Servicing and Management tool will run and verify any data corruption that may require fixing inside the local image

27
Q

What command line do you use to verify any corrupt files on the system image file via DISM?

A

dism /Online /Cleanup-Image /ScanHealth

28
Q

If there are problems with the system image, what command line can you use with DISM command line?

A

dism /Online /Cleanup-Image /RestoreHealth

29
Q

How can I shutdown the computer on the command line tool?

A

shutdown

30
Q

What does winver command do?

A

Shows you the current windows version that the OS is operating in.