leo - commandline interface to


leo [-slmcfuphdv] []


leo is a commandline interface to the german/english/french dictionary on It supports almost all features which the website supports, plus more.

Results will be printed to the terminal. By default the searched key word will be highlighted (which can be turned off, see below).

To get faster results, leo is able to cache queries if you repeatedly use the same query.

leo acts as a standard webbrowser as your mozilla or what so ever does, it connects to the website, exectues the query, parses the HTML result and finally prints it somewhat nicely formatted to the terminal.

As of this writing leo acts as:

Mozilla/5.0 (compatible; Konqueror/3.3.1; X11)


term is the key word which you want to translate. If the term contains white spaces quote it using double quotes.

If the term parameter is not specified, leo will read it from STDIN.


leo reads a config file .leo in your home directory if it exists. The following variables are supported:


leo supports caching of queries for faster results if you repeatedly use the same query. A query consists of the given term (the key word or string) plus the translation option settings.

If you, for example, execute once the following query:

% leo langnase

and somewhere later:

% leo -c exact

then leo will treat the latter query as a different one than the previous one, because behaves different when different translation options are given.


leo can be used with a HTTP proxy service. For this to work, you only have to set the environment variable http_proxy. It has the following format:


The only supported protocol is http. If your proxy works without authentication, you can omit the user:passwd part. If no port is specified, 80 will be used.

Here is an example (for bash):

export http_proxy=

and an example with authentication credentials:

export http_proxy=http://max:34dwe2@

As security is always important, I have to warn you, that other users on the same machine can read your enviroment using the 'ps -e ..' command, so this is not recommended.

The most secure way for proxy authentication is just to specify the server+port with http_proxy but no credentials, and instead use the -u commandline parameter to specify a user (do not use -p to specify the password, this will also be readyble in process listing). In this case, leo will ask you interactively for the password. It will try its best to hide it from being displayed when you type it (as most such routines in other tools do it as well), it this fails (e.g. because you do not have the 'stty' tool installed), the password will be read from STDIN.


~/.leo the config file for leo. Not required. ~/.leo-CACHE.db* the cache file.


T.L. .


leo depends on It may break leo if they change something on the site. Therefore be so kind and inform me if you encounter some weird behavior of leo. In most cases it is not a bug of leo itself, it is a website change on

In such a case repeat the failed query and use the commandline flag -d (which enables debugging) and send the full output to me, thanks.


leo copyleft (c) 2000-2004 T.L.. All rights reserved. copyright (c) 1995-2004 LEO Dictionary Team.

The search results returned by leo are based on the work of the people at Thanks for the great work.

Some time ago they told me that they are disagreed with leo, or in other words: from their point of view leo seems to break copyright law in some or another way.

I thought a long time about this, but I must deny this. leo acts as a simple web client, just like mozilla, IE or even lynx are doing. They are providing the service to the public so I use my favorite web browser to make use of it. In fact my favorite browser to view is leo. There is nothing wrong with that. IMHO.

If you disagree or are asked by the LEO team to stop using leo you may decide this for yourself. I in my case wrote kinda browser, what is not prohibited. At least not today.


This is the manpage for leo version 1.22.