less - opposite of more


Usage

less [OPTIONS] file...

Less is a program similar to more, but which allows backward movement in the file as well as forward movement.

Less Commands
up arrowscroll up
down arrowscroll down
/search
nnext search result
qquit
:nnext file (if multiple specified)
:pprevious file (if multiple specified)
g, then some number, enterGoto line number specified
less unix.txt

   #[1]Creative Commons [2]copyright

   It costs US$10 an hour to run Wikimedia websites. You can [3]donate
   here (http://wikimediafoundation.org/wiki/Fundraising) to help us
   raise $50,000 to keep our websites running smoothly. We have less than
   $15,000 to go thanks to [4]all those who have donated
   (http://wikimediafoundation.org/wiki/Fund_drives/2004/Q4/Most_recent_d
   ay)!

Unix

From Wikipedia, the free encyclopedia.

   UNIX (or Unix) is a [5]portable, multi-task and multi-user
   [6]computer [7]operating system originally developed by a group of
   [8]AT&T [9]Bell Labs employees including [10]Ken Thompson, [11]Dennis
   Ritchie and [12]Douglas McIlroy.
   Contents
   [13]1 History
   [14]2 Standards
   [15]3 Free Unix-like operating systems
   [16]4 Impact
unix.txt

-N

Similar to cat -n, displays line numbers inside of less

less -N unix.txt
       1
       2    #[1]Creative Commons [2]copyright
       3
       4    It costs US$10 an hour to run Wikimedia websites. You can [3]donate
       5    here (http://wikimediafoundation.org/wiki/Fundraising) to help us
       6    raise $50,000 to keep our websites running smoothly. We have less than
       7    $15,000 to go thanks to [4]all those who have donated
       8    (http://wikimediafoundation.org/wiki/Fund_drives/2004/Q4/Most_recent_d
       9    ay)!
      10
      11 Unix
      12
      13 From Wikipedia, the free encyclopedia.
      14
      15    UNIX (or Unix) is a [5]portable, multi-task and multi-user
      16    [6]computer [7]operating system originally developed by a group of
      17    [8]AT&T [9]Bell Labs employees including [10]Ken Thompson, [11]Dennis
      18    Ritchie and [12]Douglas McIlroy.
      19    Contents
      20    [13]1 History
      21    [14]2 Standards
      22    [15]3 Free Unix-like operating systems
      23    [16]4 Impact
unix.txt

Daniel J. Hood
Last modified: Thu Sep 30 14:06:53 EDT 2004