Linux Administration
medium

Questão de Linux Administration #019e3987

Enunciado da Questão
Linux Administration
#tail
#head
#cat
#dump
Médio

Which of the following commands will print the last 10 lines of a text file to the standard output?

A

cat -n 10 filename

B

dump -n 10 filename

C

head -n 10 filename

D

tail -n 10 filename

Correta

Explicação Oficial / Explicações da Comunidade

The tail command is used to display the last part of a file. By default, it shows 10 lines, but -n 10 explicitly defines the number of lines. Conversely, head displays the beginning of a file.