« Commandes bash fun » : différence entre les versions
Apparence
Aucun résumé des modifications |
|||
| Ligne 64 : | Ligne 64 : | ||
</syntaxhighlight> | </syntaxhighlight> | ||
=== Emoji === | |||
[https://gist.github.com/nicolasdao/8f0220d050f585be1b56cc615ef6c12e openwer gist.github.com/nicolasdao] | |||
<syntaxhighlight lang="bash" copy> | |||
🚀 | |||
</syntaxhighlight> | |||
[[Catégorie: Linux]] | [[Catégorie: Linux]] | ||
Version du 4 juin 2025 à 15:53
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
cowsay
cowsay "Hello, World!"
ou
cowsay -f dragon "I am a dragon! RAWR!"
Emoji
openwer gist.github.com/nicolasdao
🚀