$ zcat messages.gz
You want to see only the first lines of a text file, for that is the head command.
$ head messages.log
And if you want to see the line number of a file, use the cat with the -n argument like:
$ cat -n file1.txt
Everything together:
$ zcat messages.gz | head | cat -n











0 comentarios:
Post a Comment