Friday, May 3, 2024
12
rated 0 times [  12] [ 0]  / answers: 1 / hits: 74576  / 3 Years ago, sat, may 8, 2021, 6:54:27

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


More From » command-line

 Answers
4

If a file has too many lines to show in only one screen, you can pipe the output to less like so:



cat myfile.txt | less


This paginates cat's output, allowing you to navigate through the file using the arrow keys.


[#38292] Monday, May 10, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
irtuallyefu

Total Points: 429
Total Questions: 97
Total Answers: 119

Location: Hong Kong
Member since Tue, Oct 19, 2021
3 Years ago
irtuallyefu questions
;