DevNotes

Concise, Handy and Elegant Notes for Developers

0%

Bring fortune to your Linux terminal with cowsay figlet lolcat

We will cover a few interesting commands today, they are figlet toilet lolcat fortune cowsay shuf. To learn a new command, I believe the best way is always to check tldr for the basic usage and then play with it.





Not only cow and dragon, but also many other options are available to choose. Check them with

1
ls /usr/share/cowsay/cows

To pick one randomly, shuf comes in. And to fetch only file name without extension, there’re more than one way to do so.

Now, time to put them all together, and try to run it a few more times to see the results.

1
echo "Enjoy and have fun\!" | lolcat -a