Skip to main content

Basic DOS Commands

 DOS (Disk Operating System) commands are text-based commands used in the command-line interface of MS-DOS and other DOS-compatible operating systems. While modern Windows operating systems have a command prompt that supports many of these commands, DOS commands are less prevalent today. Here are some basic DOS commands:

  1. DIR:

    • Displays a list of files and subdirectories in the current directory.
    • dir

  2. CD (Change Directory):

    • Changes the current directory.
    • cd [directory_name]

  3. MD (Make Directory):

    • Creates a new directory.m
    • md [directory_name]

  4. RD (Remove Directory):

    • Removes a directory.
    • rd [directory_name]

  5. DEL (Delete):

    • Deletes one or more files.
    • del [file_name]

  6. REN (Rename):

    • Renames a file or directory.
    • ren [old_name] [new_name]

  7. CLS (Clear Screen):

    • Clears the command prompt screen.
    cls
  8. EXIT:

    • Exits the command prompt or the batch script.
    exit

  9. DATE:

    • Displays or sets the system date.
    date
  10. TIME:

    • Displays or sets the system time.
    time

Note: Commands and their options can vary slightly depending on the version of DOS or the specific command interpreter being used. These commands provide a basic understanding of common operations in a DOS environment. Keep in mind that DOS commands are case-insensitive, and paths are separated by backslashes ().

Comments