How Do I Read a Text File in Linux Terminal?
Contents How Do I Read a Text File in Terminal? to Look at the Contents of a Text-Based Configuration File, Use Cat or Less. Generally, You’ll Use Less Because...
Contents
How do I read a text file in terminal?
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.
Must Read
How do I view the contents of a file in Linux?
Basic Examples
- find . – name thisfile.txt. If you need to know how to find a file in Linux called thisfile. …
- find /home -name *.jpg. Look for all . jpg files in the /home and directories below it.
- find . – type f -empty. Look for an empty file inside the current directory.
- find /home -user randomperson-mtime 6 -iname “.db”