Windows Command Line Tools Flashcards

1
Q

An application that provides a system administrator with a text-based user interface

A

Command Prompt (CLI)

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

Command used to move into a different directory

A

cd command

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

Command used to display a list of directory and subdirectory files

A

dir command

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

Command used to create new directories and subdirectories within the file system

A

md command

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

Command used to delete or remove a directory or subdirectory within the file system

A

rmdir command

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

Command used to copy one or more files from one location to another

A

copy command

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

Command used to copy files, directories, and subdirectories from one location to another

A

xcopy command

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

Command used to copy files, directories, and subdirectories with support for longer file names and network paths from one location to another

A

robocopy command

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

Command used to manage the computer’s disk drives, partitions, volumes, and virtual hard disks

A

diskpart command

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

Command used to delete the contents of the storage device and create a new file

A

format command

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

Command used to scan the file system for file system metadata errors

A

chkdsk command

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

Command used to display the current TCP/IP network configuration and refreshes DHCP and DNS settings

A

ipconfig command

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

Command used to verify IP level connectivity to another TCP/IP

A

ping command

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

Command used to determine the path by sending an ICMP echo request

A

tracert command

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

Provides network latency and network loss information (more advanced version of tracert)

A

pathping command

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

Command used to display active TCP connections, ports used for listening, ethernet statistics, IP routing tables

A

netstat command

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

Command used to update the group policy settings on a given Windows system

A

gpupdate command

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

Command used to display the result and set polices for a given remote user and computer inside of a Windows domain

A

gpresult command

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

Allows you to run a series of different text-based commands and be able to run different tools or utilities

A

Command Prompt

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

Key Combo to open a run dialog box

A

Windows key + r

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

Command to move to the parent directory

A

cd ..

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

cd command stand for

A

Change Directory

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

dir command stand for

A

Directory

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

What command can clear the command prompt screen?

A

cls command

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
What command shows what's in the working directory?
dir
25
What does md command stand for
Make directory
26
rmdir command stands for
Remove directory
27
What does the command cd .. \ .. do?
Move up 2 parent directories
28
What is the command for the command-line-interface version of Disk Management Utility
diskpart command
29
Command that allows you to scan your file system and be able to find if there's any fault, and if it finds any, attempt to repair
chkdsk command
30
What does the format command do?
Sets up a file system on the drive (like NTFS, FAT32, exFAT, etc.)
31
Command used to shut down, hibernate, log off, or restart the computer
shutdown command
32
Why would you want to use the shutdown command on the CLI vs. just clicking the shutdown button in the taskbar using the GUI?
Shutdown command **can be run at various times** when the user is not at the computer
33
What command along with the switch will abort a shutdown?
shutdown /a
34
What command along with the switch will put the machine into hibernation mode or sleep mode?
shutdown /h
35
What command along with the switch will log off the current user?
shutdown /l
36
What command along with the switch will conduct a full shutdown and then restart the computer?
shutdown /r
37
Provides a manual interface for verifying system files and restoring them from the cache
System File Checker (sfc)
38
What command scans the integrity of all protected system files and replaces incorrect versions with correct Microsoft versions.
sfc /scannow
39
Command that allows you to find the windows version of the machine
winver command
40
Command that displays the details of the system?
systeminfo
41
What are 4 Windows Troubleshooting commands?
1) ipconfig 2) ping 3) tracert 4) pathping
42
What commands flush out an IP address and then grabs a new one from dhcp?
ipconfig /release ipconfig /renew
43
Troubleshooting command provides information about own network connection
ipconfig
44
Troubleshooting command that verifies there is good connectivity between the client and the remote destination
Ping
45
Troubleshooting command that shows each and every stop along the way by using multiple pings all the way out and all the way back
tracert
46
Troubleshooting command that gives a more accurate round trip time being calculated
pathping
47
What are the 2 commands used for Name Resolution?
1) hostname 2) nslookup
48
Command used to display active TCP connections, ports on which the computer is listening, Ethernet statistics, the IP routing table, IPv4 statistics (for the IP, ICMP, TCP, and UDP protocols), and IPv6 statistics (for the IPv6, ICMPv6, TCP over IPv6, and UDP over IPv6 protocols) on a Windows machine
netstat command
49
What does the netstat -a command display?
**All** of your connections and listening ports
50
What does the netstat -b command display?
The **executable** that created that connection or listening port
51
What does the netstat -n command display?
The addresses and port numbers in **numerical** form
52
What does the netstat -o command display?
The **owning** process ID that's associated with each connection
53
Command that is really helpful for malware removal or threat hunting against bad actors
netstat command
54
Set of policies across all users on a given system or across all systems on a given domain
Group Policy
55
What does the command "shutdown /s" do on a Windows workstation? a) Shutdown the workstation b) Reboot the workstation c) Log off the workstation d) Enter sleep mode
a) Shutdown the workstation
56
A Windows laptop is malfunctioning, and you believe that some system files are missing or corrupted. Which of the following commands should you use to verify this and, if needed, repair the files? a) chkdsk b) sfc c) gupdate d) xcopy
b) sfc
57
You are troubleshooting an issue with a Windows desktop and need to display the machine's active TCP connections. Which of the following commands should you use? a) net use b) ipconfig c) netstat d) ping
c) netstat
58
A command-line disk-partitioning utility available for Windows that is used to view, create, delete, and modify a computer's disk partitions.
diskpart command
59
Command is used to check the file system and file system metadata of a volume for logical and physical errors.
chkdsk command
60
Command creates a new root directory and file system for the disk. It can check for bad areas on the disk, and it can delete all data on the disk.
format command
61
An administrator needs to run the Check Disk utility on a Windows workstation, but they need to ensure that no other processes read from or write to that drive while the utility is running. Which CHKDSK parameter must the administrator include to accomplish this task? a) /f b) /r c) /v d) /x
**d) /x** *"/x": Dismounts the drive before the scan. "/f": Fixes any detected errors on the drive. "/r": Attempts to recover readable information from bad sectors on the drive.*