How do I view the contents of a file in Linux?

How do I view the contents of a file in Linux?
Answer
5 commands to view files in Linux
  1. Cat. This is the simplest and perhaps the most popular command to view a file in Linux. …
  2. nl. The nl command is almost like the cat command. …
  3. Less. Less command views the file one page at a time. …
  4. Head. Head command is another way of viewing text file but with a slight difference. …
  5. Tail.
 

Tìm kiếm

Back
Top