With wich command can I get all the lines of a file in my terminal?
Tail and cat shows me only the last part of the file
|
With wich command can I get all the lines of a file in my terminal?
|
|||
|
|
|
If a file has too many lines to show in only one screen, you can pipe the output to
This paginates |
|||
|
Depending on the size of the file, you can use If you want to use a better file viewer for logs on the terminal, I would advise using For Example
This will produce the log file on your terminal screen and you will be able to move around the log file without it passing you like Advanced
|
|
You actually can just use less without piping too
More works well too:
The main differences between the two are that more only allows you to go down in a document, whereas less lets you go up and down. The benefit that more has is that is also keeps the information in the terminal when you exit it, which can be very helpful in certain situations. |
|||
|
|
|
You can use |
|||
|
|