Created
February 4, 2026 16:22
-
-
Save skramm/87e2ceb393a8395cf6e14876ff9b1772 to your computer and use it in GitHub Desktop.
Personnalisation bashrc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # personnalisation .bashrc | |
| ville=Rouen | |
| echo -e "\e[0;32m -kernel:\e[m $(uname -r)" | |
| echo -e "\e[0;32m -distribution:\e[m" | |
| lsb_release -a | tail -3 | |
| echo -e "\e[0;32m -disque:\n\e[m $(df -h /dev/sda1)" | |
| echo -e "\e[0;32m -RAM:\e[m" | |
| free -h | |
| echo -e "\e[0;32m -Nb services en exécution:\e[m" | |
| systemctl --type=service | grep "loaded active" | wc -l | |
| echo -e "\e[0;32m -version systemd:\e[m" | |
| systemd --version | head -1 | |
| # meteo (timeout 6s) | |
| echo -e "\e[0;32m -meteo $ville:\e[m" | |
| curl --max-time 6 wttr.in/$ville?format=3 | |
| #======================================== |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment