hoju hoju - 1 year ago 77
Linux Question

Working with huge files in linux

I have a huge (~2GB) file that I need to navigate around. I don't actually need to edit it, just jump around efficiently.

I tried vim but it choked.

Answer Source

Vim has a LargeFile plugin for larges files. It will basically configure vim to not use a swap file and undo levels when opening big files (like in Vim Tip 611).

But I think I'd rather use grep and split to navigate in such a file (see Grep with large patterns files).

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download