Network+ Commands

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/74

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

75 Terms

1
New cards

tracert

Windows command that traces the route packets take to a destination (shows hops and latency)

2
New cards

(Linux) Display the kernel message log from the current boot.

journalctl -k and press Enter.

3
New cards

(Linux) Display the system log in reverse order with the newest entries first.

journalctl -r and press Enter.

4
New cards

tracert -h {MAX_HOPS}

Set maximum number of hops to search for target

5
New cards

traceroute

Linux/Unix command that traces the route packets take to a destination

6
New cards

netstat

Command to display active connections, routing tables, and network statistics

7
New cards

netstat -a

Show all connections and listening ports

8
New cards

netstat -n

Show addresses and ports numerically

9
New cards

netstat -o

Show owning process ID

10
New cards

netstat -r

Show routing table

11
New cards

netstat -q

Displays all connections, listening ports, and bound non-listening TCP ports. Bound non-listening ports may or may not be associated with an active connection.

12
New cards

nslookup

Command to query DNS and resolve {HOSTNAME} to {IP}

13
New cards

nslookup {HOSTNAME}

Query DNS for IP of {HOSTNAME}

14
New cards

nslookup {IP}

Reverse lookup of IP address

15
New cards

nslookup {HOSTNAME} {DNS-SERVER}

Query a {HOSTNAME} using a specific DNS server

16
New cards

nmap

Network scanner used to discover hosts and services

17
New cards

nmap {IP}

Basic scan of a target IP

18
New cards

nmap -sP {SUBNET}

Ping sweep of subnet

19
New cards

nmap -sV {IP}

Detect service versions

20
New cards

nmap -O {IP}

Detect operating system

21
New cards

dig

Command-line DNS lookup tool (Linux/Unix)

22
New cards

dig {HOSTNAME}

Look up IP for {HOSTNAME}

23
New cards

dig -x {IP}

Reverse lookup of IP

24
New cards

dig @{DNS-SERVER} {HOSTNAME}

Query using a specific DNS server

25
New cards

curl

Tool to transfer data from or to a server (supports HTTP, FTP, etc.)

26
New cards

curl {URL}

Fetch content from {URL}

27
New cards

curl -I {URL}

Fetch headers only

28
New cards

curl -o {FILE} {URL}

Save output to {FILE}

29
New cards

curl -L {URL}

Follow redirects

30
New cards

FIJI router

Commands for managing VyOS/Fiji-style routers

31
New cards

FIJI: show interfaces

Display all configured interfaces

32
New cards

FIJI: show configuration

Display full router config

33
New cards

FIJI: show ip route

Show routing table

34
New cards

FIJI: show service dhcp-server

Display DHCP server config (if set)

35
New cards

arp

Command to view and manipulate ARP cache

36
New cards

arp -a

Show current ARP table

37
New cards

arp -s {IP} {MAC}

Add static ARP entry

38
New cards

dnf

Package manager for Fedora/RHEL systems

39
New cards

dnf install {PACKAGE}

Install a package

40
New cards

dnf remove {PACKAGE}

Remove a package

41
New cards

dnf update

Update all packages

42
New cards

dnf list available

Displays a list of available packages to install

43
New cards

Most packages store their configs in what directory?

/etc/

sudo nano /etc/{PACKAGE_NAME}/{PACKAGE_NAME}.conf

sudo systemctl restart {SERVICE_NAME}

sudo systemctl status {SERVICE_NAME}

44
New cards

dnf list installed

Shows a list of all installed packages

45
New cards

dnf search {KEYWORD}

Search for a package

46
New cards

tcpdump

Command-line packet analyzer

47
New cards

tcpdump -i {INTERFACE}

Capture packets on {INTERFACE}

48
New cards

tcpdump -n

Do not resolve hostnames

49
New cards

tcpdump -nn

Do not resolve hostnames or ports

50
New cards

tcpdump port {PORT}

Capture traffic on {PORT}

51
New cards

tcpdump host {IP}

Capture traffic for specific host

52
New cards

tracert vs traceroute

tracert = Windows, traceroute = Linux/Unix

53
New cards

route

Command to view or modify IP routing table

54
New cards

How to add an IP route?

route ADD 157.0.0.0 MASK 255.0.0.0 157.55.80.1 METRIC 3 IF 2

destination^ mask^ gateway^ interface^

55
New cards

route -n

Show kernel routing table numerically (Linux)

56
New cards

route print

Show routing table (Windows)

57
New cards

How to view event logs on Windows?

Open powershell as admin, type get-eventlog -logname *

or get-eventlog -logname {name of log} to view specific log.

58
New cards

How to clear an event log on Windows?

Open powershell as admin, type clear-eventlog -logname {name of log}

59
New cards
journalctl
Show all system logs from the beginning
60
New cards
journalctl -f
Follow logs in real-time as they appear
61
New cards
journalctl -u {SERVICE_NAME}
Show logs for a specific service {SERVICE_NAME}
62
New cards
journalctl -n {NUMBER}
Show the last {NUMBER} log entries
63
New cards
journalctl -b
Show logs for the current boot only
64
New cards

Filter packets to/from the specified IP address {IP}

ip.addr == {IP}

65
New cards

Filter packets with source IP {IP}

ip.src == {IP}

66
New cards

Filter packets with destination IP {IP}

ip.dst == {IP}

67
New cards

Filter packets with TCP port {Port}

tcp.port == {Port}

68
New cards

Filter packets with UDP port {Port}

udp.port == {Port}

69
New cards

Filter all HTTP traffic

http

70
New cards

Filter all DNS traffic

dns

71
New cards

Filter all ARP packets

arp

72
New cards

Filter all ICMP packets (ping, traceroute)

icmp

73
New cards

Filter TCP SYN packets (connection attempts)

tcp.flags.syn == 1

74
New cards

Filter TCP FIN packets (connection termination)

tcp.flags.fin == 1

75
New cards

Filter TCP packets whose payload contains the text {Keyword}

tcp contains "Keyword"