Aller au contenu

« Commandes bash fun » : différence entre les versions

De Marmits Wiki
Aucun résumé des modifications
Aucun résumé des modifications
 
(8 versions intermédiaires par le même utilisateur non affichées)
Ligne 1 : Ligne 1 :
=== Météo ===
=== 🟢 <code>cmatrix</code> ===
==== Par défaut (3 jours). ====
 
<syntaxhighlight lang="bash" copy>
'''Effet Matrix dans le terminal'''
curl wttr.in/paris
 
* '''Description''' : Affiche une animation inspirée du film ''Matrix'', avec des caractères verts qui tombent en cascade.
* '''Utilisation''' : <code>bash    cmatrix</code>
* '''Options utiles''' :
** <code>-s</code> : mode “slow scroll”
** <code>-b</code> : fond noir
** <code>-u</code> : vitesse (ex. <code>-u 5</code>)
 
<syntaxhighlight lang="bash" line>
cmatrix
cmatrix -b -r -u5 -s
cmatrix -o
</syntaxhighlight>
</syntaxhighlight>


==== Résumé ultra-condensé : Paris: 🌦 +17°C. ====
 
<syntaxhighlight lang="bash" copy>
-----
curl "wttr.in/paris?format=3&lang=fr"
 
=== 🕒 <code>tty-clock</code> ===
 
'''Horloge numérique dans le terminal'''
 
* '''Description''' : Affiche une horloge en grand format dans le terminal, idéale pour les dashboards ou les écrans d’attente.
* '''Utilisation''' : <code>bash    tty-clock</code>
* '''Options utiles''' :
** <code>-s</code> : affiche les secondes
** <code>-c</code> : centre l’horloge
** <code>-C &lt;couleur&gt;</code> : change la couleur (ex. <code>-C 4</code> pour bleu)
<syntaxhighlight lang="bash" line copy>
tty-clock -scrSB
</syntaxhighlight>
ou
<syntaxhighlight lang="bash" line copy>
tty-clock -sScC 1
</syntaxhighlight>
</syntaxhighlight>
-----
=== 🐱 <code>nyancat</code> ===


==== Données brutes (JSON) ====
'''Animation du célèbre mème Nyan Cat'''
<syntaxhighlight lang="bash" copy>
curl "wttr.in/paris?format=j1&lang=fr"
</syntaxhighlight>


==== Météo actuelle ====
* '''Description''' : Affiche une version ASCII animée du mème Nyan Cat dans le terminal.
<syntaxhighlight lang="bash" copy>
* '''Utilisation''' : <code>bash    nyancat</code>
curl "wttr.in/paris?0&lang=fr"
* '''Remarque''' : Nécessite une connexion réseau pour certaines versions (client/serveur).
<syntaxhighlight lang="bash" line copy>
nyancat
</syntaxhighlight>
</syntaxhighlight>
-----


==== Affiche les nuits (pour + de détails). ====
=== 🐄 <code>cowsay</code> ===
<syntaxhighlight lang="bash" copy>
curl "wttr.in/paris?n&lang=fr"
</syntaxhighlight>


==== Affiche en français  ====
'''Fait parler une vache (ou autre personnage) en ASCII'''
<syntaxhighlight lang="bash" copy>
curl "wttr.in/paris?lang=fr&v2"
</syntaxhighlight>


