Technology in terms you understand. Sign up for the Confident Computing newsletter for weekly solutions to make your life easier. Click here and get The Ask Leo! Guide to Staying Safe on the Internet — FREE Edition as my thank you for subscribing!

Tip of the Day: Help and More

Help piped into More

Three tips in one, today, for the Command Prompt.

The Help command

In Windows Command Prompt, type Help followed by the enter key. What you’ll see fly by is a list of nearly 100 different commands that can be used in the Command Prompt.

Some are actual stand-alone programs. For example, the second item on the list is something called “ATTRIB”. That corresponds to the program file C:\Windows\system32\attrib.exe. (Command Prompt commands are case insensitive.)

Some are what are called “built in” commands — you won’t find them anywhere on the machine. An example is the first on the list: “ASSOC”. This command is implemented within the Command Prompt itself.

You can get help on individual commands by typing “Help” followed by the name of the command. You can even type “Help Help”.

The More command

The list output generated by Help is much longer than your Command Prompt window, so much of the output was lost as it scrolled past the top. This is a common problem in command line programs, and there’s a simple solution: the “More” program.

“More” displays input one screen at a time, pausing for a key press after each. This way, you can read the contents of one screen and then press a key (I recommend the space bar) to see the next, and so on.

You can exit the program early by pressing the Q key (or Ctrl-Break, in earlier versions of Windows).

The question, then, is how to get the output of the Help command to be the input for the More command.

Piping

Piping is exactly that: taking the output of one program and providing it as input to another. For example, in Command Prompt, type:

Help | More

where “|” is the vertical bar character, often referred to as the “pipe” character. This instructs the first program to “pipe” its output into the second. Now the list provided by Help will be displayed one screen at a time, controlled by More.

Finally, you can get Help on More.

Help More

Note that there is no pipe character in that command: the word “More” was provided as a parameter to the Help command, asking it to display information about the command “More”.

If that’s longer than your window is tall, you can pipe that output into More so you can see it a screen at a time:

Help More | More

In English, that’s running the Help program, asking for help on “More”, and piping that output through the program “More” so as to display one screen full at a time.

Related Video

Posted: June 21, 2019 in: Ask Leo! Tip of the Day,
Ask Leo! Tip of the Day - Public
This is a minor update to an article originally posted October 29, 2016
Shortlink: https://askleo.com/2353
Tagged: , , , ,
« Previous post:
Next post: »

Search Tip of the Day!

New Here?

Let me suggest my collection of best and most important articles to get you started.

Of course I strongly recommend you search the site -- there's a ton of information just waiting for you.

Finally, if you just can't find what you're looking for, ask me!

Confident Computing

Confident Computing is the weekly newsletter from Ask Leo!. Each week I give you tools, tips, tricks, answers, and solutions to help you navigate today’s complex world of technology and do so in a way that protects your privacy, your time, and your money, and even help you better connect with the people around you.

The Ask Leo! Guide to Staying Safe on the Internet – FREE Edition

Subscribe for FREE today and claim your copy of The Ask Leo! Guide to Staying Safe on the Internet – FREE Edition. Culled from the articles published on Ask Leo! this FREE downloadable PDF will help you identify the most important steps you can take to keep your computer, and yourself, safe as you navigate today’s digital landscape.



My Privacy Pledge

Leo Who?

I'm Leo Notenboom and I've been playing with computers since I took a required programming class in 1976. I spent over 18 years as a software engineer at Microsoft, and after "retiring" in 2001 I started Ask Leo! in 2003 as a place to help you find answers and become more confident using this amazing technology at our fingertips. More about Leo.

4 comments on “Tip of the Day: Help and More”

  1. This is interesting, certainly. I am not nor have I ever been a programmer (well a bit of Basic on a Sinclair Spectrum way back when until I felt it was beyond me), but I do find knowing there is a Help feature here useful to know.

    Reply
  2. I used to use the |more pipe command in older versions of Windows. In more recent versions, the Command Line screen is scrollable and |more piping is not as necessary.

    Reply

Leave a reply:

Before commenting please:

  • Read the article.
  • Comment on the article.
  • No personal information.
  • No spam.

Comments violating those rules will be removed. Comments that don't add value will be removed, including off-topic or content-free comments, or comments that look even a little bit like spam. All comments containing links and certain keywords will be moderated before publication.

I want comments to be valuable for everyone, including those who come later and take the time to read.