Command Line tools Flashcards

(22 cards)

1
Q

What is CLI?

A

Command Line Interface
The terminal

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

What does the dir command do?

A

Lists files and subdirectories in the current directory or a specified path.

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

What does the cd command do?

A

Change the working directory.
Enter the full path to switch directories.

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

What commands create a directory?

A

md or mkdir

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

How do you remove a directory?

A

rd directory name or rmdir directory name.

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

What does the diskpart command do?

A

the command-line interface for the Disk Management tool.

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

What command creates a new file system

A

The format command.

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

What does the chkdsk command do?

A

Scans the file system and disk sectors for faults and attempts to repair detected problems.

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

What command runs automatically if file system errors are detected at boot?

A

autochk

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

What does the winver command do?

A

Provides Windows version information, useful for support.

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

What command is used to safely power off, restart, hibernate, or log out of the system

A

shutdown /

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

What does the sfc command let you do?

A

manually verify and restore system files from cache if they are corrupt or damaged

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

What does the whoami command do?

A

displays current username and domain information.

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

What switch tells you about a command and what it does?

A

command /?

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

What is the robocopy command and what does it do?

A

Robust file copy.
Used to copy entire folder structures between volumes or across a network.

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

What does the ipconfig command do?

A

Displays the IP address, subnet mask, and default gateway (router) for all network adapters to whcih TCI?IP is bound.

17
Q

What does the hostname command do?

A

Returns the name configured on the local machine.
If configured as a server clients machines can use hostmane to access shared folders and printers.

18
Q

What does the ping command do?

A

Tests whether a host can communicate with another host on the same network or on a remote network.

19
Q

What does the tracert command do?

A

Traces the path of a packet and tells the route time and hops it took to get to its destination.
The command can take an IP or FQDN as an argument

20
Q

What is an alternative to tracert?

A

pathping
It performs a trace and then pings each hop router to measure link latency more accurately, also shows packet loss at each hop.

21
Q

What does the nslookup command do?

A

Queries DNS servers to find domain names, or other specific DNS records.

22
Q

What does the netstat command do?

A

Network Statistics.
Investigates open ports and connections on the local host.