Skip to content

Commit

Permalink
Final
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinMousa committed Jan 5, 2024
1 parent 985ab6f commit ff7a18a
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 0 deletions.
2 changes: 2 additions & 0 deletions 0x07-networking_basics/0-OSI_model
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
2
2
3 changes: 3 additions & 0 deletions 0x07-networking_basics/1-types_of_network
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
3
2
1
2 changes: 2 additions & 0 deletions 0x07-networking_basics/2-MAC_and_IP_address
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
2
1
3 changes: 3 additions & 0 deletions 0x07-networking_basics/3-UDP_and_TCP
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
1
2
1
4 changes: 4 additions & 0 deletions 0x07-networking_basics/4-TCP_and_UDP_ports
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env bash
# script that displays TCP and UDP listening ports

netstat -l
14 changes: 14 additions & 0 deletions 0x07-networking_basics/5-is_the_host_on_the_network
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/usr/bin/env bash
# script that pings an IP address passed as an argument

# ip variable
IP="${1}"

# filename variable
fn=$(basename "${BASH_SOURCE[@]}")

if ! [ "$IP" ]; then
echo "Usage: ${fn} {IP_ADDRESS}"
else
ping -c 5 "${IP}"
fi
1 change: 1 addition & 0 deletions 0x07-networking_basics/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0x07. Networking basics #0

0 comments on commit ff7a18a

Please sign in to comment.