Sunday, 12 May 2013

A little fun with Linux command line!


Yes that's the picture I posted on LinuxForGeeks today on the special occasion of Mother day. Let me take this occasion to clarify that people using CLI(Command line interface) are not some geeks who know something special which common people don't. Once you start using CLI you will know how much fun it is. For now let me introduce some cool commands.

Here are some command you may enjoy in your spare time -

  1. fortune
    Fortune is a simple program that displays s pseudo random message from a database of quotations that first appeared in version 7 Uiux. Just type fortune in the CLI and see the various messages that are displayed.To install fortune type the following in CLI - sudo apt-get install fortune-mod

    Some examples are as follows -

    You get the point. For more info refer to its man page.Some options that you can use with the command are -

     
  2.  cowsay
    Cowsay is a program(written in Perl) which generates ASCII picture with of a cow with a message It can also generate pictures using pre-made images of other animals, such as Tux the Penguin, the Linux mascot.To install cowsay just type in CLI - sudo apt-get install cowsay

    Example -

    You can use -f  tux option to get a tux instead of a cow.
    That's not it. You can combine fortune and cowsay commands to have a bit more fun.Type the following in your CLI
    fortune | cowsay -f tux
  3.  
  4. espeak
    eSpeak is a compact open source software speech synthesizer for Linux.
    Just type  espeak 'Hello World' in your CLI and you will hear the voice saying the argument supplied(Hello World). This is the default program installed on Ubuntu.
    It can also read from a text file supplied with -f argument. For more info you can refer eSpeakCommands.

1 comment:

t> UA-39527780-1 back to top