Aller au contenu

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

De Marmits Wiki
Aucun résumé des modifications
 
(Une version intermédiaire par le même utilisateur non affichée)
Ligne 1 : Ligne 1 :
=== 🟢 <code>cmatrix</code> ===
'''Effet Matrix dans le terminal'''
* '''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>
-----
=== 🕒 <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>
-----
=== 🐱 <code>nyancat</code> ===
'''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''' : <code>bash    nyancat</code>
* '''Remarque''' : Nécessite une connexion réseau pour certaines versions (client/serveur).
<syntaxhighlight lang="bash" line copy>
nyancat
</syntaxhighlight>
-----
=== 🐄 <code>cowsay</code> ===
'''Fait parler une vache (ou autre personnage) en ASCII'''
* '''Description''' : Affiche un message dans une bulle de dialogue avec une vache ASCII.
* '''Utilisation''' : <code>bash    cowsay &quot;Bonjour John !&quot;</code>
* '''Options utiles''' :
** <code>-f tux</code> : change le personnage (ex. Tux, dragon, etc.)
** Combinez avec <code>fortune</code> pour des messages aléatoires : ```bash fortune | cowsay
<syntaxhighlight lang="bash" copy>
cowsay "Hello, World!"
</syntaxhighlight>
ou
<syntaxhighlight lang="bash" copy>
cowsay -f dragon "I am a dragon! RAWR!"
</syntaxhighlight>
=== qrencode ===
=== qrencode ===
Génère un QR code en terminal.
Génère un QR code en terminal.
Ligne 55 : 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>


=== Emoji ===
=== Emoji ===
Ligne 68 : Ligne 129 :
[https://gist.github.com/nicolasdao/8f0220d050f585be1b56cc615ef6c12e openwer gist.github.com/nicolasdao]
[https://gist.github.com/nicolasdao/8f0220d050f585be1b56cc615ef6c12e openwer gist.github.com/nicolasdao]


[[Catégorie: Terminal]]
[[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