https://github.com/tayfunulu/bashrc
.bashrc - System Resource Monitor Script
https://github.com/tayfunulu/bashrc
Last synced: 2 months ago
JSON representation
.bashrc - System Resource Monitor Script
- Host: GitHub
- URL: https://github.com/tayfunulu/bashrc
- Owner: tayfunulu
- License: mit
- Created: 2024-08-05T17:48:48.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-08-05T20:20:17.000Z (9 months ago)
- Last Synced: 2024-12-31T03:12:33.531Z (4 months ago)
- Language: Shell
- Size: 10.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# System Resource Monitor Script (.bashrc)
**Minimal MOTD**This bash script provides a summary of system resources including date & time, external IP address, memory usage, CPU temperature, system uptime, kernel version, weather information, and disk usage. The output is formatted to ensure alignment and readability.
## Features
- **Date & Time**: Displays the current date and time.
- **External IP**: Retrieves and shows the external IP address.
- **Memory Usage**: Displays memory usage in a visual bar format with percentage.
- **CPU Temperature**: Shows the current CPU temperature.
- **Uptime**: Displays how long the system has been running.
- **Kernel Version**: Shows the current kernel version.
- **Weather**: Displays the current weather.
- **Disk Usage**: Shows disk usage for specified mount points in a visual bar format with percentage.## Usage
1. **Clone the Repository**
```bash
git clone https://github.com/tayfunulu/bashrc.git
cd bashrc
```
2. **Make the Script Executable**
```bash
chmod +x info.sh
```
3. **Run the Script**
```bash
./info.sh
```
4. **Add on .bashrc**
```bash
cd
echo "./bashrc/info.sh" >> .bashrc
```**Example Output**
```bash
=========================================================
π Date & Time : 05-August-2024 , 12:34
π External IP : 123.123.67.89
πΎ Memory Usage : [βββββββ ] 35% - 3.5G / 10G
π‘οΈ CPU Temp : 45.2 Β°C
β³ Uptime : up 2 hours, 30 minutes
π§ Kernel : 5.15.0-76-generic
βοΈ Weather : π¦οΈLight rain 20Β°C 88% (Your Location)
---------------------------------------------------------
π½ /dev/nvme0n1p2 Usage : [βββββββββββ ] 55% - 55G / 100G (/)
π½ /dev/sda1 Usage : [ββββββββ ] 40% - 1.4T / 3.6T (/media/tayfun/Toshiba4T)
```**A Picture from Termius app in iPad**
**Customization**
To customize the script for different mount points or additional features, you can edit the info.sh script and modify the show_disk_usage function to include additional or different mount points.
**License**
This project is licensed under the MIT License. See the LICENSE file for details.
**Contributing**
Contributions are welcome! Please open an issue or submit a pull request for any changes or enhancements.
**Author**
Tayfun ULU