Red Hat NETSCAPE MANAGEMENT SYSTEM 6.0 - CUSTOMIZATION User Manual Page 274

  • Download
  • Add to my manuals
  • Print
  • Page
    / 300
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 273
262 Managing Files and Directories
And speaking of reading les...
There are plenty of ways to read les in Linux. In the previous chapter, for example, we covered
the pagers more and less theyre called pagers because you can page through documents one
screen at a time. We also learned how we can not only view but manipulate les with the cat
command.
But there are even more options when it comes time to take a look at README les, man pages or
documents youve created.
You have a number of tools to help you read text les, among them, the text editors pico, emacs,
and vim, the pagers more and less,andtheviewershead, tail, cat,andgrep.
Lets take a look at some of the features in these tools.
The less Command
In Chapter 16 on page 217, we were introduced to the pager less. Less is the pager thatsusedto
display man pages.
Letsviewthemanpageforless to see less in action.
man less
To move forward a screen, press
Space ; to move back a screen, press B ,andtoquit,press Q .
There are other powerful features to less, as well, including the ability to scroll horizontally and
specify the number of lines to scroll.
The more Command
Odd as it may seem, more offers less than less (actually, less was inspired by more).
Lets take a look at the man page for more, but this time, well open the page using more by piping
mansoutputtomore.
man more | more
It may not look too different at rst, but there are fewer enhancements to more than to less.Proba-
bly the most striking difference at rst is the lack of a way to go backwards in a document although
moving forward by pressing
Space and quitting by pressing Q are the same.
The head Command
You can use the head command if you just want to look at the beginning of a le. The command is:
Page view 273
1 2 ... 269 270 271 272 273 274 275 276 277 278 279 ... 299 300

Comments to this Manuals

No comments