How do I read the contents of a text file in terminal?

Nguyễn Trà

New member
How do I read the contents of a text file in terminal?
Answer
To look at the contents of a text-based configuration file,
use cat or less. Generally, you’ll use less because it has more options (such as searching). To use less , enter the command name followed by the name of the file you want to view.
 

Tìm kiếm

Back
Top