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
Q

DISKPART> select disk{disk number}

A

shifts the focus to the desired object

26
Q

DISKPART> create partition primary

A

Creates a primary partition within the currently selected disk

27
Q

DISKPART> list volume {volume number}

A

shows volumes on disk

28
Q

copy command

A

Copies file from one location to another

29
Q

xcopy

A

Copy multiple files from one location to another

30
Q

robocopy

A

Move multiple files over 14 days old
Copy with bandwidth limitations

31
Q

copy command switch: /v

A

verifies that new files are written correctly

32
Q

copy command switch: /y

A

suppresses prompting to confirm you want to overwrite an existing destination file

33
Q

copy command switch: /-y

A

Causes the prompt TO APPEAR to conform you want to overwrite an existing destination file

34
Q

copy command switch: source

A

specifies the file or files to be copied

35
Q

help [command name]
[command name] /?

A

Help command

36
Q

winver

A

launches a pop-up window containing brief summary of the installed operating system

37
Q

shutdown

A

Shutdown command

38
Q

shutdown /s

A

shutdown the computer

39
Q

shutdown /r

A

Full shutdown and restart the computer

40
Q

shutdown /a

A

abort a system shutdown

41
Q

shutdown /h

A

hibernate the local computer

42
Q

shutdown /t xxx

A

Set the time-out period before shutdown to xxx seconds

43
Q

shutdown /f

A

force running applications to close without forewarning users