Index ¦ Archives ¦ Atom ¦ RSS > Tag: bash

All your aliases are belong to you

HELLO I like setting up shortcuts to frequently used commands whether I used Windows or Linux. I use the terminal often and create shortcuts to frequently used commands using “alias” feature of BASH. This has saved me considerable time in the past. However, I recently felt that if I could ...


Query Wikipedia from your terminal

I refer Wikipedia frequently. I use this BASH function to help me do that from the terminal. For explanation of how this works head over here.

BASH function

# wiki
# eg: wiki India
#     wiki Apple_Inc
#     wiki Anglo_Saxon
wiki()
{
    dig +short txt $1.wp.dg.cx
}

Example usage

prashanth@prashanth-desktop:~$ wiki India ...

© Prashanth Ellina. Built using Pelican. Theme by Giulio Fidente on github.