Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I found a nice wealth of information on some commands that I use in /usr/share/doc. Some are in a weird format though with tags such as:

  • \verbatim and \endverbatim
  • \section and \endsection

Any idea what format this is? E.g. of one of the files: /usr/share/doc/rpm-*/spec

share|improve this question
    
Maybe troff? en.wikipedia.org/wiki/Troff –  Zoredache Oct 13 '11 at 22:29
    
Almost all of the documents on my SL6.1 system are plain text. There are a few which seem to be in some sort of Markup language (lAtEx?). There are even a few in HTML, or PDFs! –  Stefan Lasiewski Oct 13 '11 at 23:05
add comment

2 Answers

up vote 2 down vote accepted

It's a LaTeX file. The file(1) command is useful for determining a file's type, e.g.:

$ file /usr/share/doc/rpm-4.8.1/*                                                                                                        
/usr/share/doc/rpm-4.8.1/builddependencies: ASCII English text                                                                           
/usr/share/doc/rpm-4.8.1/buildroot:         LaTeX document text                                                                          
/usr/share/doc/rpm-4.8.1/ChangeLog.bz2:     bzip2 compressed data, block size = 900k                                                     
/usr/share/doc/rpm-4.8.1/conditionalbuilds: ASCII English text                                                                           
/usr/share/doc/rpm-4.8.1/COPYING:           ASCII English text                                                                           
[...]
/usr/share/doc/rpm-4.8.1/spec:              LaTeX document text                                                   
/usr/share/doc/rpm-4.8.1/triggers:          LaTeX document text                                                                          
/usr/share/doc/rpm-4.8.1/tsort:             LaTeX document text
share|improve this answer
    
Thanks! Any idea how to best view them? –  Belmin Fernandez Oct 14 '11 at 12:29
add comment

It looks like LaTeX format

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.