Chapter 3 DOS Ruth Watson Operating Systems Concepts

  • Slides: 18
Download presentation
Chapter 3 DOS Ruth Watson Operating Systems Concepts 1/e Ruth Watson Chapter 3

Chapter 3 DOS Ruth Watson Operating Systems Concepts 1/e Ruth Watson Chapter 3

Objectives (1 of 2) n Explain what DOS is n Explain what GUI is

Objectives (1 of 2) n Explain what DOS is n Explain what GUI is n Explain what a pipe is n Demonstrate how to create a directory structure using DOS commands n Demonstrate how to navigate a directory structure using DOS commands n Demonstrate how to use the DOS edit program Operating Systems Concepts 1/e Ruth Watson Chapter 3 2

Objectives (2 of 2) n n n Explain what the 8. 3 naming convention

Objectives (2 of 2) n n n Explain what the 8. 3 naming convention is Differentiate between copying and moving files Demonstrate how to use wildcard characters Demonstrate how to redirect output using DOS commands Demonstrate how to customize the command window interface Demonstrate how to write a batch file Operating Systems Concepts 1/e Ruth Watson Chapter 3 3

Introduction n Technology professionals must have a basic understanding of DOS, including: q Syntax

Introduction n Technology professionals must have a basic understanding of DOS, including: q Syntax q Paths q Switches q Command line statements q Batch files Operating Systems Concepts 1/e Ruth Watson Chapter 3 4

Important Terms to Understand n Backslash n Prompt n Batch file n Redirect n

Important Terms to Understand n Backslash n Prompt n Batch file n Redirect n Clone n Root n Forward slash n Shell or user interface n GUI n Standard output n Partition n Switch n Path n Syntax Operating Systems Concepts 1/e Ruth Watson Chapter 3 5

What DOS is n n Disk Operating System (DOS) Around since the early 1980’s

What DOS is n n Disk Operating System (DOS) Around since the early 1980’s Command line interface There are many other command line OS’s, including: q q Novell Netware Unix Linux VAX/VMS Operating Systems Concepts 1/e Ruth Watson Chapter 3 6

Understanding the Syntax: Rule to follow Command line help |more: Will show help options

Understanding the Syntax: Rule to follow Command line help |more: Will show help options one screen at a time by using the pipe (|) Command line attrib /? : Will tell you more about a command using the /? after the command name Operating Systems Concepts 1/e Ruth Watson Chapter 3 7

Navigation Using DOS C:  prompt: Dir/p: Current directory path Start & Accessories Operating

Navigation Using DOS C: prompt: Dir/p: Current directory path Start & Accessories Operating Systems Concepts 1/e Ruth Watson Chapter 3 8

Directory Structure Operating Systems Concepts 1/e Ruth Watson Chapter 3 9

Directory Structure Operating Systems Concepts 1/e Ruth Watson Chapter 3 9

Directory Structure Continued Operating Systems Concepts 1/e Ruth Watson Chapter 3 10

Directory Structure Continued Operating Systems Concepts 1/e Ruth Watson Chapter 3 10

Using Wildcard Characters n Use wildcard characters to show multiple files with same n

Using Wildcard Characters n Use wildcard characters to show multiple files with same n Type tree. * q n Type tree *. * q n Operating Systems Concepts 1/e all files named tree will appear all possible files will appear Many uses for wildcards: q Copy all files tree *. * q Delete all files tree *. * Ruth Watson Chapter 3 11

Redirecting Output n Command displays the directory structure of the partition n Don’t forget

Redirecting Output n Command displays the directory structure of the partition n Don’t forget the pipe (|) q will show screen by screen Operating Systems Concepts 1/e Ruth Watson Chapter 3 12

Command Windows Interface n Change the look of the command prompt window q q

Command Windows Interface n Change the look of the command prompt window q q Right-click the command line title bar Options: n n Operating Systems Concepts 1/e Ruth Watson Font Layout Colors More Chapter 3 13

Batch Files n n n Batch files contain a series of commands that a

Batch Files n n n Batch files contain a series of commands that a user might use often Batch files are saved with a. bat file extension For example: q q q Copying files and then delete Move certain files and then delete Create directories and then backup certain files Operating Systems Concepts 1/e Ruth Watson Chapter 3 14

Batch Files Continued. bat file n When the. bat file is double clicked the

Batch Files Continued. bat file n When the. bat file is double clicked the commands run one at a time. Operating Systems Concepts 1/e Ruth Watson Chapter 3 15

The True Power of DOS n DOS has been around for a while q

The True Power of DOS n DOS has been around for a while q n Excellent example: q n professionals still find ways to use DOS The teacher creating a batch file to delete all documents placed in a class file as the computer runs Backing up files using batch files is another great example Operating Systems Concepts 1/e Ruth Watson Chapter 3 16

Summary n Typical computer users may never need to know DOS n Technology professionals

Summary n Typical computer users may never need to know DOS n Technology professionals need to know DOS n Understanding syntax, paths, command prompts, and batch files is a must for technology professionals Operating Systems Concepts 1/e Ruth Watson Chapter 3 17

Questions? Operating Systems Concepts 1/e Ruth Watson Chapter 3 18

Questions? Operating Systems Concepts 1/e Ruth Watson Chapter 3 18