Ch 41 Program Files, Data Files, and Subdirectories.

Slides:



Advertisements
Similar presentations
DOS commands.
Advertisements

2 © 2004, Cisco Systems, Inc. All rights reserved. IT Essentials I v. 3 Module 4 Operating System Fundamentals.
A+ Guide to Software, 4e Chapter 6 Windows 9x/Me Commands and Startup Disk.
Chapter 3 Understanding the Boot Process and Command Line.
Chapter 10: File-System Interface
1 Chapter 11: File-System Interface  File Concept  Access Methods  Directory Structure  File System Mounting  File Sharing  Protection  Chapter.
Disk Operating System (DOS)
File Management Systems
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.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment, Enhanced Chapter 7: Advanced File System Management.
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
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment Chapter 7: Advanced File System Management.
1 DOS with Windows 3.1 and 3.11 Operating Environments n Designed to allow applications to have a graphical interface DOS runs in the background as the.
Command Console Tutorial BCIS 3680 Enterprise Programming.
Operating System Fundamentals
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.
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.
Ch 71 Using ATTRIB, SUBST, XCOPY, DOSKEY, and the Text Editor.
Ch11 Getting Started with the Operating System. Ch12 Overview Will discuss the purpose and function of an operating system.
Guide To UNIX Using Linux Fourth Edition
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment, Enhanced Chapter 7: Advanced File System Management.
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.
DOS Commands What is a command Types of DOS Commands Basic Terms
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.
Using Hard Drives Additional information.  Hierarchical Filing Systems  Why Organize a Hard Disk?  Relative and Absolute Paths  Subdirectory Markers.
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.
Understanding the Boot Process and Command Line
Ch 21 Command Syntax Using the DIR Command with Parameters and Wildcards.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment Chapter 7: Advanced File System Management.
Gene Perkins, Lassen High School Networking Academy
®® Microsoft Windows 7 for Power Users Tutorial 13 Using the Command-Line Environment.
IST 222 Introduction to Operating Systems Fall, 2004.
Linux+ Guide to Linux Certification, Second Edition
File Systems Long-term Information Storage Store large amounts of information Information must survive the termination of the process using it Multiple.
Chapter Two Exploring the UNIX File System and File Security.
File System Management File system management encompasses the provision of a way to store your data in a computer, as well as a way for you to find and.
File Systems (1). Readings r Reading: Disks, disk scheduling (3.7 of textbook; “How Stuff Works”) r Reading: File System Implementation ( of textbook)
Getting Started Additional information. Important DOS Commands Getting Started dirlists disk directories verdisplays OS version clsclear command prompt.
Operating System What is an Operating System? A program that acts as an intermediary between a user of a computer and the computer hardware. An operating.
Chapter Two Exploring the UNIX File System and File Security.
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.
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.
IST 222 Day 3. Homework for Today Take up homework and go over Go to Microsoft website and check out their hardware compatibility list.
Linux+ Guide to Linux Certification, Third Edition
Linux+ Guide to Linux Certification, Third Edition
Chapter 16 File Management The Architecture of Computer Hardware and Systems Software: An Information Technology Approach 3rd Edition, Irv Englander John.
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:
BIF713 File and Directory Management. File System A File System is a structure used to organize programs and data on a computer ’ s storage device Files.
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.
Directory Tree. Path Names (cont.) cp usr/ast/mailbox usr/ast/mailbox.bak and cp mailbox maibox.bak do the same thing if the working directory is /usr/ast.
Operating System. What is Operating System OS is system software, which may be viewed as collection of software consisting of procedures for operating.
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.
Systems Administration (Windows) BIT3111 – Lecture 5 (Introduction to Windows OS)
Command Syntax Chapter 2 Using the DIR Command with
Chapter 6 Windows 9x/Me Commands and Startup Disk
Exploring the UNIX File System and File Security
Operating System Fundamentals
Chapter 6 Using DEL, REN, MOVE, and RD /S Ch 6.
Presentation transcript:

Ch 41 Program Files, Data Files, and Subdirectories

Ch 42 Overview The cooperative effort between the operating system and the application program and its data files will be discussed.

