The Command Line

Many of those who are new to computers will never have heard of thecommand line, also known as the command prompt or the Disk Operating System (DOS) prompt. (DOS was the operating system used by most PCs before Windows became ubiquitous. The command line in DOS was the only way to start programs and manage files.) Those who might have used older PCs may remember the command line, but may be under the impression that it’s purely a thing of the past. Advanced users, on the other hand, whether they remember the old days of the DOS command line or not, have probably learned the advantages of the command-line interface, even when using Windows XP on a day-to-day basis.

Many tasks can be performed more quickly by typing one or more commands into the command prompt window. In addition, many of the programs listed in Chapter 4 are command-line based tools, and some familiarity with the command prompt is necessary if you plan to use them.

For full documentation on the command line and the Command Prompt application, see Chapter 6. Also see Chapter 3 for information on the Address Bar and Start Run, two alternatives to the Command Prompt window.

Here are a few examples that show how the command line can be used as an alternative to the GUI:

  • To create afolder called sample in the root directory of your hard disk, and then copy all the files from another folder into the new folder, for example, it can be quicker and easier to type:

    C:\>mkdir \sample
    C:\>copy d:\stuff\*.* ...

Get Windows XP in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.