5gb text file

  • Prime
  • Professor
  • Professor
  • User avatar
  • Joined: Dec 05, 2005
  • Posts: 935
  • Loc: Liverpool
  • Status: Offline

Post December 21st, 2005, 8:08 am

Hi,

I have a text file (error log) that's over 5Gb in size :shock: I can't load the whole file but is there a way (i know there is) of just loading the first few lines?

It's a FreeBSD server.

Thanks, Prime
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post December 21st, 2005, 8:08 am

  • this213
  • Guru
  • Guru
  • User avatar
  • Joined: Mar 01, 2004
  • Posts: 1242
  • Loc: ./
  • Status: Offline

Post December 21st, 2005, 10:25 am

Code: [ Select ]
# man tail


and

http://www.onlamp.com/pub/a/bsd/2001/06 ... emons.html
  • PsyckBoy
  • Graduate
  • Graduate
  • No Avatar
  • Joined: Jun 20, 2005
  • Posts: 204
  • Loc: SoCal
  • Status: Offline

Post December 21st, 2005, 11:06 am

Maybe you meant:

Code: [ Select ]
# man head


If he indeed wants the first few lines.
  • this213
  • Guru
  • Guru
  • User avatar
  • Joined: Mar 01, 2004
  • Posts: 1242
  • Loc: ./
  • Status: Offline

Post December 21st, 2005, 12:17 pm

I was guessing that since he was looking at the error log he'd want to see the most recent entries. Though he did ask how to see the "first" few lines, so good point.

Post Information

  • Total Posts in this topic: 4 posts
  • Users browsing this forum: No registered users and 129 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.