How can I print a textfile on the command prompt in Windows?

How can I print the content of a textfile on the command prompt in Windows?

In Linux I can do this with less textfile.txt, more textfile.txt or cat textfile.txt

What is the command for this in Windows?

2 Answers

type textfile.txtIf you want it page-by-page, more textfile.txt.

7

For printing the content of multiple files (e.g. textfile_1.txt, textfile_2.txt) the following, does also works :

 type textfile*

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like