Dave's Brain

Browse - Computer Tips - How can I view some of a large file?

Date: 2012dec3
OS: Linux

Q.  How can I view some of a large file?

A.  If you have a text file that is megabytes in size you can 
efficiently view it on the command line with "less".
For example mailbox in /var/mail often get really big.
Open a file with:

less /var/mail/mymailbox
This will be fast. Press "G" to go to the send and "u" to go up a page. You can do "u" multiple times.

Add a comment

Sign in to add a comment
Copyright © 2008-2017, dave - Code samples on Dave's Brain is licensed under the Creative Commons Attribution 2.5 License. However other material, including English text has all rights reserved.