Windows Command Line Interface 1.2 Flashcards

1
Q

change directory

A

cd

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

dir

A

directory

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

clear the screen to make it easier to read.

A

cls

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

Prints out the contents of the file

A

type

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

creates a directory / make directory

A

md

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

rmdir

A

remove directory / deletes directory

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

xcopy

A

Copies everything (files and directories)

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

Robust File Copy for Windows
Newest type of copying utilities

A

robocopy

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

DiskPart

A

Command line version of disk management

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

listdisk

A

List all drives within DiskPart

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

p: \fs:exFat

A

Format Command

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

Repairs problems detected with drives

A

chkdsk

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

chkdsk p:

A

Checks the drive to see what problems exist

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

chkdsk p: /f

A

Fixes any file errors within the selected drive

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

chkdsk p: /r

A

Fixes any file errors and attempts recovery of files

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

/ ?

A

Gives a list of everything the command before it can do

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

shutdown /s

A

Immediately shuts down

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

shutdown /h

A

Hibernation

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

shutdown /t

A

Timer before shutdown

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

System File Checker

A

A manual interface for verifying system files and restoring them from the cache.

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

System File Checker commands

A

sfc /verifyonly
sfc /scannow

22
Q

Windows Version pop up within the command line interface

A

winver

23
Q

Provides information about your own network connection.

A

ipconfig

24
Q

Verifies there is a good connectivity between the client and the remote destination.

A

ping

25
Q

Shows each and every stop along the way by using multiple pings all the way out and all the way back.

A

tracert

26
Q

renews lease on DHCP

A

ipconfig /renew

27
Q

ipconfig / release

A

Releases the ip address

28
Q

ipconfig /flushdns

A

flushes the DNS resolver cache

29
Q

Checks to make sure you can reach your default gateway

A

ping

30
Q

What is this command doing?

ping 8.8.8.8

A

Checking to see if our gateway can reach Google’s DNS servers.

31
Q

tracert facebook.com

A

This command maps each and every hop along the way.

32
Q

Gives a more accurate round-trip time.

A

pathping

33
Q

ping hostname

A

allows you to see the name configured in your computer in intranet.

34
Q

nslookup

A

Checks the domain name and returns the ip addresses

35
Q

nslookup -querty type =mx diontraining.com

A

checks to see if mail exchanger records can be verified.

36
Q

Really helpful for malware or threat hunting against bad actors.
Checks for open ports on a given client and looks for ports or connections on listening mode.

A

netstat

37
Q

netstat /a

A

All connections and listening ports

38
Q

netstat /b

A

Displays executable involved in creating each connection or listening port.
Useful for identifying malware opening ports.

39
Q

netstat /o

A

Displays the owning process ID associated with the port.

40
Q

netstat /n

A

Shows ip addresses when looking at ports at a given client.

41
Q

netstat /an

A

Combines two commands.
Shows all Ip addresses in all connections and their respective listening ports.

42
Q

Command that is useful for troubleshooting malware.

A

netstat /ano

43
Q

Command for a set of policies all users on a given system or across all systems on a given domain.

A

gpedit

44
Q

gpresult /r

A

Shows which policies are being applied to a specific system.
Works better in a domain environment as opposed to a local environment.

45
Q

lists all the user accounts for the system you are currently using

A

net user

46
Q

What does this command mean net use i: /delete ?

A

Deletes the network mapped shared drive ( :i )

47
Q

What does the command “shutdown /s” do on a Windows workstation?

A

Shutsdown the workstation

The shutdown command allows a user or administrator to shut down or restart local or remote computers, one at a time. Using the /r option will reboot the computer. Using the /s option will shut down the computer. Using the /l option will log off the current user. Using the /h option will enter sleep or hibernation mode.

48
Q

shutdown /l

A

Using the / l option will log off the current user.

49
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?

chkdsk
sfc
gpupdate
xcopy

A

sfc

System File Checker command is the utility in Windows that allows users to scan for and restore corrupted Windows system files from the command line.

50
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?

net use
ipconfig
netstat
ping

A

netstat

51
Q

Network statistics

A

netstat