Yubnub/Printable version


Yubnub

The current, editable version of this book is available in Wikibooks, the open-content textbooks collection, at
https://en.wikibooks.org/wiki/Yubnub

Permission is granted to copy, distribute, and/or modify this document under the terms of the Creative Commons Attribution-ShareAlike 3.0 License.

Introduction

What is YubNub?

edit

YubNub is a web-based command line that allows users to create commands and quickly access many internet services. This command line can be integrated into web browsers such as FireFox, IE, Opera, Safari, and even those on the BlackBerry and PSP. Jump right in and try some of the commands you find here at http://www.yubnub.org/.

About this WikiBook

edit

While the WikiBook of YubNub commands provides an overview of what you can do with YubNub, it is by no means comprehensive. The purpose here is to help the reader become familiar with the more popular commands and discover how using YubNub can improve the web browsing experience. The text is divided into sections with the first part focusing on those commands commonly used to query search engines. The latter part is dedicated to those YubNub commands for more specific applications. The Appendix contains commentary, lists of commands sorted by domain (i.e. Google, Yahoo, etc.) and references to the source code.


Queries

YubNub provides a few commands just to locate commands and their documentation. Readers of this Wikibook can learn more using the following commands:

ls
search for commands submitted to YubNub; list commands in reverse chronological order
Example: ls yahoo
man
search for manual documenting a particular command
Example: man gim
ge
search among recommended commands or Golden Eggs
Example: ge livejournal


Utilities

These commands start small programs for YubNub users.

cmdline (or cmd)
opens frame with YubNub command line (type "brk" or "breakout" command to exit)
sidenub
initialize SideNub, an experimental YubNub sidebar


Search Related Commands

YubNub users save a step or two when it comes to searching the World Wide Web. By using YubNub commands, they no longer have to go to a particular search page to type in and submit their queries.


Search engine queries

edit

A lot of search sites do not crawl the web themselves, but use an index from another search engine. The following YubNub commands provide quick access to those search engines:

g (google or gg)
search using Google
y
search Yahoo
ask
search with Ask
a9
search A9
alta
search Altavista
wlive
search Live


Special options

edit
gfl (goto or ifl)
search Google using the "I Feel Lucky" feature
ggn (g2 or g9)
search Google in the "Browse by Name" mode, a hybrid between "I Feel Lucky" and a standard search
ggs
use Google suggest as you type, now the default for a standard Google search.
superg
does most Google searches in one command
ysite (or explore)
displays the pages indexed by Yahoo for the given site
ylinks
displays the links to a site according to Yahoo's index
edit

These include other portals to search engines as well as searching for specific types of information.

all (or atw)
search Alltheweb
bgo
search (maybe win) using Blingo
brain
search BrainBoost
dp
Dogpile search
mss
Microsoft MSN Search
sema
SearchMash
twin
search via Twingine


edit
gim
search Google for images
yim (or yimages)
find Yahoo images
limg
search Live for images
flcc
search Flickr for photos published with a Creative Commons (CC) license
mashim
search images using a mash-up of Google, Yahoo, and Flickr


edit
gmaps (gm or gm2)
search maps provided at Google
ymaps
search maps at Yahoo
geocode
use Geocoder to return the latitude & longitude for an address
topoz
use zip code to find a topographic map at Trails


edit

This category includes online dictionary, encyclopedia, and thesaurus search.

= (define, meaning, or equals)
search for a word's meaning at Dictionary
dict
search for definitions at Dict.org
fdt
search TheFreeDictionary
mw (webster)
search the Merriam-Webster database
speak
Speaks a single word, via the Merriam-Webster dictionary's audio files
cambridge
Cambridge dictionary lookup
olrd (onelook or ol)
search OneLook Reverse Dictionary
wordref
consult WordReference
ona
search OneAcross dictionary
dfn
define query Google
wikis (wiki or wp)
search Wikipedia
=?
search the Thesaurus
rwords
see relationship between words using Lexical FreeNet
bartleby
search for references in great books online at Bartleby
thesaurus
search the Merriam-Webster thesaurus
gdef (gdefine or gdeff)
performs a Google definition search
wnet
searches online dictionaries using die.net
a (answer or ans)
searches Answers


edit
hype
search for audio tracks
download
search for files at Download


