Skip to content

Instantly share code, notes, and snippets.

@zlorb
Forked from marianposaceanu/linux_fun.md
Last active June 19, 2024 08:24
Show Gist options
  • Save zlorb/4a3eff8981fcec8ca1c7 to your computer and use it in GitHub Desktop.
Save zlorb/4a3eff8981fcec8ca1c7 to your computer and use it in GitHub Desktop.
How to have some fun using the terminal.

Linux fun-o-matic

How to have some fun using the terminal.

  1. Install cowsay [0] via : sudo apt-get install cowsay
  2. Install fortune [1] via : sudo apt-get install fortune
  3. Install figlet [3] via : sudo apt-get install figlet
  4. Make sure you have Ruby installed via : ruby -v
  5. Install the lolcat [2] via : gem gem install lolcat
  6. (option) Add to .bash_profile and/or .bashrc
$ echo "This is a banner" | figlet | lolcat
$ fortune | cowsay | lolcat
$ git log -1 | cowsay -f dragon-and-cow | lolcat

OSX users can have fun too

  1. Make sure you have HomeBrew [9] installed via: brew -v
  2. Install cowsay [0] via : brew install cowsay
  3. Install fortune [1] via : brew install fortune
  4. Install figlet [1] via : brew install figlet
  5. Make sure you have Ruby installed via : ruby -v
  6. Install the lolcat [2] via : gem gem install lolcat or brew install lolcat
  7. (option) Add to .bash_profile and/or .bashrc

See also:

lolcat preview

@SiddharthShyniben
Copy link

Typo: No 4. in the OSX section says fortune instead of figlet

@hoang-himself
Copy link

Some package managers don't include fortune anymore. Install it using the name fortune-mod instead.

@AlejaEs
Copy link

AlejaEs commented Dec 31, 2021

buenas tardes como hago para instalar cowsay en gitbash en Windows 1, gracias

@zlorb
Copy link
Author

zlorb commented Jan 1, 2022

@Rustrian-b
Copy link

It can be a really basic advise however here it goes, if you get the error message "E: Unable to locate package package_name", you should try to use this command line "sudo apt update", it will update the cache and you should be able to install the package needed.

@Anonymous1299
Copy link

What's the command in git bash ??

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment