Command Line Tools Flashcards

(31 cards)

1
Q

ipconfig

A

Displays current TCP/IP
network configuration values

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

ipconfig /all

A

View additional configuration information, such as DNS servers and MAC addresses

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

ipconfig /renew

A

Renew IP address
-computers ip address not working properly and you want to obtain new address from DHCP server

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

ipconfig /release

A

Release current IP address
-computers ip address not working properly and you want to obtain new address from DHCP server

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

ipconfig/flushdns

A

Erase DNS cache
-problems connecting to websites

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

Ping

A

Tests whether another host is available over the network-check if another host is “alive”
Ex: ping 192.168.0.1

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

Ping 127.0.0.1

A

Test whether TCP/IP installed properly, even if not wired to the network
IPv4
Also use ping loopback or ping localhost adding -4

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

Ping ::1

A

Ping for IPv6
Also use ping loopback or ping localhost adding -6

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

ping -t

A

Pings host until command is stopped
Plug and unplug cables to see which cables or ports are live
Monitor a connection over time to check packet drops and connection slowing

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

ping -n

A

Pings a host a specific number of times
Good baseline tool, run every day against a router or server and compare results
Ping -n 20 192.168.0.1

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

ping -l

A

Pings the host, but you can specify the number of bytes per packet to be sent
Beneficial when testing how a server, router or other device reacts to larger packet sizes
ping -1 1500 192.168.0.1

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

ping -a

A

Resolves addresses to hostnames, see hostname associated with IP address

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

ping -4

A

Forces use of IPv4 and results in IPv4-based data
ping -4 loopback results in reply from 127.0.0.1

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

ping -6

A

Forces use of IPv6 and results in IPv6-based data
ping -6 loopback will result in a reply from ::1

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

tracert

A

Sends packets to destinations beyond the local computer’s network. Pings each router along the way between you and the final destination

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

tracert /d

A

Does not resolve IP addresses to hostnames, shown as corresponding IP addresses only.
Connecting by IP address will always be faster than connecting by name

17
Q

hostname

A

Displays the name of the local computer
Programmatically referred to as the %COMPUTERNAME% variable in any windows system

18
Q

netstat

A

Shows network statistics for the local computer
Default command displays sessions to remote computers
Output:
Active connections
TCP %COMPUTERNAME% :1395 8.15.228.165: https ESTABLISHED

19
Q

Netstat -n
Netstat -a
Netstat -an
Natsrat -nab

A

-See information numerically
-See TCP and UDP sessions
-See TCP and UDP in numeric format
-Include the executable name for each session shown

20
Q

nslookup

A

name server lookup
Queries DNS servers to discover DNS details, including the IP addresses of hosts
Can aid in finding DNS servers and DNS records in a domain

21
Q

dig

A

Linux equivalent of nslookup
Queries DNS servers to discover DNS details, including the IP addresses of hosts
Can aid in finding DNS servers and DNS records in a domain

22
Q

net

A

Actually a collection of commands

23
Q

net stop

A

Stop a service

24
Q

net start

A

Start a service from command line

25
net view
See which computers are currently available on the network
26
net share
Share folders for other users to view
27
net use
View any currently mapped network drives **net use x: \\computername\sharename**
28
net user
Lists user accounts on the local computer Create accounts from here using **net user/add %username%**
29
net user/active
Activate user accounts
30
net user /delete
Delete user accounts
31
arp
**Address Resolution Protocol** Resolves between IP addresses and MAC addresses so data communications can flow from the OS to the physical network adapter