edit
gnews (or gnws)
search news at Google
ynews (or xny)
search news at Yahoo


edit
tec (or tecn)
search Technorati
ljseek
search LiveJournal entries
spht
search for blog posts related to a particular URL


edit
w (or weather)
search for local weather information at Weather
wu
use zip code to search WeatherUnderground
fc
use zip code to find forcast using AccuWeather
yweather (or yw)
find weather info from Yahoo


edit
c411phone
do a reverse phone search using Canada411 directory
phone
search WhitePages residential telephone listings
ypeople
find people by surname
zab
use Zabasearch to find people


edit
am (amazon or ama)
search for books at Amazon
asinlookup
look up the ASIN number for an Amazon item, given the items URL
bi
search Wikipedia using the ISBN number
freebook
title word search for books available at Penn's online book page
Example: freebook beagle
freebook-author
author search for books available at Penn's online book page
nypl
search the New York Public Library
sprk
search for SparkNotes guides
sworldcat
worldcat -isbn {scrapeisbn1 ${kw}} -where ${where=19460}
Mashes up worldcatlibraries.org and ISBNdb.com


edit
cmc
search Comics
cmcx
search GoComics
dilbert
read the Dilbert comic strip
garfield
read the Garfiled comic strip


edit
imdb
search the International Movie Database
imdbq (or moviequote)
search for movie quotes using IMDB
nytmovies
search through the New York Times movie reviews


edit
sing
find a song with Sing365
tabs
911tabs meta-search tabs for a song
discogs
search the Discogs database of music information
musipedia
search Musipedia.org for music by specifying if the notes goes up, down or repeats using a series of u's, d's and r's as arguments, where u=up, d=down and r=repeat
Example: musipedia rrrudrrrrrrrrrdrrrr Result (among others): Lennon-McCartney (Beatles): Yellow Submarine (chorus)


Television

edit
ontv
search tv listings by zipcode and select a local provider
tvg
search for the show title via TV Guide
tv.com
TV search
bbctv
search for BBC radio and television programs
mtvsearch
search MTV
simpsons
read what TheSimpsonsQuotes serves up


edit

Aviation

edit
airport
find airport information using World-Airport-Codes
airportinfo
view pilot aviation information from FlightAware
metar
lookup METAR observiations via the National Weather Service
taf
get Terminal Aerodrome Forcast for any ICAO station
avtrack
track aircraft in real-time using Flight Aware


Genealogy

edit
roots
search genealogy in the RootsWeb database.


Geography

edit
cia
search the CIA's world factbook for information on different nations
nme
search for information on a country via NationMaster


Health

edit
gweecal
check calories at The Daily Plate
clab
search using the Calorie Counter at CalorieLab


Mathematics

edit
math (or mathworld)
search MathWorld
mathlinks (or mth)
search the MathLinks forum
mathdef
Lucky Google search of the Springer Online Encyclopedia of Mathematics

Physics

edit
apsgoto
search Reviews of Modern Physics
hsw
search on How Stuff Works
jphys (or iop)
search and IOP journal


Application Commands

Application commands

edit

These YubNub commands provide access to web applications or services other than search. It's a fine line, but in the Read/Write spectrum of the Web, this section should be devoted to commands that write.

Email & alias

edit
send
send a message to an email address
shortcut
create an alias for an email address
checkshortcut
check to see if the shortcut name already exists
echoshortcut (or pas)
view the value assigned to a shortcut alias
compose
open your default email client to send a message
sendmail
send a message with a subject to an email address
teacher
generate an email to send to a teacher at a particular school
readmail
read email from a temporary Mailinator address
10mail
get a temporary email address at 10minutemail
gma
open and search GMail


edit
bspot (bst or goblogger)
open a web log at Blogger
lj
open a user's LiveJournal
postblogger
create a new post at Blogger
ljupdate
update your LiveJournal
readblogs
open a user's Bloglines feed
bl
goes to BlogLines subscribe page for the URI or feed
readrss
open a user's read collection at KickRSS
rssread
use Google Reader to view an RSS feed
grazr (or grz)
use Grazr to view an RSS feed
stdRSS
standardize any RSS, ATOM, hAtom, XOXO Blog Format, or Active Channel feed
refilter
use ReFilter to filter an RSS feed
hyperss
generate music rss feed using Hype Machine MP3 search output
Example: hyperss lucinda williams
rss2pdf
use RSS 2 PDF convert an RSS feed to a PDF file


