Command Line Flashcards

1
Q

tasklist

A

Displays a list of currently running processes

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

taskkill

A

Terminate tasks by process ID (PID) or image name

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

expand

A

used to extract a single file or a group of files from a compressed file

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

expand /d

A

This option lists the files contained in the source but does not extract them.

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

expand /f: (file name)

A

The name of the file that you want to extract from the source file.

*If the source only contains one file, this option isn’t necessary.

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

gpupdate

A

Force a group policy update

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

gpresult

A

Verify policy settings for a computer or user

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

copy /v

A

copies and verifies that new files are written correctly

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

copy /y

A

suppresses the confirmation prompt displayed when Windows is about to overwrite the contents of an existing file

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

xcopy

A

copy one or more files and/or folders from one location to another location. NTFS permission not preserved

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

robocopy

A

copy one or more files and/or folders from one location to another location & Preserves NTFS permissions

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

md or mkdir

A

Make directory in windows

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

cd

A

Change directory

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

rd or rmdir

A

Remove directory

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

dir or dir *.*

A

Directory listing, list files and directories

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

chkdsk /r

A

locate bad sectors and recover any readable information from them.

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

chkdsk /f

A

Fixes logical errors on the disk

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

format

A

Format a disk, prepare for use by the OS

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

diskpart

A

Disk Partitioner

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

shutdown

A

Shutdown computer

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

ping

A

test the reachability of a host across an IP network

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

shutdown /t 60

A

The command for setting the time-out period of 60 seconds before powering off a Windows host

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

Right-clicking on the Command Prompt application icon allows for execution of

A

shell commands reserved for a system administrator.

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

netdom

A

command-line command for managing Active Directory domains

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

net use

A

used to connect to, remove, and configure connections to shared resources, like mapped drives and network print

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

net view

A

Displays a list of domains, computers, or resources that are being shared by the specified computer.

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

net stop “print spooler”

A

an example of how you’d stop the Print Spooler service from the command line. Services can also be controlled via (services.msc) tool in Windows

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

net start

A

useful if you want to see a list of currently running services

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

shutdown /r

A

Windows Command Prompt forces full system shutdown and restart of the Windows host

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

[command name] /?

A

displays help information related to a specific command-line utility

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

Esc

A

allows to stop the execution of the current command run in Windows Command Prompt

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

sfc /scannow

A

scan all protected operating system files and repair as necessary.

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

sfc /verifyonly

A

This sfc command option is the same as /scannow but without repairing.

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

sfc /scanfile=file

A

scan and repair a specified file

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

CD\ or CHDIR\

A

change(s) the current directory to the root directory OR specific directory if specified

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

cls

A

clears the Command Prompt window screen in Windows

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

nslookup

A

Verify that the computer can connect to a DNS server and successfully find an IP address for a given computer name.

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

taskkill /pid

A

Specifies the process ID of the process to be terminated.

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

taskkill /im

A

Specifies the image name of the process to be terminated. Use the wildcard character (*) to specify all image names.

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

exit or taskkill /IM cmd.exe

A

exit(s) the command interpreter in Windows

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

bootrec /fixmbr

A

writes a new master boot record to a disk

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

REGSVR32

A

for registering and unregistering DLLs and ActiveX controls in the Windows Registry

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

BOOTREC /FIXBOOT

A

writes a new boot sector to the system partition

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

reg

A

allows for editing Windows registry from the Command Prompt

45
Q

del or erase

A

can be used to delete one or more files

46
Q

rd /s

A

allows for the deletion of the specified directory and all its subdirectories, including all files)

47
Q

A wildcard character that can be used as a substitute for a single character in a file or directory name

A

?

48
Q

A wildcard character that can be used as a substitute for any string of characters in a file or directory name

A

*

49
Q

bootrec /rebuildbcd

A

contains a detailed list of what is supposed to load at startup. Use this to completely rebuild the BCD.

50
Q

NETSTAT

A

Show the status of each active network connection

51
Q

tracert

A

Determine and test all points along the route the computer uses to send a packet to a destination.

52
Q

If TRACERT is unsuccessful

A

you can use the results generated to determine at what point communications are failing.

53
Q

IPCONFIG /RELEASE

A

Release the IP addressing information assigned to the computer by the DHCP server or APIPA.

54
Q

IPCONFIG /RENEW

A

will Lease IP addressing information from a DHCP server or APIPA.

55
Q

IPCONFIG /FLUSHDNS

A

Clear DNS info so that the computer updates with new configuration info

also used for troubleshooting in situations where the client has incorrect DNS info

56
Q

IPCONFIG /REGISTERDNS

A

Register the client with its DNS server

57
Q

r

Displays a list of currently running processes

A

tasklist

58
Q

