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.
- π Repository Structure
- π Scripts Overview
- π How to Use
- β‘ Requirements
- π Learning Outcomes
- π οΈ Author
/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." π


