Skip to content

Commit

Permalink
Update tasks after PLD
Browse files Browse the repository at this point in the history
  • Loading branch information
yeungegs committed Jul 7, 2017
1 parent 31a0651 commit 0cc3b00
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 6 deletions.
3 changes: 1 addition & 2 deletions 0x07-networking_basics/1-types_of_network
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
3
2
1
2

2 changes: 1 addition & 1 deletion 0x07-networking_basics/2-MAC_and_IP_address
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
1
2
1
2 changes: 1 addition & 1 deletion 0x07-networking_basics/3-UDP_and_TCP
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
2
1
2
1

2 changes: 1 addition & 1 deletion 0x07-networking_basics/4-TCP_and_UDP_ports
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
# displays listening port

sudo netstat -plnt
sudo netstat -pl
7 changes: 6 additions & 1 deletion 0x07-networking_basics/5-is_the_host_on_the_network
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
#!/usr/bin/env bash
# pings 5 times

ping -c 5 $1

if [ "$1" ]; then
ping "$1" -c 5
else
echo "Usage: 5-is_the_host_on_the_network {IP_ADDRESS}"
fi

0 comments on commit 0cc3b00

Please sign in to comment.