Linux Basic Command: "head" & "tail"

Publicado el: 22 mayo 2020
en el canal de: Virtu Mentor
98
6

head - output the first part of files

head print default first ten lines of output

We can also print specific numbers of line using below command
(Here we are printing 5 lines, you can change number of lines

$ head -5 messages

tail - output the last part of files

tail print default first ten lines of output

We can also print specific numbers of line using below command
(Here we are printing 5 lines, you can change number of lines

$ tail -5 messages

Sometimes, we need continuously print last lines from log file during troubleshooting
Here, we can use parameter -f with tail command
$ tail -f messages

We also have command for this
$ tailf messages


Thank you!


En esta página del sitio puede ver el video en línea Linux Basic Command: "head" & "tail" de Duración hora minuto segunda en buena calidad , que subió el usuario Virtu Mentor 22 mayo 2020, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 98 veces y le gustó 6 a los espectadores. Disfruta viendo!