26

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?

Hello71
  • 8,517
  • 5
  • 40
  • 45
Jonas
  • 27,554

2 Answers2

37

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

Hello71
  • 8,517
  • 5
  • 40
  • 45
2

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

    type textfile*
vaggos2002
  • 21
  • 2