How to open a huge text file?

Hi.

I have a 10 Gb text file.the default text editor in ubuntu doens't open it.

Does anyone know how can i open it??

Thanks

USe split command and split the files....

---------- Post updated at 01:36 PM ---------- Previous update was at 01:35 PM ----------

Check the space availability before you do this....... U can also split size wise...rather than line-wise

If you just want to view the content, use "less". You can also use head and tail to view part of the file from the beginning or end. To change a small portion without changing the size (no insertion, deletion) you can use a hex-editor or dd to do it efficiently.

The question is: what do you want to do?

No editor will handle that file efficiently and most won't even open it. That means you have to use a lot of unix command line tools, so we need to tell you which tools to use.

But if we do not understand what AND WHY you are going to "edit" in the big file, we cannot help you.

In windows, there is a tool called edit pad pro that I have used to open some very large text files. I don't know if that is available for linux or not.

I agree with jim mcnamara in that it would be helpful if you specified more than just the need to open the file. It's not like you will be able to scroll through a file like that and see much, unless you have a few years with nothing to do. If you want to search the file, something like grep will find things and print the entire line where your search text was found. Tools like sed would let you edit the text, but that would be slow since you would be creating a new copy of the entire file, etc. Languages like perl provide more advanced functionality, etc.

LMHmedchem