Ch 43 Overview Shareware and freeware will be compared and contrasted.

Ch 44 Overview Will learn to differentiate between a program file and a data file.

Ch 45 Overview The hierarchical filing system of a tree-structured directory will be explained.

Ch 46 Overview Will identify and use subdirectory commands to help manage files from the command prompt.

Ch 47 Why Use the Command Prompt Screen? Review commands learned: è FORMAT è DISKCOPY è DIR è CLS

Ch 48 Why Use the Command Prompt Window? Four major categories of application programs: è Word processors è Spreadsheets è Databases è Graphics

Ch 49 Why Use the Command Prompt Window? OS is important: è Manages the system. è Enables the user to manage and manipulate files on disks

Ch 410 Why Use the Command Prompt Window? The OS manages the files not the information put into files.

Ch 411 Program Files, Data Files, and the OS è WUGXP Subdirectory contains: è Games which contains è BOG2 which contains è Application program called BOG

Ch 412 Program Files, Data Files, and the OS Legacy software can be used by Windows OS because of downward compatibility.

Ch 413 Program Files, Data Files, and the OS MS-DOS commands work in conjunction with various types of files.

Ch 414 Program Files, Data Files, and the OS Real mode operation: è Used for software written for DOS and early versions of Windows è Application program interfaces with device or DOS and DOS does the work

Ch 415 Program Files, Data Files, and the OS Protected mode operation: è Used for Windows software è Application software does NOT interface with hardware è Drivers talk to virtual device drivers

Ch 416 Program Files, Data Files, and the OS Operating system: è Loads application program into memory è Assists in loading data file into memory è Ensures cooperation between application program and its data files

Ch 417 Program Files, Data Files, and the OS Commands: è Are programs è Allow user to interface with OS to manage programs and data files

Ch 418 Shareware Freeware & shareware programs available from a wide variety of sources.

Ch 419 Shareware Freeware: è Software that is in the public domain

Ch 420 Shareware Shareware: è Trial version of a program

Ch 421 Shareware Register shareware program to receive: è Full version with documentation è Update notices è Technical support

Ch 422 Shareware Appendix A lists all shareware programs with fees and addresses necessary to register them.

Ch 423 Activity—Using DIR to locate the BOG Program KEY CONCEPTS: è Use DIR command to verify BOG is on hard disk è Function of.exe and.dat

Ch 424 Using Application Programs & Data Files è DIR command acknowledges files exist. è To use file, must load it into memory.

Ch 425 Using Application Programs & Data Files è BOG.EXE is the application program. è BOG.DAT is the data file.

Ch 426 Activity—Using Application Programs and Data Files KEY CONCEPTS: è Only programs can be executed è Function of file extension è BOG.DAT is the data file

Ch 427 Managing Program and Data Files at the Command Prompt Organize programs and files into subdirectories so it will be easier to save and locate them.

Ch 428 Hierarchical Filing Systems or Tree-Structured Directory Root directory: è Created when disk is formatted è Represented by (\) - the backslash è Acts as an index to disk

Ch 429 Hierarchical Filing Systems or Tree-Structured Directory Table 4.1 FAT16 Root Directory File Limits p. 135

Ch 430 Hierarchical Filing Systems or Tree-Structured Directory è FAT16 åRoot directory - fixed size & location on disk è FAT32 åRoot directory free to grow as necessary è NTFS åNo limit to # of files/directories in root directory

Ch 431 Hierarchical Filing Systems or Tree-Structured Directory Subdirectories: è Important part of organizing disk è Can contain subdirectories è No limit in number of files

Ch 432 Hierarchical Filing Systems or Tree-Structured Directory Subdirectory structure: è Looks like inverted family tree - è Root directory åAt top of tree åPoint of entry in hierarchical structure

Ch 433 Hierarchical Filing Systems or Tree-Structured Directory Fig 4.1 A Directory Is Like a Family Tree p. 135

Ch 434 Hierarchical Filing Systems or Tree-Structured Directory Fig 4.2 Hierarchical Structure of a Directory p.136

Ch 435 Hierarchical Filing Systems or Tree-Structured Directory Fig 4.3 A disk as a Building p. 136

Ch 436 Hierarchical Filing Systems or Tree-Structured Directory Fig 4.4 Subdirectories as Rooms p.137

Ch 437 Hierarchical Filing Systems or Tree-Structured Directory Fig 4.5 More Subdirectories p. 137

Ch 438 Hierarchical Filing Systems or Tree-Structured Directory Fig 4.6 Files in Subdirectories p. 138

Ch 439 Hierarchical Filing Systems or Tree-Structured Directory General comments: è Only one root directory - point of entry è Directories å Have only one parent directory å Can have any # of child directories

Ch 440 Hierarchical Filing Systems or Tree-Structured Directory General comments: è Each subdirectory å Dependent upon structure above it å Knows only its parents and children è Not changing size of structure - merely organizing it

Ch 441 Hierarchical Filing Systems or Tree-Structured Directory General Comments: è User names the subdirectories not the root directory è Subdirectories å Follow file naming rules å Have special commands

Ch 442 Hierarchical Filing Systems or Tree-Structured Directory Table 4.2 Directory Management Commands p. 139

Ch 443 Creating Subdirectories è Format disk - preparing it to hold files. è Set up subdirectory - preparing it to hold logical group of files.

Ch 444 Creating Subdirectories Subdirectory command syntax: MKDIR [drive:] path or MD [drive:] path

Ch 445 Activity—How to Create Subdirectories KEY CONCEPTS: è USED /Q parameter to format disk and used shortcut to place volume label on disk è Determine when at root directory è Verify subdirectory created è Attributes (D, H, S, R, A, -) è Use DIR to display directory contents è Subdirectory has two named subdirectories å Dot and double dot

Ch 446 The Current Directory Operating system keeps track of: è Default drive è Current (default) directory for each disk

Ch 447 The Current Directory CD command: è Displays current default directory: å CD with no parameters è Changes default directory: å Parameter after CD CD [drive:][path]

Ch 448 The Current Directory è CD command does not use spaces as delimiters. è Syntax åCD [/D] [drive:] [path]

Ch 449 The Current Directory What happens if prompt is A:\> and you key in: è CD C:\WUGXP è C: è CD /D C:\WUGXP

Ch 450 Activity—Using the CD Command KEY CONCEPTS: è Results of keying in CD å With no parameters å Followed by subdirectory name è CD alone cannot be used to change drives è Results of keying in DIR

Ch 451 Relative and Absolute Paths Use MD or MKDIR command to make new subdirectories. MD [drive:] path

Ch 452 Relative and Absolute Paths Fig 4.7 Directory with Subdirectories p. 147

Ch 453 Relative and Absolute Paths Absolute path: è Direct route from root directory to the subdirectory of interest è Is always absolutely correct è Complete and total hierarchical structure

Ch 454 Relative and Absolute Paths Relative path: è Route from where you are to where you want to go è Can move to directory above it and beneath it

Ch 455 Relative and Absolute Paths è Directory: åKnows about files/directories within itself åKnows about its immediate child directory and parent directory è To move to another parent directory must return to the root

Ch 456 Relative and Absolute Paths The root directory is parent or common “ancestor” of all directories.

Ch 457 Activity—Creating More Subdirectories KEY CONCEPTS: è Absolute vs. relative path è Hierarchy è File vs. directory è Create subdirectories è When and when not to use \

Ch 458 Knowing the Default Directory It is important to know default drive and directory.

Ch 459 Knowing the Default Directory è PROMPT command without parameters displays current drive and > sign. è CD command displays default or current drive and directory.

Ch 460 PROMPT Command è If no prompt specified prompt includes path and >. è Changing way prompt is displayed does not change its function.

Ch 461 PROMPT Command PROMPT command: è Contained in CMD.EXE è Syntax - PROMPT [text] è Can include metastrings

Ch 462 PROMPT Command PROMPT command Metastrings p. 153

Ch 463 PROMPT Command PROMPT Command Metastrings p. 153

Ch 464 Activity—Changing the Prompt KEY CONCEPTS: è Changing appearance of prompt does not change its function è Important to display default drive letter è Can return prompt to default value by keying in command with no parameters

