Reading Documentation

 < Day Day Up > 

Although you learn the basics of using Fedora in this book, you need time and practice to master and troubleshoot more complex aspects of the Linux operating system and your distribution. As with any operating system, you can expect to encounter some problems or perplexing questions as you continue to work with Linux. The first place to turn for help with these issues is the documentation included with your system; if you cannot find the information you need there, check Fedora's website.

NOTE

Checking Fedora's website for security updates and bug fixes is a good idea. Browse to http://fedora.redhat.com/download/. Alternatively, you can always do a quick yum update to make sure your system has the most up-to-date software available.


Linux, like Unix, is a self-documenting system, with manual pages accessible through the man command. Linux offers many other helpful commands for accessing its documentation. You can use the apropos command for example, with a keyword such as partition to find commands related to partitioning, like this:

 $ apropos partition GNU Parted [parted]  (8)  - a partition manipulation program fdisk                (8)  - Partition table manipulator for Linux jfs_mkfs             (8)  - create a JFS formatted partition jfs_mkfs [mkfs]      (8)  - create a JFS formatted partition lvmdiskscan          (8)  - scan for all disks / multiple devices / partitions available mpartition           (1)  - partition an MSDOS hard disk partprobe            (8)  - inform the OS of partition table changes pvcreate             (8)  - initialize a disk or partition for use by LVM sfdisk               (8)  - Partition table manipulator for Linux 

To find a command and its documentation, you can use the whereis command. For example, if you are looking for the fdisk command, you can do this:

 $ whereis fdisk fdisk: /sbin/fdisk /usr/share/man/man8/fdisk.8.gz 

Using man Pages

To learn more about a command or program, use the man command, followed by the name of the command. Manual pages for Linux and X Window commands are within the /usr/share/man, /usr/local/share/man, and /usr/X11R6/man directories; so, for example, to read the rm command's man page, use the man command like this:

 $ man rm 

After you press Enter, the less command (a Linux command known as a pager) displays the manual page. The less command is a text browser you can use to scroll forward and backward (even sideways) through the document to learn more about the command. Type the letter h to get help, use the forward slash to enter a search string, or press q to quit.

NOTE

Although nearly all the hundreds of GNU commands included with Linux each have a manual page, detailed information about using a GNU command must be read using the info command. For example, to learn even more about bash (which has a rather extensive manual page), use the info command like this:

 $ info bash 

Press the n and p keys to navigate through the document, or scroll down to a menu item on the screen and press Enter to read about a specific feature. Press q to quit reading.


Finding and Reading Software Packages Documentation

Documentation for various software packages is included in the /usr/share/doc directory; that directory is stored in another directory that's labeled with the associated package's name. You can find other Linux documentation, known as HOWTOs and Frequently Asked Questions (FAQs), online by browsing to http://www.tldp.org. HOWTO documents contain specific information related to a particular subject, such as printing, setting up a network, programming a serial port, or using a CD-ROM drive with Linux. These documents can be read by using your web browser. Of course, one of the best online tools you can use is a good search engine, such as Google.

You can read document formats such as text with less or another pager or text reader. For example, to read a copy of the GNU General Public License (GPL), a file named GPL_V2 under the /usr/share/apps/LICENSES directory, use less like this:

 $ less /usr/share/apps/LICENSES/GPL_V2 

After you press Enter, you can scroll back and forth through the file. Press q to quit reading. If a document is in compressed form (ending in .gz), use the zless pager, which will decompress a document first:

 $ zless /usr/share/man/es/man1/README.gz 

Most users read document formats such as HTML using a web browser in a graphical desktop. Fedora includes at least two versatile text-based web browsers, however, accessed with the lynx and links commands. To browse an HTML file on your system without using X11, use either command, along with the path to the file. For example, to read an HTML version of the GNU GPL with links, use the command like this:

 $ links /usr/share/doc/HTML/en/common/gpl-license.html 

After you press Enter, use your Up and Down cursor keys to scroll back and forth through the file. Press q, Enter to quit reading. If you have configured a mouse, click the left button near the top of the screen, and links will display its menus.

     < Day Day Up > 


    Red Hat Fedora 4 Unleashed
    Red Hat Fedora 4 Unleashed
    ISBN: 0672327929
    EAN: 2147483647
    Year: 2006
    Pages: 361

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net