Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

374
Vistas
How to view huge txt files in Linux?

I have got a 4 GiB txt file that I need to view.

When I try open it in Gedit it loads for a while then crashes.

Have you any ideas of a text editor that I can use to view this file. My OS is Fedora 20.

over 4 years ago · Santiago Trujillo
3 Respuestas
Responde la pregunta

0

BEHOLD! Since glogg looks unmaintained klogg is better alternative nowadays

apt install klogg

Try glogg. It worked great for me.

Debian:

apt-get install glogg

Fedora:

yum install glogg
over 4 years ago · Santiago Trujillo Denunciar

0

Not text editors, but in the command line tail -n 100 ./file.txt will give you the last 100 lines of a file, head -n 100 ./file.txt will give you the first 100 lines.

vim in the command line buffers as you read through a file (it doesn't open it in one go) so it's quite effective too.

over 4 years ago · Santiago Trujillo Denunciar

0

You can install Midnight Commander.

Debian, Ubuntu, etc.:

apt-get install mc

Red Hat, CentOS, Fedora, etc.:

yum install mc

You can start Midnight Commander from the CLI with the mc command. After that you may select and open any file in "view mode" (F3) or in "edit mode" (F4).

mc is much more efficient when opening and browsing large files than vim. I checked it myself.

If you want to watch a very large file in your favorite editor, without worrying about the limitations associated with RAM, I suggest you split the file using the split command:

split -n 8 [FILE_NAME]

The above cammand splits the file into 8 parts.

Of course, this solution will only check for some applications. Note that not every file retains its consistency after the division (e.g. XML does not). It all depends on what you want to do with the given file.

over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda