Pages

Thursday, August 7, 2008

Red Hat Linux Tips and Tricks

We know that the out-of-the-box resources should be a primary tool of any system administrator. We also know that navigating from one node to the other using "info" in search of information can be frustrating.

For example, you want information on configuring grub.conf. You find that running the command "info grub" displays a long menu of options, including one that applies to configuration. You get there by using the hypertext navigation method, placing the cursor on the line that reads "* Configuration" and then hitting the ENTER key.

How would you slice out or print just the "Configuration" node to file?

Answer: If you would like to print the Configuration node to a text file, run the following command:

# info grub Configuration -o mynewfilename.txt

You now have a single text file named "mynewfilename.txt" with the information from the Configuration node of info. This can be done with any node you would like to slice out of info pages into a more manageable and specific text file.

No comments: