[Novalug] question about ls

Jon LaBadie novalugml at jgcomp.com
Mon Jan 16 16:26:04 EST 2012


On Mon, Jan 16, 2012 at 04:13:14PM -0500, Nino R. Pereira wrote:
> JOn,
> 
> that's interesting, I didn't know that either.
> 
> > When man prints to the terminal it typically uses a
> > screen pager such as "more" or "less".  You can
> > specify your prefered pager by setting and exporting
> > the variable PAGER and/or MANPAGER.
> >
> > These pagers will let you search while you are reading
> > the manual page.  So after doing "man ls" you should
> > be able to simply type a "/" and enter your search
> > string (eg. "/-L").
> >
> 
> how do you know which variable to set? What's the default?
> I tried $PAGER and $MANPAGER: neither had anything.

Many commands will use the PAGER environment variable.
These commands include the man command.  If both are set,
man uses MANPAGER in preference to PAGER.  This can be
useful if you want to use one pager normally, but want
something different for reading man pages.

-- 
Jon H. LaBadie                  novalugml at jgcomp.com
 11226 South Shore Rd		(703) 787-0688 (H)
 Reston, VA  20190		(609) 477-8330 (C)


More information about the Novalug mailing list