Ch 465 Subdirectory Markers è Single. (one period) - specific name of current directory. è Double.. (two periods) - specific name of parent directory of current subdirectory.

Ch 466 Subdirectory Markers è Can use.. (two periods) to move up the directory. è Cannot use shortcut symbol to move down hierarchy.

Ch 467 Activity—Using Subdirectory Markers KEY CONCEPTS: è Using.. (two periods) è Space after CD/MD command & before backslash or directory marker is optional è When to use relative path è When to use absolute path è Keying in CD.. vs. keying in CD \

Ch 468 Activity—Using Subdirectory Markers KEY CONCEPTS: è What happens if MD \GOLF keyed in instead of MD PHYSED\GOLF è Results of keying in CD \ or CD\

Ch 469 Activity—Using Subdirectory Markers Fig 4.8 Structure of the Data Disk p. 158

Ch 470 Activity—Using Subdirectory Markers Fig 4.9 Subdirectories: Another View p. 159

Ch 471 Changing the Names of Directories MOVE command: è Used to rename directory from the MS-DOS prompt è MOVE [/Y | /-Y] [drive:] [path] ådirname1 direname2

Ch 472 Activity—Using MOVE to Rename a Directory KEY CONCEPT: è Give correct path name (absolute or relative) and can rename a directory from any location

Ch 473 Removing Directories RD or RMDIR command: è Used to remove directories è Cannot remove å Directory containing hidden or system files åDirectory you are in å Default subdirectory å Root directory è Cannot use with wildcards

Ch 474 Removing Directories RD [/S] /Q] [drive:] path Without parameters: è Removes: å Only empty subdirectories å Files one at a time - bottom up

Ch 475 Removing Directories RD [/S] /Q] [drive:] path With parameters: è Can remove directory tree è Can remove directory with hidden or system files è Can traverse directory tree from top down

Ch 476 Activity—Using the RD Command KEY CONCEPTS: è Directory is type of file è Cannot delete å Directory you are in å Default directory å Root directory

Ch 477 Activity—Using the RD Command KEY CONCEPTS: è Create directories - top down è RD without parameters å Remove directories - bottom up å Removes empty directories

Ch 478 Deleting a Directory and Its Subdirectories RD [/S] [/Q] [drive:] path RD with /S parameter: è Deletes directory and contents ( subdirectories/files ) with one command è Removes a tree

Ch 479 Deleting a Directory and Its Subdirectories RD with /S parameter: è Traverse directory tree from top down è With /Q parameter - RD runs in quiet mode è Useful, fast, powerful, dangerous

Ch 480 Activity—Using RD with the /S Parameter KEY CONCEPTS: è RD /S åRemoves files and subdirectories with one command åUseful, fast, powerful, dangerous

Ch 481 Using Multiple Parameters with MD and RD Can create ( MD ) or remove ( RD ) more than one directory on the same command line.

Ch 482 Using Multiple Parameters with MD and RD MD command: è Create parent and child directory with one command. è If parent directory does not exist, the OS will create child directories and any necessary intermediate directories.

Ch 483 Activity—Using Multiple Parameters with MD & RD KEY CONCEPTS: è Creating subdirectories with MD è Removing subdirectories with RD è Using /S and /Q parameters with RD

Ch 484 Understanding the PATH Command Covered in this chapter: è CD command è Located/executed BOG è Reviewed process of executing a program å.com,.exe, and.bat extensions denote executable programs è Used MD, DIR, CD, RD PROMPT, FORMAT, DISKCOPY, and MOVE

Ch 485 Understanding the PATH Command OS Search for Correct File is Limited to File Extensions in Order Listed p.168

Ch 486 Understanding the PATH Command PATH command: è Locates/executes executable program files è Searches åMemory åCurrent directory åSubdirectories specified with PATH command

Ch 487 Understanding the PATH Command PATH command syntax: PATH [[drive:] path [;…] [%PATH%]]

Ch 488 Activity—Using the Path Command KEY CONCEPTS: è Use of ; following PATH command è Location of BOG è Elements of path separated by (;) è No need to replace existing PATH to change it è Returning PATH to original setting