Skip to content

Instantly share code, notes, and snippets.

@skramm
Created February 4, 2026 16:22
Show Gist options
  • Select an option

  • Save skramm/87e2ceb393a8395cf6e14876ff9b1772 to your computer and use it in GitHub Desktop.

Select an option

Save skramm/87e2ceb393a8395cf6e14876ff9b1772 to your computer and use it in GitHub Desktop.
Personnalisation bashrc
# 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