Langue: en

Autres versions - même langue

Version: late 20th century (ubuntu - 07/07/09)

Section: 1 (Commandes utilisateur)


display-dhammapada - display a verse from the Dhammapada


display-dhammapada [-r | -m | -b | -pl] [<number> | all]
dhamma [-r | -m | -b | -pl] [<number> | all]
xdhamma [<number>]


Use John Richard's translation (default)
Use F. Max Muller's translation
Display the same verse(s) from both
Use Polish language translation
specify the number of the verse(s) to display
display all file at once

With no arguments a random verse is printed.


The Dhammapada is an anthology of 423 verses from the Kuddaka Nikaya part of the Theravada Pali Canon. It contains Buddhist ethical and spiritual precepts. One of the translations is by John Richards; the other is an older translation by F. Max Muller. Polish translation is by Zbigniew Becker.

display-dhammapada prints to the standard output.

xdhamma prints using xmessage on an X Window screen, or in bold using tputs on a text terminal.


To display a verse each time you log in on a terminal, put display-dhammapada or xdhamma in your ~/.profile, ~/.bash_profile or ~/.login, as appropriate for your shell.

To display a verse each time you log in on X Window, put xdhamma in your ~/.xsession.

KDE 2.1 has "amor" toy that can display various tips. To use the dhammapada for that enter these commands at shell prompt:

 mkdir ~/.kde/share/apps/amor
 display-dhammapada -r all |perl -0777 -pe 's/\n\s*\n\s*\n/\n%\n/g' >~/.kde/share/apps/amor/tips
Then start amor K->Toys->Amor, right click on amor animation, select "Options" and select "Allow application tips" and "Show random tips".

Use gtk-dhammapada to display verse in GTK window.

To automatically attach Dhammapada verse in e-mail footer. To do this in mutt add

 set signature=display-dhammapada|
in your ~/.muttrc file.




xmessage(1), tput(1).


You may found that xmessage and hence xdhamma is broken on XFree 4.0x.


Program: Copyright (C) January 1997-2003 by Richard Cepas <rch@online.lt> and contributors, placed in the public domain.
See http://unicode.strangled.net/me/rch/dd.html

Richards' English translation of the Dhammapada: Copyright (C) 1993 John Richards, Pembrokeshire (UK), permission granted for use here. See ftp://coombs.anu.edu.au/coombspapers/otherarchives/electronic-buddhist-archives/buddhism-general/e-texts/sutras-translations/dhammapada-english-transl.txt

Muller's translation of the Dhammapada: Public Domain, used here courtesy of Project Gutenberg.

Polish translation (by Zbigniew Becker): Public Domain, as explained at http://creativecommons.org/licenses/publicdomain
See also http://mahajana.net/dhammapada/