A collection of Bash scripts for practicing Linux networking, system administration, and cybersecurity fundamentals. Built for students, beginners, and security enthusiasts who learn by doing.
/Network$ tree -L 2
.
├── 📄 Quick_ping.sh
├── 📄 README.md
├── 📄 network_diagnostics.sh
├── 📄 new.sh
├── 📄 port.sh
├── 📄 practice.sh
├── 📄 save.sh
└── 📄 test.sh
0 directories, 8 filesFile:
new.sh/test.sh
# What this script does:
✦ Prints user details → whoami, pwd, date
✦ Creates directories → mkdir, touch
✦ Loops & conditions → for loops, if-else
✦ User input handling → read commandsFile:
network_diagnostics.sh
# What this script does:
✦ Listening ports → ss -tuln
✦ Active processes → netstat, ip a
✦ System info → Hostname, Gateway, DNS, MAC
✦ ARP table → arp -a
✦ Connectivity tests → ping, traceroute, nslookup
✦ DNS cache flush → systemd-resolve --flush-cachesFile:
port.sh
# What this script does:
✦ TCP/UDP ports → ss -tuln (modern netstat)
✦ Raw socket info → ss -a
✦ Open port count → grep + wc -l
✦ Process per port → ss -tulnp
✦ Active connections → ss -sFile:
practice.sh
# What this script does:
✦ IP & Gateway → ip route, ip addr
✦ Open ports → ss -tuln
✦ Traceroute → traceroute 8.8.8.8
✦ IP range scanner → loop-based ping sweep
✦ User input → read name/age prompts
✦ Active connections → ss -sgit clone https://github.com/Unixxxxxx/linux-networking-scripts.git
cd linux-networking-scriptschmod +x script_name.sh./network_diagnostics.sh
./port.sh
./practice.sh
./Quick_ping.shsudo ./port.sh # for process-level port info
sudo ./network_diagnostics.sh|
🖥️ System |
🔧 Tools Required |
Install missing tools:
# Ubuntu / Debian
sudo apt install net-tools iproute2 iputils-ping traceroute dnsutils -y
# Fedora / CentOS
sudo dnf install net-tools iproute iputils traceroute bind-utils -y|
🌐 Networking |
🔐 Security |
🐧 Linux |
⚙️ Automation |
Sudhanshu Kumar
🛡️ Cybersecurity Enthusiast | 💻 Python & Bash Developer | 🐧 Linux Lover
"In God we trust. All others we monitor." 🔐


