Ch 21 Command Syntax Using the DIR Command with Parameters and Wildcards.

Slides:



Advertisements
Similar presentations
DOS & Windows O/s Prof. Sujata Rao Less 5.
Advertisements

A+ Guide to Software, 4e Chapter 6 Windows 9x/Me Commands and Startup Disk.
Chapter One The Essence of UNIX.
COSC 120 Computer Programming
11/13/01CS-550 Presentation - Overview of Microsoft disk operating system. 1 An Overview of Microsoft Disk Operating System.
© 2007 The McGraw-Hill Companies, Inc. All rights reserved Working with the Command- Line Interface Chapter 14.
Chapter 5 Accessing Files and Directories. How Directories Get Created OS installation: usr, dev, etc, export, kernel and others places to store installation.
Guide To UNIX Using Linux Third Edition
Starting Out with C++: Early Objects 5/e © 2006 Pearson Education. All Rights Reserved Starting Out with C++: Early Objects 5 th Edition Chapter 1 Introduction.
Command Console Tutorial BCIS 3680 Enterprise Programming.
Copyright 2003 Scott/Jones Publishing Brief Version of Starting Out with C++, 4th Edition Chapter 1 Introduction to Computers and Programming.
Ch 101 Introduction to Batch Files. Ch 102 Overview Will learn to create batch files to automate a sequence of commands to accomplish various tasks.
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.
Ch 71 Using ATTRIB, SUBST, XCOPY, DOSKEY, and the Text Editor.
CS102 Introduction to Computer Programming
Alternate Version of STARTING OUT WITH C++ 4 th Edition Chapter 1 Introduction to Computers and Programming.
CSC 125 Introduction to C++ Programming Chapter 1 Introduction to Computers and Programming.
Ch11 Getting Started with the Operating System. Ch12 Overview Will discuss the purpose and function of an operating system.
Linux+ Guide to Linux Certification Chapter Three Linux Installation and Usage.
Computer Literacy BASICS: A Comprehensive Guide to IC 3, 5 th Edition Lesson 3 Windows File Management 1 Morrison / Wells / Ruffolo.
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.
INTRODUCTION TO OPERATING SYSTEMS. An operating system is a program that controls the overall activity of a computer. Like an orchestra conductor an operating.
Ch 51 Internal Commands COPY and TYPE. Ch 52 Overview Will review file-naming rules.
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.
1 THE UNIX FILE SYSTEM By Chokechai Chuensukanant ID COSC 513 Operating System.
Lesson 7-Creating and Changing Directories. Overview Using directories to create order. Managing files in directories. Using pathnames to manage files.
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.
1 Guide to Novell NetWare 6.0 Network Administration Chapter 12.
Understanding the Boot Process and Command Line
Ch Review1 Review Chapter Microcomputer Systems Hardware, Software, and the Operating System.
TERMS TO KNOW. Desktop This does not mean a computer desktop vs. a laptop. You probably keep a number of commonly used items on your desk at home such.
Guide To UNIX Using Linux Fourth Edition
®® Microsoft Windows 7 for Power Users Tutorial 13 Using the Command-Line Environment.
IST 222 Introduction to Operating Systems Fall, 2004.
Ch 41 Program Files, Data Files, and Subdirectories.
Guide to Linux Installation and Administration, 2e1 Chapter 7 The Role of the System Administrator.
Linux Operations and Administration
Lesson 11: Looking at Files and Folders what a file or folder is on the computer how to recognize a file or folder on the desktop how to recognize the.
Getting Started Additional information. Important DOS Commands Getting Started dirlists disk directories verdisplays OS version clsclear command prompt.
1 Operating Systems and Using Linux Topics What is an Operating System? Linux Overview Frequently Used Linux Commands Some content in this lecture added.
Lesson 2-Touring Essential Programs. Overview Development of UNIX and Linux. Commands to execute utilities. Communicating instructions to the shell. Navigating.
Operating Systems Concepts 1/e Ruth Watson Chapter 3 Chapter 3 DOS Ruth Watson.
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.
Ch 91 Pipes, Filters and Redirection. Ch 92 Overview Will use redirection to redirect standard input and standard output.
Introduction to Unix (CA263) File Editing By Tariq Ibn Aziz.
Introduction to Programming Using C An Introduction to Operating Systems.
Copyright 2003 Scott/Jones Publishing Standard Version of Starting Out with C++, 4th Edition Chapter 1 Introduction to Computers and Programming.
Lesson 3-Touring Utilities and System Features. Overview Employing fundamental utilities. Linux terminal sessions. Managing input and output. Using special.
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:
Computer Literacy BASICS: A Comprehensive Guide to IC 3, 5 th Edition Lesson 3 Windows File Management 1 Morrison / Wells / Ruffolo.
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.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. A Concise Introduction to MATLAB ® William J. Palm III.
Operating Systems and Using Linux Courtesy of John Y. Park 1.
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.
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.
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.
A+ Guide to Managing and Maintaining Your PC, 7e Chapter 2 Introducing Operating Systems.
Computer Literacy BASICS: A Comprehensive Guide to IC 3, 5 th Edition Lesson 3 Windows File Management 1 Morrison / Wells / Ruffolo.
Fundamentals of Windows Mouse n 4 Basic Operations: –Pointing –Clicking –Double Clicking –Dragging.
SQL and SQL*Plus Interaction
An Introduction to Computers and Visual Basic
An Introduction to Computers and Visual Basic
Command Syntax Chapter 2 Using the DIR Command with
An Introduction to Computers and Visual Basic
Chapter 6 Using DEL, REN, MOVE, and RD /S Ch 6.
1.3 Given a scenario, apply appropriate Microsoft command line tools
Presentation transcript:

