- 1 year ago
`more.com` returns "Not enough memory."
The "Not enough memory" error with more.com
typically occurs when the command is used to view a large file that exceeds the memory limit of the command processor.
The more
command in Windows is used to display text file content page by page. When you try to use more
on a very large file, it may attempt to load the entire file into memory, which can lead to the "Not enough memory" error.
To avoid this error, you can try using a different command or tool to view large files, such as less
or type
. Here are some alternatives:
Using
less
: If you have Git for Windows or WSL (Windows Subsystem for Linux) installed, you can use theless
command to view large files. The syntax is similar tomore
:less filename.txt
Using
type
: Thetype
command is a basic command for displaying file content. While it does not paginate the output likemore
orless
, it can handle large files without memory issues:bashtype filename.txt
Using PowerShell: You can also use PowerShell to view large files. PowerShell does not have the same memory limitations as
more.com
. TheGet-Content
cmdlet can be used for this purpose:cssGet-Content filename.txt
Keep in mind that the more
command is generally suitable for viewing smaller text files. If you frequently need to view large files, using an alternative method like less
, type
, or PowerShell will provide a more reliable experience.