From 3749ec540acb5663c405ad88f893076202ea7ae4 Mon Sep 17 00:00:00 2001 From: Marcin Chrzanowski Date: Thu, 16 Apr 2026 22:14:09 +0200 Subject: update --- bash.md | 6 ++++++ network.md | 7 +++++++ 2 files changed, 13 insertions(+) diff --git a/bash.md b/bash.md index 432bc5e..8aa926c 100644 --- a/bash.md +++ b/bash.md @@ -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 diff --git a/network.md b/network.md index 1720cb3..dfcf512 100644 --- a/network.md +++ b/network.md @@ -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: -- cgit v1.2.3