DOS Commands What is a command Types of DOS Commands Basic Terms

Slides:



Advertisements
Similar presentations
DOS commands.
Advertisements

Gd:sf / 1. dfOqmf];km\6 l8:s ck/]l6+ l;:6d Microsoft Disk Operating System MSDOS 2 Disk Operating System By.
DOS & Windows O/s Prof. Sujata Rao Less 5.
A batch file is a file that contains a number of DOS commands, each of which could be run individually from the command prompt. By putting them into a.
Understanding the Boot Process and Command Line
Lesson 4 0x Operating Systems.
Operating System Type of Operating System
A+ Guide to Software, 4e Chapter 6 Windows 9x/Me Commands and Startup Disk.
Chapter 3 Understanding the Boot Process and Command Line.
Disk Operating System (DOS)
MCT260-Operating Systems I Operating Systems I Navigating the File System.
© 2007 The McGraw-Hill Companies, Inc. All rights reserved Working with the Command- Line Interface Chapter 14.
FILES  A file is a collection of related information  Files are kept in directories on a disk.
Operating System Fundamentals
Command Prompt Chapter 7 Using ATTRIB, SUBST, XCOPY, DOSKEY, and the MS-DOS Text Editor Richard Goldman ©January 31, 2000.
© 2010 The McGraw-Hill Companies, Inc. All rights reserved Mike Meyers’ CompTIA A+ ® Guide to Managing and Troubleshooting PCs Third Edition Working with.
Command Line Interface
Laboratory Exercise # 3 – Basic File Management Office Productivity Tools 1 Laboratory Exercise # 3 Basic File Management Objectives: At the end of the.
Or CMD/BATCH.  Title this comand makes the cmd prompt’s title whatever you would like it to be.
1 Lab 1-1 Using the Command Line Copyright © 2006 Heathkit Company, Inc. All Rights Reserved.
© 2012 The McGraw-Hill Companies, Inc. All rights reserved. 1 Third Edition Chapter 4 Disk Operating System (DOS) and the Command-Line Interface McGraw-Hill.
System Software. BIOS Basic Input Output System A kind of ROM Execute routines Checking RAM, detecting hard disk, floppy disk, CDROM, … etc.
By Umesh ks. Dos is a single user operating system. Its support the all operating system wizards Support the disk scheduling. File management Network.
1. 2 Disk Operating System (DOS) Finding DOS and Understanding its Strengths and Weaknesses Installing DOS How the FAT File System Works Working with.
DOS Understanding what you can do. Operating System Traits An OS only works with one type of processor –X86 processors for us; Motorola for Mac –Must.
Ch 51 Internal Commands COPY and TYPE. Ch 52 Overview Will review file-naming rules.
1 DOS 2 Directory structure of disks Directory structure of disks Full Path or Full file specification Full Path or Full file specification Creating directories.
Ch 61 Using DEL, REN, MOVE, and RD /S. Ch 62 Overview Will continue to work with internal commands that help manage and manipulate files.
Chapter 6: Managing Your Data The Windows XP File System File system task on DOS or UNIX Vs. Windows XP –cd or chdir would change your current directory.
1 THE UNIX FILE SYSTEM By Chokechai Chuensukanant ID COSC 513 Operating System.
Operating System Basics Chapter 1 Release 16/07/20 09 powered by dj.
The Command Line Interface. The OS files IO.sys MSDOS.sys Command.com IO and MSDOS are hidden files, COMMAND.COM shows in directory listings.
Understanding the Boot Process and Command Line
Gene Perkins, Lassen High School Networking Academy
®® Microsoft Windows 7 for Power Users Tutorial 13 Using the Command-Line Environment.
Ch 41 Program Files, Data Files, and Subdirectories.
1 The EDIT Program The Edit program is a full screen text editor that allows you to: Create text files Create text files Edit an existing text files Edit.
XP New Perspectives on Windows 2000 Professional Windows 2000 Tutorial 2 1 Microsoft Windows 2000 Professional Tutorial 2 – Working With Files.
BY PREETHI DOS INTERNAL COMMANDS. INTERNAL COMMANDS  DOS commands that are present in the COMMAND.COM file and are automatically loaded into RAM when.
Computer Systems Week 11: The Command Line Interface Alma Whitfield.
Common DOS Commands Additional information. Important DOS Concepts Common DOS Commands  Why format a disk?  Partitioning and Formatting disks  Structure.
Basic MS-DOS. History MS-DOS 1.0 was released in August 1981, and was updated until April 1994 when it was replaced by Windows 95 All versions of windows.
DISK OPERATING System MS-DOS. MS-DOS Microsoft Disk Operating System (MS-DOS) is a single user, single tasking operating system. DOS is a command-line,
Basic MS-DOS.
1.  Microsoft DOS (Disk Operating System) use a command line user interface.command line  A command line user interface means that the user is required.
Operating System Fundamentals 1. Components of an OS 2. Functions of an OS 3. Types of OS 4. Command-line tools.
File and Folder CLI Commands 12/24/ Agenda Overview of OS functions and the SHELL Internal v External Commands Command History Making & Modifying.
Basic DOS How to get some work done. It’s all a file Everything is a file: OS files, Application files, Data files and Game files Files have 8.3 names:
Copyright © 2007 Heathkit Company, Inc. All Rights Reserved PC Fundamentals Presentation 10 – Using the Command Line.
The Command Line Yep, you need to know this. The Basics Start with the Prompt, what the computer tells you when ready for a command You type a command.
XP New Perspectives on Microsoft Windows XP Tutorial 2 1 Microsoft Windows XP Working with Files Tutorial 2.
Operating System. What is Operating System OS is system software, which may be viewed as collection of software consisting of procedures for operating.
Ahmadu Bello Computer Repair Training Course 6: Use of Software By Suprix Technology Nigeria ( A.B.U repair computer training.
MS-DOS is an acronym for MicroSoft Disk Operating System It is a CUI based operating system. It provides user with a command prompt (generally called.
Systems Administration (Windows) BIT3111 – Lecture 5 (Introduction to Windows OS)
EXTERNAL COMMANDS 1) ATTRIB(Attribute) :- This command allows the user to change the properties/attributes of a specific file. Using attrib command ,
Introduction To MS-DOS
Introduction to Operating Systems
INTERNAL COMMANDS CLS(Clear Screen):-
Chapter 6 Windows 9x/Me Commands and Startup Disk
Microsoft Windows 2000 Professional
DOS (Disk Operating System)
Chapter Overview Operating System Basics
New Perspectives on Windows XP
Operating System Fundamentals
Grauer and Barber Series
Chapter 6 Using DEL, REN, MOVE, and RD /S Ch 6.
OPERATING SYSTEM B-TECH III YEAR I SEM BRANCH :ECE
1.3 Given a scenario, apply appropriate Microsoft command line tools
Presentation transcript:

DOS Commands What is a command Types of DOS Commands Basic Terms Internal External Basic Terms File (File Types) Executable File Non Executable File Directory Root Directory Parent Directory

What is a Command A command is a set of instructions used to perform a specific work Interpreted by the OS interpreter to a machine language E.g. <md Ram>,<cd Ram>,etc.

Types of Command Internal Command External Command Those commands which are already loaded in the Command.COM file while switching to the MS DOS E.g. CLS, VER, DEL, etc. External Command Those commands which are not loaded when loading the Program but are available in the Disk and can be invoked whenever necessary E.g. FORMAT, TREE, XCOPY, etc.

What is a File A group of organized data (records) which are assembled for one particular purpose and considered as one unit Stored in permanent storage like hard disk, diskettes,etc.

Types of Files Files can broadly be categorized into two types: Executable Files Non-Executable Files (Data Files)

What are EXE Files Exe Files: Program files that run or execute themselves Have either COM or EXE or BAT as extension

What are Data Files Non- executable files that contain only the data that we produce Cannot execute themselves Need application program to run

What is a Directory A directory is a list of file which is itself a file stored in the computer’s memory so that users can reference it as it is required Also called a catalog of files

Root Directory The Root directory is that directory that is automatically created when the disk is formatted It is the current drive that we have been working E.g. A:\, B:\ (for Floppy Disk Drive) C:\,D:\ etc. (for Hard Disk Drive)

Current / Parent Directory Current directory is that directory in which you are currently working Parent directory is that directory which is one level up of the current directory E.g. C:\Ram\Hari> Current directory Parent directory Root directory

Getting into MS DOS To start MS DOS, click on the Start button and choose Run In the Run dialog box, type CMD or COMMAND which is the EXE file for MS DOS Click on the OK button

Listing the Directories and Files in MS DOS For listing the Sub-directories and Files within a directory, we use the DIR command Syntax : DIR [Directory_name] E.g. C:\>DIR NCIT Displays all the directories/files within the directory NCIT

Dir/p : -Display file and directory page wise. Dir/w :- Display file And directory in horizontal Style. Dir/p/ w:- Display file And directories page wise and horizontal style also. Dir/ah :-Display all hidden files and directories. Dir/a-d : - Display only files. Dir/ad :- Display only Directories. Dir/a/s:-Display all directory and file with subdirectory. Dir/a :- Display All Hidden And Non hidden file and directories. Dir n*.* :Display all file and directory starting with ‘ n ’ alphabet.

Creating a Directory in MS DOS For creating the Directory in MS DOS, we use the MD (Make Directory)command Syntax: C:\> MD NCIT

Changing a Directory in MS DOS For changing the directory in MS DOS, we use the CD (Change Directory) command Syntax: C:\>CD NCIT Now it appears as: C:\NCIT>

Switching between Directories For switching between the directories we use the CD.. Or CD\ commands The CD.. Command switches from the current directory to the Parent directory whereas the CD\ command switches from the current directory to the Root directory

Creating Files in MS DOS For creating the files in DOS, the command COPY CON is used Syntax: COPY CON filename Note: File name should not exceed eight characters excluding three characters for extension E.g. College1.txt

Reading Files in MS DOS For reading the Pre-created files in MS DOS, we use the TYPE command. It displays all the contents that are in the file. Syntax : TYPE Filename

Renaming Files For renaming the files in MS DOS we use the REN Command Syntax: REN oldfilename newfilename

Deleting Files in MS DOS For deleting files in MS DOS we use the DEL command Syntax : DEL Filename

Deleting directories in MSDOS For deleting the directories in MS DOS we use the RD command Syntax : RD Directoryname Note : For removing the directory first the directory should be empty

Copying Files in MS DOS In MS DOS, Files can be copied within the same as well as to another Drive / directory For copying the files in the same drive we use the following syntax : COPY sourcefile destination E.g. C:\>COPY [c:\]NCIT\file1.txt C:\NCITNGH

Copying Files in MS DOS Files can be copied not only in the same drive but in different drive, too. For copying the files in different drive, a complete location along with the Drive specification should be mentioned Syntax : C:\>COPY C:\NCIT\file1 D:\NCITNGH\NCIT

The MOVE Command The MOVE Command in MS DOS is used to permanently move the files from one location to another. The COPY command only copies the files leaving the original one, whereas the MOVE command does not leave any copy Syntax : C:\>MOVE source_file destination_directory E.g. C:\>MOVE c:\NCIT\file1 D:\NCIT1\file2

The VOL Command The VOL command is used to check the Volume of the Disk-drive. It displays the volume of the current disk-drive Syntax : VOL Drivename E.g. C:\> VOL

Checking the Version of OS The VER command is used to check the version of the Operating System that is used in the Computer Syntax : C:\>VER E.g. C:\>VER Returns the version of OS as Microsoft Windows 2000 [version 5.00.21951]

Checking the Date/Time For checking the date from the system in MS DOS, we use the DATE command. It returns the current system date. Similarly, the TIME command returns the current time from the system. Syntax : C:\>DATE E.g. C:\>DATE

E.g. FORMAT, TREE, XCOPY, etc. External Commands Those commands which are not loaded when loading the Program but are available in the Disk and can be invoked whenever necessary E.g. FORMAT, TREE, XCOPY, etc.

The Label Command The Label command is used to check the label of the disk that you have been currently working Syntax : Label [drivename] E.g. C:\>Label

XCopy Command Xcopy command is used to copy the files from one location to another along with the directories/sub-directories Syntax : C:\>XCOPY c:\dir_name d:\[dir_name] E.g. C:\>XCOPY c:\CSE d:\[CSE] Note: For copying all the sub-directories, /S is used

The DISKCOPY Command E.g. The DISKCOPY command is used to copy all the files from one disk to the another disk It can be used to copy files from one floppy disk to another (if two floppy drives exist in the System) Syntax : C:\> DISKCOPY first_diskdrive: second_diskdrive: E.g. C:\> DISKCOPY A: B:

The DISKCOMP Command The DISKCOMP command in MS DOS compares the contents of two disks (hard disk or floppy disk). The system first reads the contents of one disk and compares it with the another Syntax : C:\> DISKCOMP A: B: For defining the no.of sectors, /no. can be used

The FORMAT Command The FORMAT command prepares a new disk for use by organizing the disk into magnetic tracks and sectors Syntax : A:\>FORMAT [Drive_name] E.g. C:\>FORMAT A:

The TREE Command The TREE command is used to display all directory pathnames on the specified disk Syntax : C:\>TREE [disk_name] E.g. C:\>TREE A:

The EDIT Command The EDIT command in MS DOS is used to edit the files. It provides a different full screen Editor window with a few menu options. Syntax : C:\>EDIT [filename] E.g. C:\>EDIT file1

The MORE Command The MORE Command in MS DOS is used to view the contents of directories or files one line after the another, I.e. it displays one line at one press of return (Enter) key Syntax : DIR |MORE E.g. DIR C:\NCIT |MORE A pipeline is used along with the MORE command

The PRINT Command The PRINT Command in MS DOS is used to print the text files Syntax : PRINT Filename E.g. PRINT File1.txt

The PROMPT Command Now, the Prompt will be as NCIT The PROMPT is used to configure a DOS prompt into our linking Syntax : C:\ PROMPT Promptname E.g. PROMPT NCIT Now, the Prompt will be as NCIT