© 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.

Slides:



Advertisements
Similar presentations
Disk Operating System (DOS)
Advertisements

DOS commands.
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
2 © 2004, Cisco Systems, Inc. All rights reserved. IT Essentials I v. 3 Module 4 Operating System Fundamentals.
Drives, Directories and Files. A computer file is a block of arbitrary information, or resource for storing information. Computer files can be considered.
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.
Micro Op SYS (DOS) Chapters 1, 2, 3, 5, 6, 7. 2 Hardware Four Categories –CPU (Central Processing Unit) –Primary Storage (RAM) –Input/Output Devices Keyboard.
Working in DOS DOS is a true operating system
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
© 2013 The McGraw-Hill Companies, Inc. All rights reserved Mike Meyers’ CompTIA A+ ® Guide to 802: Managing and Troubleshooting PCs Fourth Edition (Exam.
Or CMD/BATCH.  Title this comand makes the cmd prompt’s title whatever you would like it to be.
Comandos Windows. ASSOC - Displays or modifies file extension associations.
Ch 71 Using ATTRIB, SUBST, XCOPY, DOSKEY, and the Text Editor.
System Software. BIOS Basic Input Output System A kind of ROM Execute routines Checking RAM, detecting hard disk, floppy disk, CDROM, … etc.
IT Essentials - Chapter 4 Operating System Fundamentals.
Version 3 Operating System Fundamentals Module 4.
Computer Concepts 2013 Chapter 4 Operating Systems and File Management.
By Umesh ks. Dos is a single user operating system. Its support the all operating system wizards Support the disk scheduling. File management Network.
Chapter 4 Operating Systems and File Management. 4 Chapter 4: Operating Systems and File Management 2 Chapter Contents  Section A: Operating System Basics.
PC Maintenance: Preparing for A+ Certification Chapter 29: Managing Files.
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.
DOS Commands What is a command Types of DOS Commands Basic Terms
Chapter 9 Part II Linux Command Line Access to Linux Authenticated login using a Linux account is required to access a Linux system. The Linux prompt will.
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
4 1 Operating System Activities  An operating system is a type of system software that acts as the master controller for all activities that take place.
Ch 21 Command Syntax Using the DIR Command with Parameters and Wildcards.
MS-DOS/PC-DOS by: Temitope Akanni CS550: Operating Systems Fall 2003.
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.
© 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.
Getting Started Additional information. Important DOS Commands Getting Started dirlists disk directories verdisplays OS version clsclear command prompt.
BY PREETHI DOS INTERNAL COMMANDS. INTERNAL COMMANDS  DOS commands that are present in the COMMAND.COM file and are automatically loaded into RAM when.
OPERAING SYSTEM 1 CA-210 WINDOWS XP. CHAPTER 1 OPERATING SYSTEM FUNDAMENTALS.
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.
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.
© 2015 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner.
A+ Guide to Managing and Maintaining your PC, 6e Chapter 15 Windows 9x/Me Commands and Startup Disk.
Ahmadu Bello Computer Repair Training Course 6: Use of Software By Suprix Technology Nigeria ( A.B.U repair computer training.
A+ Guide to Software Managing, Maintaining and Troubleshooting THIRD EDITION Chapter 3 Understanding the Boot Process and Command Line.
IST 222 Day 6. DOS Naming Conventions A filename contains up to 8 characters, a separating period, and a file extension of up to three characters This.
Instructor: Syed Shuja Hussain Chapter 4: Operating System Basics.
Systems Administration (Windows) BIT3111 – Lecture 5 (Introduction to Windows OS)
Chapter 6 Windows 9x/Me Commands and Startup Disk
DOS (Disk Operating System)
Chapter Overview Operating System Basics
Operating System Fundamentals
OPERATING SYSTEM B-TECH III YEAR I SEM BRANCH :ECE
Presentation transcript:

© 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

© 2012 The McGraw-Hill Companies, Inc. All rights reserved. 2 Learning Outcomes LO 4.1 Identify the versions of DOS, its strengths, weaknesses, and why it is still in use LO 4.2 Install DOS on a physical or virtual machine, and create a live CD LO 4.3 Work with the DOS command prompt for file management and other tasks LO 4.4 Understand the DOS boot-up process LO 4.5 Troubleshoot common DOS problems

© 2012 The McGraw-Hill Companies, Inc. All rights reserved. 3 DOS Basics What is DOS? – Disk Operating System Single-user/single-tasking OS Name derived from support of disks Command-line interface called the DOS prompt No integrated GUI

© 2012 The McGraw-Hill Companies, Inc. All rights reserved. 4 DOS Basics Versions of DOS – MS-DOS PC DOS licensed to IBM beginning in 1981 MS-DOS OEM licensed to manufacturers Digital Research (of CP/M fame) introduced DR-DOS in 1987 DR-DOS 8.0 introduced in 2004 by DeviceLogics FreeDOS distributed without charge under GNU GPL license

© 2012 The McGraw-Hill Companies, Inc. All rights reserved. 5 DOS Basics Versions of DOS – PC DOS IBM offered new versions through PC DOS 2000 Compatible with any Microsoft/Intel PC IBM ended product support January 31, 2001 IBM no longer sells PC DOS The DOS VER command

© 2012 The McGraw-Hill Companies, Inc. All rights reserved. 6 DOS Basics Versions of DOS – DR-DOS Introduced in 1987 by Digital Research (creators of CP/M) Novell acquired Digital Research in 1991 (Novell DOS) DeviceLogics acquired DR-DOS – Added support for use in embedded systems – Introduced DR-DOS 8.0 in 2004 as trial – Continue to offer the 7.03 version

© 2012 The McGraw-Hill Companies, Inc. All rights reserved. 7 DOS Basics Versions of DOS – DOS for Free FreeDOS – GNU GPL license – 100% compatible with MS-DOS – Supports FAT32 file system – Learn more at

© 2012 The McGraw-Hill Companies, Inc. All rights reserved. 8 DOS Basics DOS Strengths – DOS for backward compatibility – DOS when you need a small OS DOS is more compact than Windows and hence useful for embedded systems or for portability Pack all startup files and selected utilities on a single floppy or flash drive

© 2012 The McGraw-Hill Companies, Inc. All rights reserved. 9 An application “reaching around” DOS to access hardware directly

© 2012 The McGraw-Hill Companies, Inc. All rights reserved. 10 Figure 4-1 A handheld inventory scanner

© 2012 The McGraw-Hill Companies, Inc. All rights reserved. 11 A directory listing of a DOS boot drive with 68 files—many handy utilities and programs—that take up less than half the available space!

© 2012 The McGraw-Hill Companies, Inc. All rights reserved. 12 DOS Basics DOS Weaknesses – User Interface Limits – Processor Mode Limits – Memory Limits – Multitasking Limits – Hard drive limits

© 2012 The McGraw-Hill Companies, Inc. All rights reserved. 13 Figure 4-2 The MEM command shows DOS memory usage

© 2012 The McGraw-Hill Companies, Inc. All rights reserved. 14 Figure 4-3 What a different 20 years makes! The Task Manager in Windows 7 shows the memory in use by processes (active portions of running programs)

© 2012 The McGraw-Hill Companies, Inc. All rights reserved. 15 Working with the DOS Command Prompt Success at the DOS Prompt – How Does DOS Interpret a Command? The command interpreter (COMMAND.COM in both MS-DOS and FreeDOS) – Receives the command – Finds the program code for the command – Loads the program code into memory – Passes any additional instructions to the command.

© 2012 The McGraw-Hill Companies, Inc. All rights reserved. 16 Figure 4-10 Parameter error messages

© 2012 The McGraw-Hill Companies, Inc. All rights reserved. 17 Working with the DOS Command Prompt Success at the DOS Prompt (cont.) – How is a Program Found and Loaded? DOS checks its own internal commands If command not found then … DOS looks for external command – In current directory – In search path – Searches for a match with.COM,.EXE, and then.BAT

© 2012 The McGraw-Hill Companies, Inc. All rights reserved. 18 Working with the DOS Command Prompt Success at the DOS Prompt (cont.) – Which Command Will Accomplish the Task? Use Help – DOS program that lists DOS commands – Describes functions

© 2012 The McGraw-Hill Companies, Inc. All rights reserved. 19 Working with the DOS Command Prompt Success at the DOS Prompt (cont.) – What is the Correct Syntax? Syntax is a set of rules for correctly entering a command Includes command name and parameters See syntax: – Type command_name followed by /?

© 2012 The McGraw-Hill Companies, Inc. All rights reserved. 20 Figure 4-11 The COPY command syntax

© 2012 The McGraw-Hill Companies, Inc. All rights reserved. 21 Working with the DOS Command Prompt Operators – Symbols that affect the behavior of commands Vertical bar (|) between two commands – Uses output from first as input for second – Example: type autoexec.bat | more – One screenful will display – Press any key to advance

© 2012 The McGraw-Hill Companies, Inc. All rights reserved. 22 Figure 4-12 The result of sending the output of the TYPE command, operating on the AUTOEXEC.BAT file, to the MORE filter

© 2012 The McGraw-Hill Companies, Inc. All rights reserved. 23 Working with the DOS Command Prompt Operators (cont.) – Symbols that affect the behavior of commands (cont.) Greater than symbol (>) – Uses output from command and creates a file – Example: type autoexec.bat > more

© 2012 The McGraw-Hill Companies, Inc. All rights reserved. 24 Working with the DOS Command Prompt Learning to Manage Files and Directories – Symbols that affect the behavior of commands No-frills file management Based on abilities and limits of the FAT file system

© 2012 The McGraw-Hill Companies, Inc. All rights reserved. 25 Working with the DOS Command Prompt Learning to Manage Files and Directories – DOS File Basics DOS File-naming Rules – The 8.3 (eight-dot-three) naming convention » Up to eight characters in filename » Followed by a period » Followed by up to three characters in the extension

© 2012 The McGraw-Hill Companies, Inc. All rights reserved. 26 Working with the DOS Command Prompt Learning to Manage Files and Directories – DOS File Basics (cont.) More DOS File-naming Rules – Only contain alphanumeric characters and a few special characters $ & ! % ‘ ^ ( ) - _ – Spaces and the following characters are illegal: / \ [ ] | + = ;, * ? – Dos is case insensitive » README.TXT is the same as readme.txt

© 2012 The McGraw-Hill Companies, Inc. All rights reserved. 27 Working with the DOS Command Prompt Learning to Manage Files and Directories – DOS File Basics (cont.) The path to a file – Example: C:\docs\test\ch01.doc Wildcards – * replaces all characters from a point to the end of a filename or extension. – ? Replaces a single character

© 2012 The McGraw-Hill Companies, Inc. All rights reserved. 28 Working with the DOS Command Prompt Learning to Manage Files and Directories – DOS File Basics (cont.) DOS File Types – BAK: a file containing backup data – BAS: a BASIC program file – BAT: a batch file – COM: an executable binary file (a program) – EXE: an executable binary file using a more complicated structure than a COM file (a program) – SYS: a device driver or operating system file – TXT: a file containing text without special codes for formatting text

© 2012 The McGraw-Hill Companies, Inc. All rights reserved. 29 Working with the DOS Command Prompt Learning to Manage Files and Directories – DOS File Basics (cont.) DOS File Types (cont.) – DOS Executables » COM, EXE, and BAT » COM and EXE files contain programming code » BAT files are batch files

© 2012 The McGraw-Hill Companies, Inc. All rights reserved. 30 Working with the DOS Command Prompt Learning to Manage Files and Directories – DOS File Basics (cont.) DOS File Types (cont.) – DOS File Attributes » Read-only » Archive » System » Hidden » Volume label » Directory

© 2012 The McGraw-Hill Companies, Inc. All rights reserved. 31 Working with the DOS Command Prompt Learning to Manage Files and Directories – DOS File Basics (cont.) DOS File Types (cont.) – More About DOS File Attributes » Attributes are used in the FAT file system in all OSs » NTFS and others use these plus additional attributes » ATTRIB command displays and modifies attributes

© 2012 The McGraw-Hill Companies, Inc. All rights reserved. 32 Working with the DOS Command Prompt Learning to Manage Files and Directories – DOS File Basics (cont.) Root Directory and Other Directories – A special file that can contain listings of files and directories – Root directory is top-level directory » Created by FORMAT command » Contains all other directories and files – Parent directory contains other directories – Subdirectory is within a parent

© 2012 The McGraw-Hill Companies, Inc. All rights reserved. 33 Figure 4-13 MS-DOS directory listing using the DIR command. Notice the Word and Xtree directories.

© 2012 The McGraw-Hill Companies, Inc. All rights reserved. 34 Figure 4-14 A directory listing of the root directory in FreeDOS

© 2012 The McGraw-Hill Companies, Inc. All rights reserved. 35 Working with the DOS Command Prompt Learning to Manage Files and Directories – DOS File Basics (cont.) Each directory entry contains this data – File name – Extension – Date and time of creation/modification – Size – Attributes – Beginning cluster number

© 2012 The McGraw-Hill Companies, Inc. All rights reserved. 36 Working with the DOS Command Prompt Learning to Manage Files and Directories – Designing a Directory Structure for File Management Like a filing cabinet – Each logical drive is a drawer – Each directory in root is a large hanging folder » Each subdirectory at next level is smaller folder Never save data files in root directory Store programs in one directory hierarchy Store data files in another directory structure

© 2012 The McGraw-Hill Companies, Inc. All rights reserved. 37 Figure 4-15 Directories viewed with the TREE command

© 2012 The McGraw-Hill Companies, Inc. All rights reserved. 38 Working with the DOS Command Prompt Learning to Manage Files and Directories – Designing a Directory Structure for File Management (cont.) Creating and Navigating Directories MD (Make Directory) – Creates a new directory – Syntax: MD [drive:]path – Example: md data or md c:\data

© 2012 The McGraw-Hill Companies, Inc. All rights reserved. 39 Working with the DOS Command Prompt Learning to Manage Files and Directories – Designing a Directory Structure for File Management (cont.) CD (Change Directory) – Move between directories – Syntax: CD path – Example: cd \data or cd c:\data

© 2012 The McGraw-Hill Companies, Inc. All rights reserved. 40 Working with the DOS Command Prompt Learning to Manage Files and Directories – Use File Management Commands TYPE — displays the contents of a file on the display screen DIR — lists the contents of a directory CD — changes the directory CLS — clears the display COPY — copies a file REN — renames a file or directory MD — makes a directory

© 2012 The McGraw-Hill Companies, Inc. All rights reserved. 41 Working with the DOS Command Prompt Learning to Manage Files and Directories – Use File Management Commands RD — removes an already empty directory XCOPY — copies entire directories, as well as files DISKCOPY— makes a floppy-disk-to-floppy- disk copy DELTREE — deletes an entire directory and its contents HELP — displays a listing of DOS commands and provides their syntax

© 2012 The McGraw-Hill Companies, Inc. All rights reserved. 42 Working with the DOS Command Prompt Step-by-Step 4.03 Managing Files and Directories Page 131