Printing ASCII Art in the Shell
banner
sudo apt install sysvbanner
$ banner hello
# # ###### # # ####
# # # # # # #
###### ##### # # # #
# # # # # # #
# # # # # # #
# # ###### ###### ###### ####
FIGlet: Frank, Ian, and Glenn’s Letters
sudo apt install figlet
$ figlet hello
_ _ _
| |__ ___| | | ___
| '_ \ / _ \ | |/ _ \
| | | | __/ | | (_) |
|_| |_|\___|_|_|\___/
-foption and specify a font name for the output-l,-c, and-roptions to align the text to the left, center, or right,
TOIlet: FIGlet With More Options
sudo apt install toilet
$ toilet -f mini hello
|_ _ | | _
| | (/_ | | (_)
-Ffilters
toilet -F list
Available filters:
"crop": crop unused blanks
"gay": add a rainbow colour effect
"metal": add a metallic colour effect
"flip": flip horizontally
"flop": flip vertically
"180": rotate 180 degrees
"left": rotate 90 degrees counterclockwise
"right": rotate 90 degrees clockwise
"border": surround text with a border
$ toilet -F border hello
┌───────────────────────────────────┐
│ │
│ # ""# ""# │
│ # mm mmm # # mmm │
│ #" # #" # # # #" "# │
│ # # #"""" # # # # │
│ # # "#mm" "mm "mm "#m#" │
│ │
│ │
└───────────────────────────────────┘
Making Cows Say Things With cowsay
sudo apt install cowsay
cowsay hello
_______
< hello >
-------
\ ^__^
\ (oo)\_______
(__)\ )\/\
||----w |
|| ||
# `-g`, `-d`, and `-p` for greedy, dead, and paranoid cows
cowsay -d hello
_______
< hello >
-------
\ ^__^
\ (xx)\_______
(__)\ )\/\
U ||----w |
|| ||
# use any characters of our choice for the eyes and the tongue by using the `-e` and the `-T` flags
cowsay -e oO -T V hello
_______
< hello >
-------
\ ^__^
\ (oO)\_______
(__)\ )\/\
V ||----w |
|| ||
# Using Other Animals and Creatures
cowsay -l
Cow files in /usr/share/cowsay/cows:
apt bud-frogs bunny calvin cheese cock cower daemon default dragon
dragon-and-cow duck elephant elephant-in-snake eyes flaming-sheep fox
ghostbusters gnu hellokitty kangaroo kiss koala kosh luke-koala
mech-and-cow milk moofasa moose pony pony-smaller ren sheep skeleton
snowman stegosaurus stimpy suse three-eyes turkey turtle tux unipony
unipony-smaller vader vader-koala www
cowsay -f duck hello
_______
< hello >
-------
\
\
\ >()_
(__)__ _
Using cowsay With fortune/lolcat
fortune | cowsay
____________________________________
/ Try to relax and enjoy the crisis. \
| |
\ -- Ashleigh Brilliant /
------------------------------------
\ ^__^
\ (oo)\_______
(__)\ )\/\
||----w |
|| ||
Printing Images With jp2a
sudo apt install jp2a
jp2a baeldung.png
d.
'kNM;
'l0MMMMMo
::ldkKKMMMMMMMMM;
:dKNMMMMMMMMMMMKMMMMM.
lNMMMMMMMMMMMMMO'MMMMMM
xMMMMMMMMMMMMMMd kMMMMMO
.MMMMMMMMMMMMMc ;MMMMMM.
KMMMMMMMMMMMk ,MMMMMMk
NMMMMMMMMMl .KMMMMMMW
KMMMMMMW :MMMMMMMM
xMMMMM. 0MMMMMMMM.
':dKMMK .dNMMMMMMM.
dKKMMMd lKMMMMMMMN
.kWMMM0;
We can also use the -colors flag to obtain colored output
