Net+ CLI

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/56

encourage image

There's no tags or description

Looks like no tags are added yet.

57 Terms

1
New cards

ping -t - Windows

Continuously pings the specified host until interrupted (Ctrl+C).

2
New cards

ping -n [count] - Windows

Sends a specified number of ECHO requests instead of the default 4.

3
New cards

ping -l [size] - Windows

Specifies the send buffer size (payload size in bytes) to test MTU / packet fragmentation.

4
New cards

ping -4 / ping -6 - Windows/Linux

Forces ping to resolve addresses and route strictly using IPv4 or IPv6.

5
New cards

ping -c [count] - Linux

Sends a specific count of ICMP ECHO packets and terminates automatically.

6
New cards

ping -i [interval] - Linux

Specifies the wait time interval (in seconds) between sending each packet.

7
New cards

traceroute (Linux) / tracert (Windows) - Traces the hop-by-hop layer 3 route packets take to a remote host using TTL increments.

8
New cards

tracert -d - Windows

Prevents tracert from resolving IP addresses to hostnames (speeds up output).

9
New cards

tracert -h [max_hops] - Windows

Sets the maximum number of hops to search for the target.

10
New cards

traceroute -n - Linux

Displays raw IP addresses numerically without performing reverse DNS lookups.

11
New cards

traceroute -I - Linux

Directs traceroute to use ICMP ECHO requests instead of default UDP probes.

12
New cards

traceroute -T - Linux

Directs traceroute to use TCP SYN packets (useful for bypassing firewalls blocking UDP/ICMP).

13
New cards

pathping [host] - Windows

Combines ping and tracert over 5-25 minutes to compute per-hop latency and packet loss metrics.

14
New cards

pathping -n - Windows

Instructs pathping to not resolve addresses to hostnames.

15
New cards

pathping -q [queries] - Windows

Specifies the number of queries per hop (default is 100).

16
New cards

ipconfig - Windows

Displays basic IP address, subnet mask, and default gateway for all network adapters.

17
New cards

ipconfig /all - Windows

Displays full network configuration, including MAC address, DHCP lease times, and DNS servers.

18
New cards

ipconfig /release - Windows

Releases current DHCP configuration by sending a DHCPRELEASE packet.

19
New cards

ipconfig /renew - Windows

Requests new DHCP configuration from a DHCP server (DHCPREQUEST).

20
New cards

ipconfig /flushdns - Windows

Clears the local client DNS resolver cache.

21
New cards

ipconfig /displaydns - Windows

Outputs the current contents of the local client DNS cache.

22
New cards

ifconfig (Deprecated Linux) - Legacy Linux utility to display and modify network interface IP configurations.

23
New cards

ip addr (ip a) - Linux

Displays IP addresses and interface properties for all network interfaces (iproute2 suite).

24
New cards

ip link set [interface] up/down - Linux

Activates or disables a specified network interface link.

25
New cards

ip route show - Linux

Displays the current kernel routing table.

26
New cards

ip route add default via [ip] - Linux

Configures the default gateway on a Linux host.

27
New cards

netstat -a - Displays all active TCP connections and listening TCP/UDP ports.

28
New cards

netstat -n - Displays active connections with numerical addresses and port numbers instead of resolving names.

29
New cards

netstat -b - Windows

Displays the executable program name involved in creating each connection or listening port.

30
New cards

netstat -o - Windows

Displays the owning Process ID (PID) associated with each active network connection.

31
New cards

netstat -r - Displays the current IP routing table (equivalent to 'route print' on Windows).

32
New cards

netstat -p [proto] - Windows

Filters output by specific protocol (e.g., TCP, UDP, IPv6).

33
New cards

ss -tuln - Linux

Modern socket statistics replacement for netstat showing listening (l) TCP (t) and UDP (u) sockets without DNS resolution (n).

34
New cards

ss -p - Linux

Shows which process/PID owns each open socket connection.

35
New cards

route print - Windows

Displays the current active IPv4 and IPv6 routing tables and persistent routes.

36
New cards

route add [destination] mask [netmask] [gateway] - Windows

Adds a static route to the routing table.

37
New cards

route add -p - Windows

Makes an added static route persistent across system reboots.

38
New cards

route delete [destination] - Windows

Removes a specified static route from the system routing table.

39
New cards

nslookup [name_or_ip] - Queries DNS servers interactively or non-interactively to resolve domain names or IP records.

40
New cards

nslookup -type=[record_type] - Specifies DNS query type (e.g., A, AAAA, MX, CNAME, PTR, TXT, SOA).

41
New cards

nslookup [target] [server_ip] - Queries a specific DNS server directly rather than the system's configured default resolver.

42
New cards

dig [domain] - Linux

Versatile DNS lookup tool that queries DNS servers and outputs hierarchical resolution details.

43
New cards

dig [domain] [record_type] - Linux

Queries a domain for specific record types like MX, TXT, A, or NS.

44
New cards

dig @[server_ip] [domain] - Linux

Directs a dig lookup to query a specific external DNS server directly.

45
New cards

dig +trace [domain] - Linux

Performs iterative resolution from root DNS servers down to the authoritative name server.

46
New cards

dig -x [ip] - Linux

Performs a reverse DNS lookup to find the domain associated with an IP address.

47
New cards

arp -a - Displays current ARP cache entries mapping IPv4 addresses to physical MAC addresses.

48
New cards

arp -d [ip] - Deletes an entry from the ARP cache (use '*' to clear entire table).

49
New cards

arp -s [ip] [mac] - Adds a static, permanent address mapping into the local ARP table.

50
New cards

ip neigh - Linux

Modern iproute2 replacement for arp; displays current neighbor cache (ARP/NDP).

51
New cards

tcpdump -i [interface] - Linux

Captures live packet traffic traversing a specified network interface.

52
New cards

tcpdump -w [filename.pcap] - Linux

Writes raw captured packets directly to a .pcap file for analysis in Wireshark.

53
New cards

tcpdump -r [filename.pcap] - Linux

Reads and parses packets from an existing packet capture file.

54
New cards

tcpdump -nn - Linux

Disables hostname and port name resolution, displaying raw numeric IPs and port numbers.

55
New cards

tcpdump port [port_number] - Linux

Packet filter expression capturing traffic sent to or from a designated port.

56
New cards

nmap -sS - Performs a TCP SYN stealth scan (half-open scan without completing three-way handshake).

57
New cards

nmap -