LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
LinkBack Search this Thread
Old 06-11-2006, 04:45 AM   #1
banajah
Member
 
Registered: Apr 2006
Location: Saudi Arabia
Distribution: RHEL 5
Posts: 32

Rep: Reputation: 15
troff & groff


Hello...
Hope that you are having a nice day and sorry for any inconvenience, just I want to ask what is the meaning of ( troff ) and (groff ) under linux !!!
for example when I user the following command :
man addftinfo
the firt line of the out put said:

*** addftinfo - add information to troff font files for use with groff ***


so what is the troff and what is the groff


Sorry but I'm still new in the linux world and it's really great


Have a nice day.........

 
Old 06-11-2006, 05:29 AM   #2
David the H.
Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian sid + kde 3.5 & 4.4
Posts: 5,327

Rep: Reputation: 1199Reputation: 1199Reputation: 1199Reputation: 1199Reputation: 1199Reputation: 1199Reputation: 1199Reputation: 1199Reputation: 1199
Use "man" to get the manual page for a command or program. Just type "man troff" or "man groff" in a terminal.

And don't forget, there's always "google groff" as well.
 
Old 06-11-2006, 06:19 AM   #3
jschiwal
Moderator
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,263

Rep: Reputation: 562Reputation: 562Reputation: 562Reputation: 562Reputation: 562Reputation: 562
roff stands for run off, and was a typesetting program which used a particular printer. It is as old as Unix itself. This program was rewritten from scratch so that other typesetting equipment could be used. This is the troff program. Groff is the gnu version of the troff program, and on linux, troff is probably a link to groff. Info pages are preferred over man pages presently. There is also the "tex" system which is used for processing texinfo files and the latex system. This is used more frequently now, and info files are preferred over man pages in GNU/Linux circles.


Here is a little experiment you can try:
man -t groff | kghostview -

Now you can read the groff manpages in style!

Last edited by jschiwal; 06-11-2006 at 06:25 AM.
 
Old 06-11-2006, 07:28 AM   #4
David the H.
Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian sid + kde 3.5 & 4.4
Posts: 5,327

Rep: Reputation: 1199Reputation: 1199Reputation: 1199Reputation: 1199Reputation: 1199Reputation: 1199Reputation: 1199Reputation: 1199Reputation: 1199
Except that almost every program has a man page, while info pages are rather rare. 90% of the time when I use "info program" I get exactly the same page as I get with "man program". So I usually suggest starting there first, and if it has an info page with more detail, you can follow on from there.

BTW, the man page for groff says that it's a wrapper for troff, not a rewrite.
 
Old 06-11-2006, 03:44 PM   #5
tronayne
Senior Member
 
Registered: Oct 2003
Location: Michigan
Distribution: Slackware 32- & 64-bit Stable
Posts: 1,824

Rep: Reputation: 359Reputation: 359Reputation: 359Reputation: 359
The *roff utilities (nroff, troff and groff) can be useful in documentation (particularly man pages). An excellent book, UNIX Text Processing by Dale Dougherty and Tim O'Reilly (yes, that Tim O'Reilly) is availabe for free at http://www.oreilly.com/openbook/utp/ -- you can download the book as a PDF file and read at your convenience.

UNIX Text Processing gives you an excellent introduction to text processing, covering the editors, regular expressions, and, of course, *roff utilities and the macros that make them easier to use. The nroff utility is for "typewriter" devices; e.g., your screen, quick and dirty. The troff utility is for typesetting; e.g., your printer, really, really nice formatted document.

Worth a look-see.
 
Old 06-12-2006, 05:18 AM   #6
banajah
Member
 
Registered: Apr 2006
Location: Saudi Arabia
Distribution: RHEL 5
Posts: 32

Original Poster
Rep: Reputation: 15
Thank you all for the helpful information,
the best thing in linux that you should squeeze your brain to get the information which you want, and not like the lazy Windows,

Have a nice day....




I love
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Two issues: groff not working properly and updated glib being installed not noticed.. EnigmaX Linux - General 0 08-08-2004 06:58 PM
how to read a troff file? ashley8 Linux - Software 4 09-29-2003 06:28 AM
How to Read a Troff Man File steve65 Linux - Software 7 10-20-2002 07:35 PM
Is this a troff, groff, TeX, or nroff file? atrionfo Linux - General 1 04-19-2002 05:55 AM
troff: fatal error: can't find macro file tty-char robinhood1995 Linux - Software 0 01-28-2002 11:45 AM


All times are GMT -5. The time now is 11:39 AM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration