Preview

Dos Commands

Good Essays
Open Document
Open Document
2623 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Dos Commands
DOS COMMANDS

Basic DOS commands
To clear your screen (Type CLS to clear your screen)
C:\>CLS
Fast Help after each command types /? after each commands
C:\>DIR /?
File Management Commands
DIR - to display all your DOS directories
C:\>DIR
DIR switches
DIR switches in details
/P Pauses after each screenful of information.
/W Uses wide list format.
/A Displays files with specified attributes. attributes D Directories R Read-only files
H Hidden files A Files ready for archiving
S System files - Prefix meaning not
/O List by files in sorted order. sortorder N By name (alphabetic) S By size (smallest first)
E By extension (alphabetic) D By date & time (earliest first)
G Group directories first - Prefix to reverse order
A By Last Access Date (earliest first)
/S Displays files in specified directory and all subdirectories.
/B Uses bare format (no heading information or summary).
/L Uses lowercase.
/V Verbose mode.
/4 Displays year with 4 digits (ignored if /V also given).
Switches may be preset in the DIRCMD environment variable. Override preset switches by prefixing any switch with - (hyphen)--for example, /-W. To create a directory
C:\>MD or MKDIR example (we just created a directory called example)
File Naming Convention
All DOS file names have a maximum length of 8 characters followed by an optional extension with a maximum length of 3 characters.
Example: AUTOEXEC.BAT
The following characters are reserved and cannot be used in an MS DOS environment
Colon:
Semicolon;
Slashes / \
Spaces
Greater than >
Less than <
Question mark?
Asterisk *
Period.
Dollar sign $
Quotes marks " "
Apostrophes ' '
Pipe sign |
Valid DOS names
AUTOEXEC.BAT, CONFIG.SYS, NAME.DOC, HELLO.TXT
Invalid DOS names
AUTOEXEC233.BAT, <Good>.EXE, NAME$. DOC
To remove a directory
C:\>RD or RMDIR example (removes the example directory)
To change a directory
C:\>CD or CHDIR example (press enter)
C:\>EXAMPLE ( I

You May Also Find These Documents Helpful

  • Satisfactory Essays

    1) Describe a local land line phone system based on the following Landline Telephone Components:…

    • 663 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Nt1310 Unit 1 Study Guide

    • 846 Words
    • 4 Pages

    27. In a command line, what is the purpose of the ? in a filename?…

    • 846 Words
    • 4 Pages
    Good Essays
  • Powerful Essays

    data and can be initiated from the DOS command prompt? What useful information does this query…

    • 924 Words
    • 4 Pages
    Powerful Essays
  • Satisfactory Essays

    32,767 Unicode characters with each path component (directory or filename) commonly up to 255 characters long…

    • 706 Words
    • 3 Pages
    Satisfactory Essays
  • Powerful Essays

    ( NAME = N'Jeff Thompson Sr - POS 410 - IA - KVO', FILENAME = N'D:\MSSQL10_50.MSSQLSERVER\MSSQL\DATA\Jeff Thompson Sr - POS 410 - IA - KVO.mdf' , SIZE = 2048KB , MAXSIZE = UNLIMITED, FILEGROWTH = 1024KB )…

    • 1555 Words
    • 7 Pages
    Powerful Essays
  • Good Essays

    Lesson 9

    • 673 Words
    • 3 Pages

    ___d____ 8. This describes a series of bytes with a fixed length that uniquely identifies a program or file.…

    • 673 Words
    • 3 Pages
    Good Essays
  • Good Essays

    Prg 211 Array Structure

    • 788 Words
    • 4 Pages

    There is a need for revisions to the current Naming Scheme program which uses loops and input fields to develop the correct file name. The new structure uses multiple parallel arrays to gather the required data. Each variable in the array obtains one of five specific attributes of…

    • 788 Words
    • 4 Pages
    Good Essays
  • Satisfactory Essays

    E0462040 BSBADM506B 01

    • 409 Words
    • 3 Pages

    Do not include any extension (.doc, .dot, .xls). Allow the type of package used to determine this.…

    • 409 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    lolz

    • 480 Words
    • 4 Pages

    6. There are many C programs in my directory which have an extension of .c (ex : first.c, second.c etc).…

    • 480 Words
    • 4 Pages
    Satisfactory Essays
  • Best Essays

    Unix/Linux

    • 2760 Words
    • 12 Pages

    Windows, a much younger operating system, released in 1985, has exponentially grown in popularity ever since. Windows popularity is the biggest reason that it suffers malicious attacks more than any other operating system available. The numerous attacks…

    • 2760 Words
    • 12 Pages
    Best Essays
  • Good Essays

    -The first letter represents the File Type, this tells the file type for example d stands for directory and a – means it is a regular file.…

    • 1336 Words
    • 6 Pages
    Good Essays
  • Good Essays

    Evil Twins

    • 616 Words
    • 3 Pages

    If we suspect foo.c may have an evil twin, run the cleartool dump command for each file to obtain the object identifier (OID).…

    • 616 Words
    • 3 Pages
    Good Essays
  • Better Essays

    Intro to Operating System

    • 907 Words
    • 4 Pages

    To understand three operating systems, you must first know what an operating system is. An operating system is software that controls the computer. It manages hardware, run applications, provides’ an interface for uses, stores, retrieves files. Here are three operating systems DOS, Windows 2000, and Linux. DOS, which is a disk operating system was the first OS within IBM computers. DOS was the operating system utilized by early versions of Windows including Windows 3.1 and 3.11. Next you have Windows 2000, which is an upgraded version of Windows NT and comes in numerous versions some are designed for the desktop and other designed high-end servers. Windows 2000 was a popular choice for corporate offices and their employees. The ultimate reason Windows 2000 was so successful over Windows NT was because it was more stable, support for Plug and Play, device manager, recovery console, activity directory, and better network support. At this time Windows 2000 is a dying operating system and provides no support from Microsoft due to the newer operating systems coming out at this time. The third operating system would be Linux is predominantly used for servers. Between Windows, and Mac, Linux is not a high option and is actually one to two percent of the desktop market. The creation of Linux was one of the best examples for free and open source software collaborations. Linux is packaged in a format known as Linux distribution for desktop and server use.…

    • 907 Words
    • 4 Pages
    Better Essays
  • Powerful Essays

    Q:Display the file sizes using ls –l ser*. Save the output. What are the sizes of files A:…

    • 1015 Words
    • 5 Pages
    Powerful Essays
  • Good Essays

    In real world scenario, a Denial-of-Service attack DoS attack) or Distributed Denial-of-Service attack (DDoS attack) is an effort to make a machine or network resource unavailable to its genuine users. Although the means to carry out, motives for, and objective of a DoS attack may vary, it generally consists of efforts to temporarily or indefinitely interrupt or eliminate services of a host connected to the internet. One common method of attack involves saturating the target machine with outside communications requests, so much so that it cannot respond to legitimate traffic or responds so lowly as to be rendered essentially unavailable. Such attacks usually lead to a server overload. In general terms, DoS attacks are carried out by either…

    • 286 Words
    • 2 Pages
    Good Essays