1.2 given A Scenario, Use The Appropriate Microsoft Command Line To Flashcards

1
Q

cd (change directory) purpose

A

Changes the current directory to a specified directory

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

Usage of: cd \

A

Changes to the root directory

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

Usage of: cd ..

A

Moves up one directory level

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

Usage of: cd foldername

A

Changes to a sub directory named “foldername”

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

Purpose of: dir (directory)

A

Display a list of files and subdirectories in the current directory

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

Usage of: dir

A

Lists all files and folders

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

Usage of: dir /a (attributes)

A

Includes hidden and system files in the listing.

The /a switch in the DIR command, stands for attributes and allows you to display files with specific attributes. When used without specifying any attributes, it display all files, including hidden and system files.

You can also use the backwards/a followed by specific attribute codes to filter the display like this dir /a:h lists only hidden files since h: hidden files

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

Purpose of: md or mkdir (make directory)

A

Creates a new directory

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

Usage of: md newfolder or mkdir newfolder

A

Create a directory called “newfolder”

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

Purpose of: rmdir or rd (remove directory)

A

Deletes an existing directory

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

Usage of: rmdir newfolder or rd newfolder

A

Remove the directory named “newfolder”

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

Purpose of Drive navigation inputs

A

Switches between different drives

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

Usage of C: and D:

A

Switches to the C: Drive and D: drive, respectively

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

Purpose of ipconfig

A

Displays network configuration details

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

Usage of ipconfig

A

Shows basic IP address, subnet mask, and default gateway

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

Usage of ipconfig /all

A

Displays detailed network configuration, including the NS and DHCP information

17
Q

Purpose of command line: ping

A

Tests connectivity to another network device

18
Q

Usage of: ping 8.8.8.8

A

Sends ICMP echo request to the specified IP address

19
Q

What is ICMP

A

ICMP stands for the Internet control message protocol, and it is a network layer protocol used by network devices such as routers and hosts, to send error, messages, and operational information.

It plays a crucial role in diagnosing network, communication issues, and determining whether data reaches its intended destination in a timely manner

20
Q

What are the functions of ICMP

A

Error reporting: ICMP communicates problems and data, transmissions, such as unreachable host or network, congestion, back to the source device

Diagnostic tools: utilities, like ping and traceroute use ICMP messages to test network connectivity and trace the path of packets through a network

21
Q

How ICMP works

A

ICMP operates at the network layer and is encapsulated within IP packets. When a network device encounters an issue processing a packet, it send an ICMP message to the source, indicating the type of error encountered.

For example, if a router cannot forward a package due to an expired time to live (TTL) value, it sends and ICMP “time exceeded” message to the sender

22
Q

Common ICMP message types

A

Echo request and echo reply: used by the ping utility to test reachability between devices

Destination unavailable: indicates that a packet could not reach its intended destination.

Time exceeded: informed the sender that our packet was discarded because its TTL expired .

23
Q

Purpose of command line tool: hostname

A

Displayed the computer’s hostname

24
Q

What is a hostname

A

The unique label assigned to a device such as a computer server or printer on a network, enabling it to be identified and access by other device within the network or over the Internet for example, if you name your computer Daisy or Stephanie’s computer.

25
Q

Usage of: hostname

A

Outputs the name of the current machine

26
Q

What is the purpose of commandline tool: netstat

A

Displays active network connections, and listening ports

27
Q

What is the usage of? netstat -a

A

Shows all active connections and listening ports

28
Q

What is the usage of: netstat -b

A

Display the executable involved in creating each connection (requires administrative privileges)

29
Q

What does the b switch for the Netstat command mean?

A

The beast stands for binary and is used to display the executable involved in creating each connection or listening port. This feature is particularly useful for identifying which programs are responsible for specific network activities..

30
Q

What is an executable?

A

An executable is a file that contains a program capable of being executed or run as a process on the computer. And Windows, executable typically have the.EXE extension. These files contain machine code that the operating systems loader can run to perform specific tasks and functions.