diff options
| -rw-r--r-- | bash.md | 6 | ||||
| -rw-r--r-- | network.md | 7 |
2 files changed, 13 insertions, 0 deletions
@@ -26,6 +26,12 @@ Loop over integers for i in `seq 10`; do echo $i; done +Loop over lines of file: + + while IFS= read -r line; do + echo "tester: $line" + done < "$1" + ## Conditionals * `-z`: is empty string @@ -11,6 +11,13 @@ # any protocol lsof -i :8000 +## Inspect network + + # get hosts on LAN + nmap -sn 192.168.0.0/24 + # inspect ports on particular machine + nmap 192.168.0.10 + ## DNS DNS lookup: |