==== Affiche les phases de la Lune ====
* '''Description''' : Affiche un message dans une bulle de dialogue avec une vache ASCII.
<syntaxhighlight lang="bash" copy>
* '''Utilisation''' : <code>bash     cowsay &quot;Bonjour John !&quot;</code>
curl wttr.in/Moon
* '''Options utiles''' :
</syntaxhighlight>
** <code>-f tux</code> : change le personnage (ex. Tux, dragon, etc.)
** Combinez avec <code>fortune</code> pour des messages aléatoires : ```bash fortune | cowsay


==== Affiche une adresse précise avec les coordonnées GPS ====
<syntaxhighlight lang="bash" copy>
<syntaxhighlight lang="bash" copy>
curl "wttr.in/48.8566,2.3522"
cowsay "Hello, World!"
</syntaxhighlight>
</syntaxhighlight>
 
ou
==== Affiche un graphique détaillé ====
<syntaxhighlight lang="bash" copy>
<syntaxhighlight lang="bash" copy>
curl "wttr.in/48.8566,2.3522?format=v2"  
cowsay -f dragon "I am a dragon! RAWR!"
</syntaxhighlight>
</syntaxhighlight>


=== qrencode ===
=== qrencode ===
Ligne 102 : Ligne 124 :
</syntaxhighlight>
</syntaxhighlight>


=== cowsay ===
<syntaxhighlight lang="bash" copy>
cowsay "Hello, World!"
</syntaxhighlight>
ou
<syntaxhighlight lang="bash" copy>
cowsay -f dragon "I am a dragon! RAWR!"
</syntaxhighlight>


[[Catégorie: Linux]]
=== Emoji ===
==== 🌞 🌳 🐉 ====
[https://gist.github.com/nicolasdao/8f0220d050f585be1b56cc615ef6c12e openwer gist.github.com/nicolasdao]
 
[[Catégorie: Terminal Tools]]

Dernière version du 24 octobre 2025 à 11:00

🟢 cmatrix

Effet Matrix dans le terminal

  • Description : Affiche une animation inspirée du film Matrix, avec des caractères verts qui tombent en cascade.
  • Utilisation : bash cmatrix
  • Options utiles :
    • -s : mode “slow scroll”
    • -b : fond noir
    • -u : vitesse (ex. -u 5)
cmatrix
cmatrix -b -r -u5 -s
cmatrix -o



🕒 tty-clock

Horloge numérique dans le terminal

  • Description : Affiche une horloge en grand format dans le terminal, idéale pour les dashboards ou les écrans d’attente.
  • Utilisation : bash tty-clock
  • Options utiles :
    • -s : affiche les secondes
    • -c : centre l’horloge
    • -C <couleur> : change la couleur (ex. -C 4 pour bleu)
tty-clock -scrSB

ou

tty-clock -sScC 1

🐱 nyancat

Animation du célèbre mème Nyan Cat

  • Description : Affiche une version ASCII animée du mème Nyan Cat dans le terminal.
  • Utilisation : bash nyancat
  • Remarque : Nécessite une connexion réseau pour certaines versions (client/serveur).
nyancat

🐄 cowsay

Fait parler une vache (ou autre personnage) en ASCII

  • Description : Affiche un message dans une bulle de dialogue avec une vache ASCII.
  • Utilisation : bash cowsay "Bonjour John !"
  • Options utiles :
    • -f tux : change le personnage (ex. Tux, dragon, etc.)
    • Combinez avec fortune pour des messages aléatoires : ```bash fortune | cowsay
cowsay "Hello, World!"

ou

cowsay -f dragon "I am a dragon! RAWR!"

qrencode

Génère un QR code en terminal.

echo "https://example.com" | qrencode -t ANSI

Ecran de hacker

sudo apt install hollywood

Inverse un text

echo "un texte" | rev

Dé de 1 à 6

echo $((1 + RANDOM % 6))  # Dé entre 1 et 6

Compte à rebours

for i in {5..1}; do echo "$i..." && sleep 1; done; echo "Boom!"

Fake "hacking"

cat /dev/urandom | hexdump -C | grep 'ca fe'

Star Wars ASCII

telnet towel.blinkenlights.nl

Magic 8-Ball

answers=("Oui" "Non" "Peut-être" "Demande plus tard")
echo "${answers[$((RANDOM % 4))]}"

Factorise un nombre

factor 42  # Affiche "42: 2 3 7"

Un train qui traverse ton terminal (quand tu fais une faute de frappe sl au lieu de ls)

sl

ou avec une aide

sl -a


Emoji

🌞 🌳 🐉

openwer gist.github.com/nicolasdao