Bookmarks

edit
delime
search your personal Delicious bookmarks
myweb
search your Yahoo bookmarks
gbm
search your Google bookmarks

Check spelling

edit
\\
checks the spelling of the input of any Yubnub command
SYNTAX \\ [yubnub command] [your query to be spellchecked]
Example: \\ gim cmbodia
spllw
check spelling via FromRocks
Example: spllw confrence
returns conference
wp\
check spelling of a word or phrase and then search for it on the english wikipedia
spellchk (or spellcheck)
check a words spelling using SpellCheck.net


Other utilities

edit
arch (or wayback)
try the Archive Waybackmachine
bark
play audio of a dog barking
clipboard
copy a text string to your clipboard; clipboard <string>
Example: clipboard I'm in your clipboard
convert
use Google to convert units
pay
using paypal
fedex
track information on a FedEx shipment
upc
look up information on a UPC code
ups
track information on UPS packages
barcd
generate a printable and scannable barcode
gmt
find local time (and date) for a given location using TimeAndDate
month
displays a calendar for the current month (U.S.) from TimeAndDate
uscal
display US monthly calendar(s) for specified month and year
gaspr
search for gas prices by zipcode using MSN Autos
sirc
Search IRC networks and channels
georest
generate an xml file with latitude and longitude from Geocoder.us
Example: georest 1 Beacon Street, Boston MA
open
open one or more websites in a new window or tab
resolution
display your screen resolution
timer
interactive online timer
wnt
create a note in webnote
note
add text to yahoo notes
ynotes
search Yahoo Notes
yab
search within Yahoo Address Book
visual
display a visual representation of Wordnet's resources
bchart
displays stock and mutual fund information from BarChart
login
returns an entry from BugMeNot
nyt
paste an article URI from the NYTimes website and get a weblog-safe URL that doesn't require registration
Example: nyt http://www.nytimes.com/2005/06/13/opinion/13krugman.html
pacm
play a game of PacMan in you browser
ypt
play a game of Yahtzee


edit
clusters
search Flicker tag clusters for images
delete
remove a tag from all your Flickr photos
f2pdf
convert Flickr images to PDF files
fspell
use Flickr to spell words
flintshow
search Flickr and display photos; combines "flint" & "flshow"
Example: flintshow yubnub
graybit (or grayscale)
convert images on a web page to their grayscale equivalent using GrayBit
pixoh
open a URI in the online picture editor, Pixoh
rotate
rotate an image
thnl
web page thumbnail maker
Example: thnl http://www.google.com
websnap
instantly creates a thumbnail image of any web site using WebSnapr


Commands to calculate

edit
dist
calculate the distance between two cities using Indo
Example: dist memphis tn ; baton rouge la
xe
convert from any currency to another
gray
use Google Calculator to do the arithmetic
Example: gray 0 255 100
yquotes
download stock quotes from Yahoo Finance site and open the .csv file in excel
Example: yquotes ACC.NS+CRBK.NS+INFY.NS+XYZ.NS
logs
calculate logarithms; natural logs by default
jscalc (or clc)
use javascript as a calculator
Example 1: jscalc 5+6*7
Output: 47
Example 2: jscalc Math.sqrt(25)
Output: 5
clc sqrt(25)
mate
evaluate mathematical expressions using the Mate online calculator by Tusanga
random
returns a random number from Random.org


Commands for use with mobile devices

edit
figure
same as gim (Google Image), but optimized for mobile devices
gmobile (or mo)
view any site without images, CSS or JavaScript using mobile device version of the page; different than the gproxy command that is used to bypass proxy
wpm (or wpContent)
format Wikipedia contents for mobile phones
gxhtml
Google xhtml search page for mobiles
mobi
use Google to left justify and reformat a webpage to fit
ymini
access Yahoo Mail for mobile applications
tecmini
search blogs via Tecnorati


Commands for programmers

edit

These may also prove useful to web designers and system administrators.


Code and Markup

