Windows Command Line Tools Flashcards

1
Q

How do you get the Command Prompt?

A

Type “cmd” in the search bar

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

How do you get to the Administrative Command Prompt?

A

Cntrl + Shift + Enter when searching for “cmd” in windows

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

What is the Directory Command?

A

dir

Shows everything in the current user’s local folder

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

What is an example of a relative path?

A

cd Users\student01\Documents

Does not require root path

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

What is an example of an absolute path?

A

cd C:\Users\Student01\Documents

Requires the full path including root

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

What is the “cd” command?

A

It is used to “C”hange “D”irectories forward or backwards

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

Difference between “.” and “..”?

A

it changes directories forward or backward within the command prompt

Example:

Current directory is C:\Users\Student01

the command “cd ..” will go to the higher directory and produce the command line:

C:\Users>

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

cd\

A

Will take the prompt all the way back to the root:

C:\Users\Student01>cd\

C:>

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

md or mkdir

A

make a directory or subdirectory

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

RD or RMDIR

A

The RD or RMDIR command deletes an empty directory.

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

chkdsk

A

Error Checking Program

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

chkdsk /r

A

Locates bad sectors and recovers readable information
(implies /F, when /scan not specified)

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

chkdsk /f

A

Fixes errors on the disk

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

chkdsk /scan

A

NTFS only: Runs an online scan on the volume

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

sfc

A

System File checker

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

sfc /scannow

A

scans integrity of all protected system files an repairs files with problems when possible

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

sfc /verifyonly

A

scans integrity of all protected system files./ No repair operation is preformed

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

sfc /scanfile

A

scans integrity of the reference file, repairs file if problems are identified. Specific full path <file></file>

19
Q

sfc /verifyfile

A

Verifies the integrity of the file with full path <file>. No repair operation is preformed</file>

20
Q

format

A

File System Formatter

21
Q

format {driveletter}: /q /fs:NFTS

A

This command will erase all data on designated drive and formate it as NFTS

22
Q

format {driveletter}: /FS:filesystem

A

Specifies the type of file system (FAT, FAT32, exFAT, NTFS, UDF, ReFS)

23
Q

diskpart

A

enters disk management command line interface

24
Q

DISKPART> list disk

A

Shows a list of all disks in the system

25
DISKPART> select disk{disk number}
shifts the focus to the desired object
26
DISKPART> create partition primary
Creates a primary partition within the currently selected disk
27
DISKPART> list volume {volume number}
shows volumes on disk
28
copy command
Copies file from one location to another
29
xcopy
Copy multiple files from one location to another
30
robocopy
Move multiple files over 14 days old Copy with bandwidth limitations
31
copy command switch: /v
verifies that new files are written correctly
32
copy command switch: /y
suppresses prompting to confirm you want to overwrite an existing destination file
33
copy command switch: /-y
Causes the prompt TO APPEAR to conform you want to overwrite an existing destination file
34
copy command switch: source
specifies the file or files to be copied
35
help [command name] [command name] /?
Help command
36
winver
launches a pop-up window containing brief summary of the installed operating system
37
shutdown
Shutdown command
38
shutdown /s
shutdown the computer
39
shutdown /r
Full shutdown and restart the computer
40
shutdown /a
abort a system shutdown
41
shutdown /h
hibernate the local computer
42
shutdown /t xxx
Set the time-out period before shutdown to xxx seconds
43
shutdown /f
force running applications to close without forewarning users