Skip to content

Unixxxxxx/Network

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

42 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ” Linux Networking & Security

Bash Scripts Collection

Typing SVG



Linux Bash Networking Security Status




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.


πŸ“‘ Table of Contents


πŸ“‚ Repository Structure

/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 files


πŸ“œ Scripts Overview

1. πŸ–₯️ Basic Commands & Conditions

File: 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 commands

Bash Logic


2. 🌐 Networking Information Script

File: 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-caches

Network Network Network Network


3. πŸ” Port Monitoring Script

File: 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 -s

Security Security Security


4. πŸ› οΈ Practice & System Info Script

File: 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 -s

Network Network


πŸš€ How to Use

Step 1 β€” Clone the Repository

git clone https://github.com/Unixxxxxx/linux-networking-scripts.git
cd linux-networking-scripts

Step 2 β€” Give Execute Permission

chmod +x script_name.sh

Step 3 β€” Run Any Script

./network_diagnostics.sh
./port.sh
./practice.sh
./Quick_ping.sh

Step 4 β€” Run with sudo (if needed)

sudo ./port.sh        # for process-level port info
sudo ./network_diagnostics.sh


⚑ Requirements

πŸ–₯️ System

✦  Linux OS (Ubuntu / Debian / Fedora)
✦  Bash shell  (v4.0+)
✦  Terminal with sudo access

πŸ”§ Tools Required

✦  ss          β†’  socket statistics
✦  netstat     β†’  network connections
✦  ip          β†’  IP/route management
✦  ping        β†’  connectivity test
✦  traceroute  β†’  route tracing
✦  nslookup    β†’  DNS lookup

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

πŸ“š Learning Outcomes

🌐 Networking

TCP/IP Basics
Port Analysis
DNS & Routing
ARP Protocol

πŸ” Security

Port Scanning
Process Recon
Active Connections
Network Hardening

🐧 Linux

Bash Scripting
System Commands
File Operations
User Input/Output

βš™οΈ Automation

Shell Scripting
Loop Automation
Scheduled Tasks
System Monitoring

πŸ› οΈ Author

Sudhanshu Kumar

πŸ›‘οΈ Cybersecurity Enthusiast Β |Β  πŸ’» Python & Bash Developer Β |Β  🐧 Linux Lover


LinkedIn Gmail GitHub


"In God we trust. All others we monitor." πŸ”


Made with Bash Β  Open Source Β  PRs Welcome


About

info about network using python.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors