https://github.com/matheus-git/sysinfo-script
https://github.com/matheus-git/sysinfo-script
bash-script sysinfo
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/matheus-git/sysinfo-script
- Owner: Matheus-git
- License: mit
- Created: 2025-03-08T13:08:01.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-08T13:35:11.000Z (over 1 year ago)
- Last Synced: 2025-03-08T14:21:30.113Z (over 1 year ago)
- Topics: bash-script, sysinfo
- Language: Shell
- Homepage:
- Size: 25.4 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Sysinfo script

This is a Bash script designed to provide detailed system information in an interactive menu-driven format.
**This project was developed in just a few hours as part of a training exercise over the weekend.**

## Features
- **System Information**: Displays hostname, kernel version, and distribution details.
- **Memory Information**: Shows total, used, and available memory.
- **CPU Information**: Displays CPU model, number of cores, and current usage.
- **Load Average**: Shows the system's load average.
- **Disk Usage**: Displays disk usage for all mounted filesystems.
- **Network Information**: Lists network interfaces and their IP addresses.
- **Running Processes**: Displays the top 5 processes by CPU usage.
- **Open Ports**: Lists all open ports and their states.
- **Logged-in Users**: Shows currently logged-in users.
- **System Uptime**: Displays the system's uptime.
- **Active Services**: Lists all running services.
- **Interactive Menu**: Allows users to select specific information or display all details at once.
## Requirements
- **Bash**: The script is written in Bash and should be run in a Bash shell.
- **Common Linux Utilities**: The script relies on standard Linux utilities like `free`, `lscpu`, `top`, `ps`, `ss`, `who`, `systemctl`, `df`, `ip`, and `uptime`.
## Usage
1. **Make the script executable**:
```bash
chmod +x sysinfo.sh
```
2. **Run the script**:
```bash
./sysinfo.sh
```
3. **Follow the menu prompts**:
- The script will display a menu with options to view specific system information or display all details.
- Enter the corresponding number for the information you want to view.
- Press 0 to exit the script.
## Contributing
Contributions are welcome! Please open an issue or submit a pull request for any improvements or bug fixes.
## 📝 License
This project is open-source under the MIT License.