Command Line Flashcards

(109 cards)

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
net use
used to connect to, remove, and configure connections to shared resources, like mapped drives and network print
26
net view
Displays a list of domains, computers, or resources that are being shared by the specified computer.
27
net stop "print spooler"
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
28
net start
useful if you want to see a list of currently running services
29
shutdown /r
Windows Command Prompt forces full system shutdown and restart of the Windows host
30
[command name] /?
displays help information related to a specific command-line utility
31
Esc
allows to stop the execution of the current command run in Windows Command Prompt
32
sfc /scannow
scan all protected operating system files and repair as necessary.
33
sfc /verifyonly
This sfc command option is the same as /scannow but without repairing.
34
sfc /scanfile=file
scan and repair a specified file
35
CD\ or CHDIR\
change(s) the current directory to the root directory OR specific directory if specified
36
cls
clears the Command Prompt window screen in Windows
37
nslookup
Verify that the computer can connect to a DNS server and successfully find an IP address for a given computer name.
38
taskkill /pid
Specifies the process ID of the process to be terminated.
39
taskkill /im
Specifies the image name of the process to be terminated. Use the wildcard character (\*) to specify all image names.
40
exit or taskkill /IM cmd.exe
exit(s) the command interpreter in Windows
41
bootrec /fixmbr
writes a new master boot record to a disk
42
REGSVR32
for registering and unregistering DLLs and ActiveX controls in the Windows Registry
43
BOOTREC /FIXBOOT
writes a new boot sector to the system partition
44
reg
allows for editing Windows registry from the Command Prompt
45
del or erase
can be used to delete one or more files
46
rd /s
allows for the deletion of the specified directory and all its subdirectories, including all files)
47
A wildcard character that can be used as a substitute for a single character in a file or directory name
?
48
A wildcard character that can be used as a substitute for any string of characters in a file or directory name
\*
49
bootrec /rebuildbcd
contains a detailed list of what is supposed to load at startup. Use this to completely rebuild the BCD.
50
NETSTAT
Show the status of each active network connection
51
tracert
Determine and test all points along the route the computer uses to send a packet to a destination.
52
If TRACERT is unsuccessful
you can use the results generated to determine at what point communications are failing.
53
IPCONFIG /RELEASE
Release the IP addressing information assigned to the computer by the DHCP server or APIPA.
54
IPCONFIG /RENEW
will Lease IP addressing information from a DHCP server or APIPA.
55
IPCONFIG /FLUSHDNS
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
IPCONFIG /REGISTERDNS
Register the client with its DNS server
57
# r Displays a list of currently running processes
tasklist
58
# r Terminate tasks by process ID (PID) or image name
taskkill
59
# r used to extract a single file or a group of files from a compressed file
expand
60
# r This option lists the files contained in the source but does not extract them.
expand /d
61
# 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.
expand /f: (file name)
62
# r Force a group policy update
gpupdate
63
# r Verify policy settings for a computer or user
gpresult
64
# r copies and verifies that new files are written correctly
copy /v
65
# r suppresses the confirmation prompt displayed when Windows is about to overwrite the contents of an existing file
copy /y
66
# r Copies multiple files and directory trees
xcopy
67
# r copy one or more files and/or folders from one location to another location & Preserves NTFS permissions
robocopy
68
# r Make directory in windows
md or mkdir
69
# r Change directory
cd
70
# r Remove directory
rd or rmdir
71
# r Directory listing, list files and directories
dir or dir \*.\*
72
# r locate bad sectors and recover any readable information from them.
chkdsk /r
73
# r Fixes logical errors on the disk
chkdsk /f
74
# r Format a disk, prepare for use by the OS
format
75
# r Disk Partitioner
diskpart
76
# r Shutdown computer
shutdown
77
# r test the reachability of a host across an IP network
ping
78
# r The command for setting the time-out period of 60 seconds before powering off a Windows host
shutdown /t 60
79
# r command-line command for managing Active Directory domains
netdom
80
# r Displays a list of domains, computers, or resources that are being shared by the specified computer.
net view
81
# 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
net stop "print spooler"
82
# r useful if you want to see a list of currently running services
net start
83
# r Windows Command Prompt forces full system shutdown and restart of the Windows host
shutdown /r
84
# r can be used to display help information related to a specific command-line utility
[command name] /?
85
# r allows to stop the execution of the current command run in Windows Command Prompt
Esc
86
# r scan all protected operating system files and repair as necessary.
sfc /scannow
87
# r This sfc command option is the same as /scannow but without repairing.
sfc /verifyonly
88
# r scan and repair a specified file
sfc /scanfile=file
89
# r change(s) the current directory to the root directory
CD\ or CHDIR\
90
# r clears the Command Prompt window screen in Windows
cls
91
# r Verify that the computer can connect to a DNS server and successfully find an IP address for a given computer name.
nslookup
92
# r Specifies the process ID of the process to be terminated.
taskkill /pid
93
# r Specifies the image name of the process to be terminated. Use the wildcard character (\*) to specify all image names.
taskkill /im
94
# r exit(s) the command interpreter in Windows
exit or taskkill /IM cmd.exe
95
# r writes a new master boot record to a disk
bootrec /fixmbr
96
# r for registering and unregistering DLLs and ActiveX controls in the Windows Registry
REGSVR32
97
# r writes a new boot sector to the system partition
BOOTREC /FIXBOOT
98
# r allows for editing Windows registry from the Command Prompt
reg
99
# r can be used to delete one or more files
del or erase
100
# r allows for the deletion of the specified directory and all its subdirectories, including all files)
rd /s
101
# r scans all disks for Windows installations and displays entries currently not in the BCD store
bootrec /scanos
102
# r Show the status of each active network connection
NETSTAT
103
# r Determine and test all points along the route the computer uses to send a packet to a destination.
tracert
104
# r Release the IP addressing information assigned to the computer by the DHCP server or APIPA.
IPCONFIG /RELEASE
105
# r will Lease IP addressing information from a DHCP server or APIPA.
IPCONFIG /RENEW
106
# 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
IPCONFIG /FLUSHDNS
107
# r Register the client with its DNS server.
IPCONFIG /REGISTERDNS
108
# r used to connect to, remove, and configure connections to shared resources, like mapped drives and network print
net use
109
Used without parameters, net view displays a list of \_\_\_\_?
computers in your current domain.