A simple Bash script that checks if an IP address or hostname is reachable using ping.
- Prompts for an IP address or hostname.
- Uses
pingwith a 2-second timeout. - Outputs clear status messages:
- ✅ Host is UP (reachable).
- ❌ Host is DOWN (unreachable).
bashpingutility (included by default on most Linux/macOS/WSL systems).
- Clone this repository:
git clone https://github.com/yourusername/ping-checker.git cd ping-checker
1. cd Server-Service-Checker
2. chmod +x serverservice.sh
3. ./serverservice.sh
4. Enter IP address or hostname: example.com ✅ example.com is UP (reachable).