TYPE CMD (Display File Contents)
Print the contents of a text file to the console. Syntax: type [file]
Step-by-step
- Open Command Prompt (press Win+R, type cmd, and press Enter)
- Syntax: type [file]
- Brief: Print the contents of a text file to the console.
- Example: type hosts
- Tip: Pipe to more to page large files: type big.txt | more.
Reference: learn.microsoft.com