cowsay And fortune Combined Together
Hi linux geeks!
In this article I will teach you a nice trick you can perform in the terminal with the help of cowsay and fortune tools. But before going any further, let me tell you guys something about these tools and how to install them in your machine.
cowsay, what is it? If we analyze the name, we can jump into the conclusion that this tool has to do with a cow that says something and it is completely true. The cow displays in the terminal screen something provided by the user as the input. No arguments, only standard input and you are ready to go. How to install cowsay in Ubuntu?
Well, it is very easy! Open a new terminal(CTRL+ALT+T) and run the following command.
$ sudo apt-get install cowsay
After you have installed the tool, run another command in the terminal to test if cowsay works and also to print something you like to see in the terminal screen.
$ cowsay hello from unixmen
Now that you guys know what cowsay is, we should explain and test the fortune tool. fortune is a nice tool that can be used to print a random proverb or saying with the intention of being interesting to the reader. It is a tool with many options, but a nice thing about it is that it can also be used without any option. Install the fortune tool with the following command.
$ sudo apt-get install fortune
Are you ready for some fun? The first time i tried the fortune tool, I became addicted to it and couldn’t stop tying again and again only to read different adages.
Is the phrase long? Ok, use the fortune tool with the -s option to select and display short apothegms only. The following command will do it for us.
$ fortune -s
Now it is time for a smart tip! Can we combine fortune with cowsay in order to produce a nice output? Yes we can! We need only one pipeline to do that.
$ fortune | cowsay
Like us on Facebook
We need your assistance to stay live
This week Top Posts
- Wow! Linux Foundation To Offer Free Linux Course This Summer Worth $2,400 on EdX : Wow! Early last week it was all over the internet, if you haven't heard it yet then this is the t...2 comments |
- Grive: An Unofficial, Open Source Linux Client For Google Drive : A couple of months before, we have featured a Linux client for Google Drive named Syncdrive, which w...3 comments |
- Top Things To Do After Installing Ubuntu 13.10 'Saucy Salamander' : Ubuntu 13.10 Saucy Salamander will be released on coming October 17th with many new salient featur...0 comments |
- Install Sublime Text 3 In Fedora Easily With Fedy : Sublime Text is a sophisticated text editor for code, markup and prose. In this tutorial we are goi...0 comments |
- How To "Fix E: Could not open file /var/lib/dpkg/status" : QUESTION: I get the following error when I use sudo apt-get update: E: Could not open file /var/...0 comments |
- Install nSnake Game In Terminal : From github repo nsnake is a clone of the classic snake game that we all used to play on our cellp...0 comments |
- Adding and Deleting Cluster Resources (corosync pacemaker)
- News from Kaspersky Lab: Tor is protecting criminals
- Install Satis On Ubuntu Sever 13.10/13.04
- How To Access A LVM Drive / Partition in Ubuntu
- How To Disable Remember Open Files in Sublime Text 3
- Install Sublime Text 3 In Fedora Easily With Fedy
- Grive: An Unofficial, Open Source Linux Client For Google Drive
- Install nSnake Game In Terminal
- How To “Fix E: Could not open file /var/lib/dpkg/status”
- Wow! Linux Foundation To Offer Free Linux Course This Summer Worth $2,400 on EdX
This work by unixmen.com is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License.
Copyright © 2008-2013 Unixmen.com .