edit
code
search Koders for a codesnippet, function or class
html
use the SquareFree online HTML editor
html2text (or 2t)
use Aaronsw's Python script to convert an HTML page to plain text
stripHTML
removes HTML
lynx
display source code for a web page
php
PHP function look-up
script
run javascript.
w3
use the W3C CSS Validation Service
w3c
use the W3C HTML validator
w3s
use Google to search the tutorials at W3Schools
vh
use SEOpen tool to view HTTP server headers for a given URL
ala
search A List Apart archives
go2
simple substitution for URL or address bar search results


Databases

edit
mysql
search the MySQL reference manual
sqlsearch
search for SQL commands using Google
sqlfind
search for SQL syntax in .sql files
sqlformat
search for SQL commands using Google
sqlrw
use PeteFreitag's reserved word checker


Networking

edit
alexa
display Alexa traffic rankings and other statistics
cip (or where)
find where an IP address is located geographically.
netcraft
use NetCraft to see what a website is running
speed test
calculate the speed of the net connection
whois
check Whois Source for domain information
domainhelp
use NameBoy domain search
mydns
use DNSStuff to find your see your public IP address and information
glinux
Google special Linux search
psize
use the page size checker by Tasman-Webdesign
inspect
display info about a domain
Example: inspect yahoo.com
ip2location
reverse look-up of country, state, city, latitude, longitude and ISP
tracert
use Fifi's online traceroute service
cdns
use CheckDNS to tests DNS, WWW, and mail server info for a specified domain
rdns
do a reverse DNS Lookup on an IP address
dnstrace
DNS authentication trace via FreeDNS.Afraid
codd
search the CentralOps domain dossier


Commands for YubNub developers

edit

Some commands are at best bookmarks or at worst spam. The commands listed here will help the would-be YubNub author stay clear of them and create something far more useful. Good commands are nominated to become Golden Eggs.

create (new or create2)
test, document, and submit a new command
CommandExists
To know if the argument is a YubNub command
split (or splitv)
display several webpages vertically in separate frames of same window or tab
splith
display several webpages horizontally in separate frames of same window or tab
two
view the results of two YubNub commands in the same window or tab
url
converts a YubNub command to a URL
man+
returns the YubNub manual page for a command if it exists, otherwise it returns the "create a command" page.
cmdData
Returns data from a command's man page.
similar
find YubNub commands similar to a given command or a given URL
kidsof
display a list of commands that use a given command
YubStats
Show some statistics of YubNub commands.
abv (or param)
execute a YubNub command without having to type parameter names
gui
creates a web interface for a YubNub command
yubsource
shortcut to YubNub source code repository
urlet
create a simple bookmarklet from a YubNub command
mash
applies several commands to a single word and return them in a single window or tab
multi
run multiple commands and return them in a single window or tab
repeat
repeat user entered data a specified number of times


edit
gotourl
go to a url that you construct using multiple parameters
CommandUrl
scrapes a YubNub command's 'man' page and returns the command's URL
scrape
return a snippet of text parsed from a web page.
scrape -tokens TOKENS -dirs DIRECTIONS -url URL [options]
httpstrip
remove the "http://" and return the rest of the URL
URLde
decode a URL
URLen
encode a URL
>
> [Yubnub command] [query]
Yubnub generates a URL by interpreting the 1st param as a Yubnub command, it then extracts a domain name from that URL and uses it to configure a Google Feeling Lucky search for the 2nd param.


edit
explode
break a string up into an array
ridx
removes an index from an 'array'
numlist
return a list of numbers from 1 to the input value
cmd2array
Create an 'array' from the results of a YubNub command
cmd2rss
generates RSS from the results of a YubNub command
oconv
convert outline data from one format to another
eatFeed
Pull data out of a web feed (RSS,XML,etc).
isoh2rss
produce RSS feed from isohunt torrent search
foreach
loop through an 'array' and runs a YubNub command
json
return the text,result and url of a yubnub command in a json object


