Geody Labs


# Main Index: Debian Linux Magic Spells Cheat Sheet (one liners, how to, tips and tricks)

# ASCII Art

Create a labyrinth:
c=(\/ \\); n=${#c[@]}; clear; printf "%s" "${c[RANDOM%n]"{1..1920}"}"
c=(\/ \\); n=${#c[@]}; clear; while :; do printf -- "${c[RANDOM%n]}"; done # Endless labyrinth (break with CTRL+C)

apt-get install figlet

figlet "Hello" # Type Hello using ASCII Art

apt-get install cowsay

/usr/games/cowsay "Hello" # Show a cow saying Hello
/usr/games/cowthink "Hello" # Show a cow thinking Hello
/usr/games/cowsay -f CHARACTER "Hello" # Use alternate CHARACTERs, for example: tux, moose, sheep, milk
/usr/games/cowthink -f CHARACTER "Hello" # Use alternate CHARACTERs, for example: tux, moose, sheep, milk
ls /usr/share/cowsay/cows # Show available cows (characters)
/usr/games/fortune|/usr/games/cowsay # Fortune teller cow (requires fortune cookies to be installed)
/usr/games/cowsay -f "$(ls /usr/share/cowsay/cows | sort -R | head -1)" "$(/usr/games/fortune -s)" # Random character tells fortune

apt-get install sl

sl # show a running steam locomotive in ASCII Art
sl -c # show a small steam locomotive
sl -F # show a flying steam locomotive
sl -a # show people crying for help into a steam locomotive
sl -a # allow the animation to be interrupted with CTRL+C

apt-get install lolcat

echo 'Somewhere over the rainbow' | /usr/games/lolcat # Return the given text as a raibow
echo 'Somewhere over the rainbow' | /usr/games/lolcat -a # Return the given text as an animated raibow
/usr/games/fortune|/usr/games/cowsay|/usr/games/lolcat # Fortune teller cow in a rainbow (requires fortune cookies and cowsay to be installed)
/usr/games/fortune|/usr/games/cowsay|/usr/games/lolcat -a # Fortune teller cow in an animated rainbow (requires fortune cookies and cowsay to be installed)




Please DONATE to support the development of Free and Open Source Software (PayPal, Credit Card, Bitcoin, Ether)

Page issued on 25-Sep-2022 05:26 GMT
Copyright (c) 2022 Geody - Legal notices: copyright, privacy policy, disclaimer