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 arrow | scroll up |
down arrow | scroll down |
/ | search |
n | next search result |
q | quit |
:n | next file (if multiple specified) |
:p | previous file (if multiple specified) |
g, then some number, enter | Goto 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 |
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 |