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
Q

What command shows what’s in the working directory?

A

dir

25
Q

What does md command stand for

A

Make directory

26
Q

rmdir command stands for

A

Remove directory

27
Q

What does the command cd .. \ .. do?

A

Move up 2 parent directories

28
Q

What is the command for the command-line-interface version of Disk Management Utility

A

diskpart command

29
Q

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

A

chkdsk command

30
Q

What does the format command do?

A

Sets up a file system on the drive (like NTFS, FAT32, exFAT, etc.)

31
Q

Command used to shut down, hibernate, log off, or restart the computer

A

shutdown command

32
Q

Why would you want to use the shutdown command on the CLI vs. just clicking the shutdown button in the taskbar using the GUI?

A

Shutdown command can be run at various times when the user is not at the computer

33
Q

What command along with the switch will abort a shutdown?

A

shutdown /a

34
Q

What command along with the switch will put the machine into hibernation mode or sleep mode?

A

shutdown /h

35
Q

What command along with the switch will log off the current user?

A

shutdown /l

36
Q

What command along with the switch will conduct a full shutdown and then restart the computer?

A

shutdown /r

37
Q

Provides a manual interface for verifying system files and restoring them from the cache

A

System File Checker (sfc)

38
Q

What command scans the integrity of all protected system files and replaces incorrect versions with correct Microsoft versions.

A

sfc /scannow

39
Q

Command that allows you to find the windows version of the machine

A

winver command

40
Q

Command that displays the details of the system?

A

systeminfo

41
Q

What are 4 Windows Troubleshooting commands?

A

1) ipconfig
2) ping
3) tracert
4) pathping

42
Q

What commands flush out an IP address and then grabs a new one from dhcp?

A

ipconfig /release
ipconfig /renew

43
Q

Troubleshooting command provides information about own network connection

A

ipconfig

44
Q

Troubleshooting command that verifies there is good connectivity between the client and the remote destination

A

Ping

45
Q

Troubleshooting command that shows each and every stop along the way by using multiple pings all the way out and all the way back

A

tracert

46
Q

Troubleshooting command that gives a more accurate round trip time being calculated

A

pathping

47
Q

What are the 2 commands used for Name Resolution?

A

1) hostname
2) nslookup

48
Q

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

A

netstat command

49
Q

What does the netstat -a command display?

A

All of your connections and listening ports

50
Q

What does the netstat -b command display?

A

The executable that created that connection or listening port

51
Q

What does the netstat -n command display?

A

The addresses and port numbers in numerical form

52
Q

What does the netstat -o command display?

A

The owning process ID that’s associated with each connection

53
Q

Command that is really helpful for malware removal or threat hunting against bad actors

A

netstat command

54
Q

Set of policies across all users on a given system or across all systems on a given domain

A

Group Policy

55
Q

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

a) Shutdown the workstation

56
Q

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

A

b) sfc

57
Q

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

A

c) netstat

58
Q

A command-line disk-partitioning utility available for Windows that is used to view, create, delete, and modify a computer’s disk partitions.

A

diskpart command

59
Q

Command is used to check the file system and file system metadata of a volume for logical and physical errors.

A

chkdsk command

60
Q

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.

A

format command

61
Q

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

A

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.