UNIX Style Less Command

Posted On 2007-04-14 by FortyPoundHead
Tags: Tip Windows XP
Views: 2251

The less command, on most UNIX-style operating systems, displays the contents of a text file, but in a different fashion than the more command. Instead of only allowing one-way scrolling through a file, less uses the entire terminal window to display a text file and allows for interactive bi-directional scrolling. The less command has other interactive features, allowing one to search for matching text.

Windows XP has an equivalent to this command called list. While not 100% functionally-equivalent to most versions of the UNIX less command, list does support text searching and bi-directional scrolling. This command is useful when examining log files (such as web server logs), configuration files, and software "read me" files when you don''t want to open a Notepad window.

While Notepad will typically load a full file into memory, if you need to view log files containing multiple gigabytes of data, the list command only buffers up to (by default) 200k of information at a time.

To use the list command, you''ll need to first download and install the Windows 2003 Resource Kit.

About the Author

FortyPoundHead has posted a total of 1974 articles.

Comments On This Post

No comments on this post yet!

Do you have a thought relating to this post? You can post your comment here. If you have an unrelated question, you can use the Q&A section to ask it.

Or you can drop a note to the administrators if you're not sure where you should post.

Your IP address is:

Before you can post, you need to prove you are human. If you log in, this test goes away.

Recent Forum Posts

Advanced search added
dwirch posted on September 23, 2017 at about 13:44 in Site News

Job Spammer: Gaurav Mehta - AgreeYa Solutions
dwirch posted on September 22, 2017 at about 10:35 in Spammers

Job Spammer: Prutha Siri - Javelin Systems
dwirch posted on September 10, 2017 at about 6:15 in Spammers

New security implemented
dwirch posted on September 7, 2017 at about 7:16 in Site News

Malicious IP Checker Companion Tool
dwirch posted on August 12, 2017 at about 20:24 in Site News

Job Spammer: Steve Adams
dwirch posted on August 8, 2017 at about 7:44 in Spammers