Ch 21 Command Syntax Using the DIR Command with Parameters and Wildcards

Ch 22 Overview Will learn to read a syntax diagram and explain the function of each part of the diagram.

Ch 23 Overview Will learn some basic commands, their syntax, and how to make commands more specific.

Ch 24 Overview Will be able to define prompts and explain how they are used.

Ch 25 Overview The purpose and function of defaults will be explained.

Ch 26 Overview Will learn how to change the default drive and directory.

Ch 27 Overview Will learn how to use subdirectories and wildcards with the DIR command.

Ch 28 Overview The purpose and function of redirection will be explained and then will learn how to redirect the output of the DIR command to a file or a printer.

Ch 29 Overview Will learn to use the Online Help feature.

Ch 210 Command Syntax All languages have rules or conventions for speaking and writing.

Ch 211 Command Syntax To communicate with computer at command line prompt: è Learn its language ( commands ) è Follow its syntax ( word order ) è Use correct punctuation

Ch 212 Command Syntax The graphical user interface in Windows operating system uses syntax and rules.

Ch 213 What Are Parameters? Parameter: è Information to modify or qualify a command

Ch 214 What Are Parameters? Parameters can be: è Variable è Fixed

Ch 215 What Are Parameters? Variable parameter: è x + y = z

Ch 216 What Are Parameters? Fixed parameter: è x + 5 = z

Ch 217 Reading a Syntax Diagram Command line interface language has: è Vocabulary ( commands ) è Grammar ( punctuation ) è Syntax ( order )

Ch 218 Reading a Syntax Diagram DIR command syntax used earlier: DIR [drive:] [path] [filename] [/A [[:] attributes]] [/B] [/C] [/D] [/L] [/N] [/O[[:] sortorder]] [/P] [/Q] [/S] [/T[[:] timefield]] [/W] [/X] [4]

Ch 219 Using Fixed Parameters with the DIR Command Fixed parameter: è Referred to as a switch. è Begins with / ( the slash ).

Ch 220 Using Fixed Parameters with the DIR Command è Slash = forward slash (/). è \ = Backslash.

Ch 221 Using Fixed Parameters with the DIR Command DIR command with /P parameter displays one screen of information at a time.

Ch 222 Using Fixed Parameters with the DIR Command Notes for lab activities: è Check notes at beginning of each activity è At end of work session return to Windows desktop and follow shut-down procedure è Know your laboratory procedures è If system varies from text refer to the Configuration Table in Chapter 1.6

Ch 223 Activity—Using Fixed Parameters with DIR Command KEY CONCEPTS: è Clear Screen è Display directory using:  /P parameter  /W parameter  /P /W parameters è Delimiter

Ch 224 Using File Names as Variable Parameters File specification ( name ) consists of: è File name è File extension

Ch 225 Using File Names as Variable Parameters Conventions for Naming Files è All files in directory (subdirectory) must have unique names. è File names - mandatory - may be less than but no longer than 256 characters è File extensions - usually three characters long. è Following characters illegal - may NOT be used in file name: \ / : * ? | è All other characters, including periods and spaces, are legal in Windows file names.

Ch 226 Using File Names as Variable Parameters è File name reflects subject of file. è File extension usually given by application creating file.

Ch 227 Using File Names as Variable Parameters When naming files, many older 16-bit application packages adhere to older 8.3 DOS rules.

Ch 228 Using File Names as Variable Parameters è Can locate specific file by using file name. è Give DIR command information about file you seek: DIR [drive:] [path] [filename] [/P] [/W]

Ch 229 Using File Names as Variable Parameters è In some syntax diagrams you will see: [filename[.ext]] è If a file name has an extension, it must be included.

Ch 230 Using File Names as Variable Parameters A dot (.), delimiter, is used between file name and file extension. Example: MYFILE.TXT

Ch 231 Activity—Using a File Name as a Variable Parameter KEY CONCEPTS: è System messages è DIR command with long file names è File extensions - more than 3 characters è 8.3 file name è Use of quotation marks è Use of /x parameter è How 8.3 name derived from LFN è Reasons for keeping file names short/concise

Ch 232 Command Line Editing Can reuse last command keyed in without rekeying it: è - recalls one letter at a time è - recalls entire command line