edit
ifthen
evaluates a conditional statement and returns a value based on the result
Example: ifThen -value1 100 -value2 100 -test LESSEQUAL -then http://www.google.com -redirect true
Redirects to google site.
ift
compares two values and returns a value based on the result
ifMatch
match a regular expression pattern and returns a value based on the result
ifEqual
determine if two values are equal and returns a result accordingly
ifNotEqual
determine if two values are NOT equal and returns a result accordingly
isNumeric
determine if an argument is numeric
eop
compares two tokens in a string and returns the whole string (minus tokens) if not empty
strLength
returns the length of the inputted string
strFind
returns the position of the first occurrence of a string or character within another string
strreplace
replace all instances of a character or string found within another string
strrange
returns a sublist of words for a given phrase
trim
trim whitespace from both sides of a string
match
Run a RegExp pattern against a string
cmd2setup
Store page-scraping RegExps for use with cmd2* functions
match
match a regular expression
substring
extract part of a given string
regexp
uses PCRE via ReReplace.com to perform find/replace routines on text
strWordNumber
strWordNumber 2 Hello! how are you?
Returns second word “how” from the string.
recursiveLast
returns the last word in a phrase, using a silly recursion of browser redirects
Example: reursiveLast one two three
Returns "three"
%
returns a sublist of words for a given phrase
filterstring
performs the opposite of % by removing a word from a string based on the number given
Example: filterstring 1 Hello world!
Returns "world!"
var
set and get temporary variables
echovar
display longer variables with formatting


Appendix

Appendix

edit

*nix Comparison

edit

This comparison is focuses more on the user experience and less on the actual implementation of commands. Sure there are differences, but if you have used Surfraw then you know that it's not much of a stretch.

cd
*nix command to change directory
YubNub command to search CDBaby.com
date
*nix command shows date and time
YubNub command just shows date
echo
*nix and YubNub command will output a line of text
exit
*nix command will exit a shell or close an xterm window
YubNub command can be use to close the window
get
*nix command to download a file via ftp (for http see wget)
YubNub command can be used to go to a url.
ls
*nix command lists the contents of the current directory
YubNub command list the commands submitted to YubNub.org
home
*nix env variable for home directory (e.g. echo $HOME)
YubNub command takes you to http://yubnub.org
lynx
*nix text based web browser application
YubNub command to view html source of web page
man
both *nix and YubNub commands will display see the man page for a particular command


Google Commands

edit

google

ganswers

gc

gearth

gloc

glocal

glog

gma

gm

gmaps

gmp3

gmini

gvideo

ghistory

autotr

gim

gimage

gimages

gima

>&
finds you all the images on a given site

gis

gic

grel

gmails

glabel

scholar

gnews

gn

gtalk

gsite

rtfm

gprint

gdef

gsearchblog

ggroups

yubgrub

linksto

gsuggest

ggs

gcache

gproxy
Use Google translator service (language tools) as a proxy to bypass the restriction!

gmapi

mp3find

gfi (or quo)

gtrend

gnote

gfin

gstock

gexcel

gcalendar

luckygim

gbk

gbk+

gbkl

gmapuk

googlereader

gcds (or gcod)

docs

gdox

gsheet


Yahoo Commands

edit

yahoo

ymovies

yahoomusic

ysc

note

ynote

ynotes

yfeed

ypost

ygroup

yprofile

ymails

yab

yrss

yweather

yahoovideo

yahoostock

yquotes (or qt)

ysmb

yshop

yshopping

ypeople

ysite

ylinks

ynews

yahooradio

ys

myweb

yahoos

yim

yimages

ymini

ypool

ymh

yhf


Delicious Commands

edit
deli (delicious, tag)
search for tags on Del.icio.us

delime

delu

dpop
find recently popular links from Delicious

dss

du

ds

deliu

desa
save a URI to your Delicious account

delurl

del2
access Delicious functions with this one command

d/

delipop

delrank

deliall

delplaymp3

mdeli

podel

dluc

dpost

delhos

bkm

dpopl

delback

delpopm

DeliThis

mydeli

deliut

descriptious

delutag

delfind

depost

desave

delu

diu

delhot

mydel

delmag

delpost

dpopf

desapr

deltag

desav

tasty

del.quick.bookmarklets

dutag

delpl

deluser

dpop>

delwork

delrand

del>


LiveJournal Commands

edit

lj

ljf

ljupdate

friends

ljinfo

livejournal

ljrandom

lji

newlj

ljfriends

mylj

ljup


Flickr commands

edit

flickr

flk

fspell

flcc

flku

interestingness

flshow

fgal

fcc

fccca

flkalbm

clusters

fcca

delete

rflk

flickrscout

fli_t

flickrNumber

flickrid

f2pdf

flwp

fccd

fcccd

flihot

flkr

fpt

twitter commands

edit
twi

Goes to your Twitter homepage

twits

Twitter Search

@

Go to the Twitter profile of the specified user