r

Terminate tasks by process ID (PID) or image name

A

taskkill

59
Q

r

used to extract a single file or a group of files from a compressed file

A

expand

60
Q

r

This option lists the files contained in the source but does not extract them.

A

expand /d

61
Q

r

This is the name of the file that you want to extract from the source file. If the source only contains one file, this option isn’t necessary.

A

expand /f: (file name)

62
Q

r

Force a group policy update

A

gpupdate

63
Q

r

Verify policy settings for a computer or user

A

gpresult

64
Q

r

copies and verifies that new files are written correctly

A

copy /v

65
Q

r

suppresses the confirmation prompt displayed when Windows is about to overwrite the contents of an existing file

A

copy /y

66
Q

r

Copies multiple files and directory trees

A

xcopy

67
Q

r

copy one or more files and/or folders from one location to another location & Preserves NTFS permissions

A

robocopy

68
Q

r

Make directory in windows

A

md or mkdir

69
Q

r

Change directory

A

cd

70
Q

r

Remove directory

A

rd or rmdir

71
Q

r

Directory listing, list files and directories

A

dir or dir *.*

72
Q

r

locate bad sectors and recover any readable information from them.

A

chkdsk /r

73
Q

r

Fixes logical errors on the disk

A

chkdsk /f

74
Q

r

Format a disk, prepare for use by the OS

A

format

75
Q

r

Disk Partitioner

A

diskpart

76
Q

r

Shutdown computer

A

shutdown

77
Q

r

test the reachability of a host across an IP network

A

ping

78
Q

r

The command for setting the time-out period of 60 seconds before powering off a Windows host

A

shutdown /t 60

79
Q

r

command-line command for managing Active Directory domains

A

netdom

80
Q

r

Displays a list of domains, computers, or resources that are being shared by the specified computer.

A

net view

81
Q

r

an example of how you’d stop the Print Spooler service from the command line. Services can also be controlled via (services.msc) tool in Windows

A

net stop “print spooler”

82
Q

r

useful if you want to see a list of currently running services

A

net start

83
Q

r

Windows Command Prompt forces full system shutdown and restart of the Windows host

A

shutdown /r

84
Q

r

can be used to display help information related to a specific command-line utility

A

[command name] /?

85
Q

r

allows to stop the execution of the current command run in Windows Command Prompt

A

Esc

86
Q

r

scan all protected operating system files and repair as necessary.

A

sfc /scannow

87
Q

r

This sfc command option is the same as /scannow but without repairing.

A

sfc /verifyonly

88
Q

r

scan and repair a specified file

A

sfc /scanfile=file

89
Q

r

change(s) the current directory to the root directory

A

CD\ or CHDIR\

90
Q

r

clears the Command Prompt window screen in Windows

A

cls

91
Q

r

Verify that the computer can connect to a DNS server and successfully find an IP address for a given computer name.

A

nslookup

92
Q

r

Specifies the process ID of the process to be terminated.

A

taskkill /pid

93
Q

r

Specifies the image name of the process to be terminated. Use the wildcard character (*) to specify all image names.

A

taskkill /im

94
Q

r

exit(s) the command interpreter in Windows

A

exit or taskkill /IM cmd.exe

95
Q

r

writes a new master boot record to a disk

A

bootrec /fixmbr

96
Q

r

for registering and unregistering DLLs and ActiveX controls in the Windows Registry

A

REGSVR32

97
Q

r

writes a new boot sector to the system partition

A

BOOTREC /FIXBOOT

98
Q

r

allows for editing Windows registry from the Command Prompt

A

reg

99
Q

r

can be used to delete one or more files

A

del or erase

100
Q

r

allows for the deletion of the specified directory and all its subdirectories, including all files)

A

rd /s

101
Q

r

scans all disks for Windows installations and displays entries currently not in the BCD store

A

bootrec /scanos

102
Q

r

Show the status of each active network connection

A

NETSTAT

103
Q

r

Determine and test all points along the route the computer uses to send a packet to a destination.

A

tracert

104
Q

r

Release the IP addressing information assigned to the computer by the DHCP server or APIPA.

A

IPCONFIG /RELEASE

105
Q

r

will Lease IP addressing information from a DHCP server or APIPA.

A

IPCONFIG /RENEW

106
Q

r

Clear DNS info so that the computer updates with new configuration info

also used for troubleshooting in situations where the client has incorrect DNS info

A

IPCONFIG /FLUSHDNS

107
Q

r

Register the client with its DNS server.

A

IPCONFIG /REGISTERDNS

108
Q

r

used to connect to, remove, and configure connections to shared resources, like mapped drives and network print

A

net use

109
Q

Used without parameters, net view displays a list of ____?

A

computers in your current domain.