Ch 233 Command Line Editing Table 2.1 Editing Keys Command Summary p. 53

Ch 234 Command Line Editing Table 2.1 Editing Keys Command Summary p. 53

Ch 235 Command Line Editing Table 2.1 Editing Keys Command Summary p. 53

Ch 236 Activity—Using Command Editing KEY CONCEPT: è Use editing keys to recall and edit commands è Overstrike mode è Insert mode è Delete line quickly by using key è How to search for previously entered command

Ch 237 Drives as Device Names Device is a place to read information from/to.

Ch 238 Drives as Device Names Disk drives have assigned device names.

Ch 239 Defaults Default: è Implied instructions è Value used unless another value is specified

Ch 240 Defaults As an example, when A: \ > is displayed on screen it is the: è Prompt è Default drive è Designated or logged drive

Ch 241 Activity—Working with the Default KEY CONCEPTS: è “Shelling out to DOS” è Using Default drive è Determining drive to be searched è Why DIR A: HELLO TXT is a very clear request

Ch 242 Brief Introduction to Subdirectories—The Path Brief Introduction to Subdirectories—The Path Subdirectories: è Used primarily on hard disks

Ch 243 Brief Introduction to Subdirectories—The Path Brief Introduction to Subdirectories—The Path Subdirectories permit the... î grouping of files by type. î disk to be divided into smaller more manageable sections.

Ch 244 Brief Introduction to Subdirectories—The Path Brief Introduction to Subdirectories—The Path

Ch 245 Brief Introduction to Subdirectories—The Path Root directory: è Created and named by OS when disk is formatted è Indicated by the backslash (\)

Ch 246 Brief Introduction to Subdirectories—The Path è Other subdirectories created and named by user. è Naming rules same as rules for naming files.

Ch 247 Brief Introduction to Subdirectories—The Path  First backslash - root directory  Following backslashes – delimiters.

Ch 248 Brief Introduction to Subdirectories—The Path Path: è Route followed by OS to locate, save, and/or retrieve a file è Subdirectory name

Ch 249 Brief Introduction to Subdirectories—The Path Fig 2.1 File Cabinets and Subdirectories p.63 Brief Introduction to Subdirectories—The Path Fig 2.1 File Cabinets and Subdirectories p.63

Ch 250 Activity—Using Path with the DIR Command KEY CONCEPTS: è Delimiter for path names è Backslash (first and others)

Ch 251 Changing Defaults è Default drive can be changed. è Command line is not case sensitive.

Ch 252 Activity—Changing the Default Drive KEY CONCEPTS: è Changing default è Locating file not in default directory è C:\ - major subdirectory

Ch 253 Changing Directories Default directory can be changed.

Ch 254 Changing Directories Partial command syntax: è CD [/D][Drive:][path]

Ch 255 Changing Directories è CD with no parameters - current default directory. è CD followed by path name - change default. è /D parameter - change drive and directory.

Ch 256 Activity—Changing Directories KEY CONCEPTS: è Results of keying in  CD alone - display current default directory  CD followed by path - will change default directory  CD \ - will always return to root directory

Ch 257 Global File Specifications: Wildcards, the ?, and * Global file specifications ( wildcards ): è Can operate on group of files instead of just a single file

Ch 258 Global File Specifications: Wildcards, the ?, and * è * - represents a group of characters. è ? - represents a single character.

Ch 259 Activity—DIR and Wildcards KEY CONCEPTS: è Locating files with insufficient data è Using * and *.* è Using ? and ??? è Using *.SYS

Ch 260 Redirection Keyboard: è Standard input device Screen: è Standard output device

Ch 261 Redirection Redirection: è Changes output from monitor to somewhere else ( usually file or printer ) è To work with printer must be local printer è Works only with commands that write to standard output

Ch 262 Redirection Redirection syntax command: è COMMAND > DESTINATION (Space required on both sides of >)

Ch 263 Activity—Redirecting Output to a File KEY CONCEPTS: è Redirecting output to a file è Redirection is “instead of” procedure è Dealing with write-protected disks

Ch 264 Redirecting Output to the Printer è Can redirect computer output to a file or to a printer. è To redirect to printer need a local printer.

Ch 265 Redirecting Output to the Printer Printers device names: è PRN, LPT1, LPT2 and sometimes LPT3.

Ch 266 Activity—Redirecting the Output to the Printer KEY CONCEPTS: è Redirection è Hardware solutions

Ch 267 Activity—Redirecting the Output to the Printer Fig 2.2 Redirected Output p.79

Ch 268 Getting Help Documentation: è Reference manual that comes with any software package

Ch 269 Getting Help In DOS 6.0 and above, documentation provided less in written form and more online.

Ch 270 Getting Help For help in DOS environment: è Key in command, then a space, forward slash, and question mark è Use HELP followed by command name

Ch 271 Activity—Getting Help with a Command KEY CONCEPT: è Results of commands: ? ON O-N S BLP B/L/P E D