Ch 51 Internal Commands COPY and TYPE. Ch 52 Overview Will review file-naming rules.

Slides:



Advertisements
Similar presentations
DOS commands.
Advertisements

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.
Working with Files How to create, view, copy, rename and print files.
Lab6 CPCS361 I.Mona Alshehri. Working with Files and Directories Creating files Create a file with the cat command type the command cat > name_of_file.
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.
Linux+ Guide to Linux Certification, Second Edition
Chapter 5 Accessing Files and Directories. How Directories Get Created OS installation: usr, dev, etc, export, kernel and others places to store installation.
The UNIX File System.
Command Console Tutorial BCIS 3680 Enterprise Programming.
FILES  A file is a collection of related information  Files are kept in directories on a disk.
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.
Ch 81 Organizing and Managing Your Hard Disk. Ch 82 Overview Learn how to organize a hard disk efficiently and logically to serve your specific needs.
Ch11 Getting Started with the Operating System. Ch12 Overview Will discuss the purpose and function of an operating system.
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.
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.
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.
Ch 21 Command Syntax Using the DIR Command with Parameters and Wildcards.
Lesson 11-Locating, Printing, and Archiving User Files.
®® Microsoft Windows 7 for Power Users Tutorial 13 Using the Command-Line Environment.
Ch 41 Program Files, Data Files, and Subdirectories.
Linux+ Guide to Linux Certification, Third Edition
Windows XP: Continue Files and Folders. Files & Directories n We store programs and data on secondary storage devices using a file system. n These are.
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.
Week 3 Exploring Linux Filesystems. Objectives  Understand and navigate the Linux directory structure using relative and absolute pathnames  Describe.
Linux+ Guide to Linux Certification, Third Edition
Getting Started with MATLAB 1. Fundamentals of MATLAB 2. Different Windows of MATLAB 1.
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.
Computing Fundamentals Module Lesson 10 — File Management with Windows Explorer Computer Literacy BASICS.
Operating Systems Concepts 1/e Ruth Watson Chapter 3 Chapter 3 DOS Ruth Watson.
Lesson 12: Using the Recycle Bin deleting files or folders what the Recycle Bin is restoring files from the Recycle Bin emptying the Recycle Bin identifying.
Common DOS Commands Additional information. Important DOS Concepts Common DOS Commands  Why format a disk?  Partitioning and Formatting disks  Structure.
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.
Lab Assignment 1 Getting Started. Submitting the LABS for grading Subject line of message: CTEC 110 WA Lab 1 Assignments Attachment file names:
Ch 91 Pipes, Filters and Redirection. Ch 92 Overview Will use redirection to redirect standard input and standard output.
Introduction to Programming Using C An Introduction to Operating Systems.
Linux Commands C151 Multi-User Operating Systems.
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.
XP New Perspectives on Microsoft Windows XP Tutorial 2 1 Microsoft Windows XP Working with Files Tutorial 2.
Linux+ Guide to Linux Certification, Second Edition Chapter 4 Exploring Linux Filesystems.
Guide to Parallel Operating Systems with Windows 7 and Linux Chapter 6 Directory Commands.
Operating System. What is Operating System OS is system software, which may be viewed as collection of software consisting of procedures for operating.
Guide to Parallel Operating Systems with Microsoft Windows XP and Linux Chapter 4 Directory Commands.
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.
Computer Literacy BASICS: A Comprehensive Guide to IC 3, 5 th Edition Lesson 3 Windows File Management 1 Morrison / Wells / Ruffolo.
INTERNAL COMMANDS CLS(Clear Screen):-
Command Prompt Using Copy, Type, and Wildcards
Command Syntax Chapter 2 Using the DIR Command with
File Managements.
New Perspectives on Windows XP
Chapter 6 Using DEL, REN, MOVE, and RD /S Ch 6.
TERMS AND CONDITIONS   These PowerPoint slides are a tool for lecturers, and as such: YOU MAY add content to the slides, delete content from the slides,
Presentation transcript:

Ch 51 Internal Commands COPY and TYPE

Ch 52 Overview Will review file-naming rules.

Ch 53 Overview Will learn some internal commands that can be used to manage and manipulate files.

Ch 54 Overview The value of creating and using dummy files will be explained.

Ch 55 Overview Will experience naming, managing, manipulating, viewing, and printing files.

Ch 56 Overview Use COPY and TYPE commands to perform various tasks.

Ch 57 Overview Both concatenation and the consequences of overwriting files will be discussed.

Ch 58 Why Learn Command Line Commands? Review of directory management commands: è MD è CD è RD

Ch 59 Why Learn Command Line Commands? Directories: è Largest units of information management è Used to organize programs and data files

Ch 510 Why Learn Command Line Commands? è Need to know how to manage information at the file level. è Managing files different from creating/changing data within files.

Ch 511 Why Learn Command Line Commands? Using the command line will help you understand: è File manipulation è Disk and subdirectory structure

Ch 512 Why Learn Command Line Commands? Some tasks are done easier and faster at the command line.

Ch 513 Why Learn Command Line Commands? Internal file-management commands: è DIR è COPY è REN è DEL è TYPE

Ch 514 The COPY Command COPY command: è Used to copy files from one place to another

Ch 515 The COPY Command Reasons for copying files: è Copy files from one disk to another è Make second copy to existing file on same disk è Copy file to device è Making changes of existing file with program that created it è Create backup copy of various data files

Ch 516 The COPY Command COPY command syntax: COPY [parameters] [drive:] [path] filename [drive:] [path] filename [parameters]

Ch 517 The COPY Command Conceptually the syntax is: COPY source destination

Ch 518 Review of File-Naming Rules File-naming Rules: Ê Names of files in directory must be unique. Ë No names can be longer than 255 characters, including file extensions. Ì File extensions are optional.

Ch 519 Review of File-Naming Rules File-naming Rules: Í File name must be separated from its extension with a period, called a dot. Î All alphanumeric characters can be used in file names and extensions, except the following illegal characters: “ / \ : | * ? +

Ch 520 Review of File-Naming Rules Program files: è Named by programmer è Commonly have.COM,.EXE, or.BAT extensions

Ch 521 Review of File-Naming Rules Naming data files: è Use names that reflect file contents è Extensions usually specify type of file è Most application programs assign file extension to data files

Ch 522 Activity—Making Copies of Files KEY CONCEPTS: è Function keys correct typing errors è Function of first \ and second \ è Function of dot (.) between file name and file extension è : lets operating system know that the destination is a drive

Ch 523 Activity—Making Copies of Files KEY CONCEPTS: è Executed several COPY commands è Used DIR to confirm files copied è Copy and rename files åOn command line - one step åWindows Explorer and My Computer - two steps

Ch 524 Using Long File Names Floppy disk: è Long file names - only when necessary è Room for 224 files on Directory Table è Uses old FAT16 file system

Ch 525 Using Long File Names Floppy disk: è Designed to hold files with 8.3 rules è Directory table full - cannot add files to disk ( even if there is room )

Ch 526 Using Long File Names Fig 5.1 Two Directory Tables p. 192

Ch 527 Using Long File Names è At command line enclose entire file name in quotes if it has spaces. è Use /X with DIR to see both short and long name in directory.

Ch 528 Using Long File Names Fig 5.2 Directory Showing Short and Long File Names p. 192

Ch 529 Using Long File Names For long files names, it is helpful to have meaningful and unique characters within the first six characters of the name.

Ch 530 Activity—Copying Files with Long File Names KEY CONCEPTS: è Copied file to data disk è Operating system assigned alias (8.3 file name)

Ch 531 Using Wildcards with the COPY Command Using wildcards (* and ?) with the COPY command to copy files can reduce the number of commands that have to be typed in.

Ch 532 Using Wildcards with the COPY Command Wildcards used: è With DIR and COPY commands è To change destination name

Ch 533 Activity—Using Wildcards with COPY Command KEY CONCEPTS: è Use wildcards to save time when: å Copying files å Viewing files åIf NTFS is file system - copy will copy files in alphabetical order

Ch 534 The TYPE Command TYPE command: è Internal command è Opens/displays contents of file on screen åDIR - displays what files are on disk è Must be text/ASCII file for data to be meaningful and readable

Ch 535 The TYPE Command TYPE command syntax: TYPE [drive:] [path] filename

Ch 536 Activity—Displaying Files Using TYPE Command KEY CONCEPTS: è Text files/ASCII files è Recognizing executable code files by file extensions è Support files è Format - how data is arranged

Ch 537 Dummy Files Dummy files: è Files without particular meaning è Usually created for test purposes è Usually smaller and are samples

Ch 538 Activity—Using the Copy and Type Commands KEY CONCEPTS: è TYPE can use more than one parameter è DIR - displays current files on disks è TYPE - displays contents of one file at a time

Ch 539 Making Additional Files on the Same Disk Can have two files with identical contents on same disk: è Including same name - if files kept in different subdirectories è In same subdirectory - if the names of the files are different.

Ch 540 Activity - Using COPY Command KEY CONCEPTS: è Review use of: å MD and (including syntax) å Naming subdirectories å First backslash (\), other (\) å Dot (.) and double dot (..) å Absolute/relative paths è COPY command è Use of wildcards with TYPE command

Ch 541 Using Wildcards with the COPY Command Wildcards can be used to copy files in the same drive to a different subdirectory.

Ch 542 Using Wildcards with the COPY Command It is crucial that syntax is NEVER altered. COPY source destination

Ch 543 Using Wildcards with the COPY Command Files can be “misplaced”: è Computers always follow commands è User must know what the computer was told to do

Ch 544 Activity—Using Wildcards with the COPY command KEY CONCEPTS: è Copying/naming files with COPY command è Compare moving/renaming files using GUI vs. doing it at the command line

Ch 545 Using COPY and DIR with Subdirectories è COPY command can place file in subdirectories. è DIR command can be used to see if files were copied.

Ch 546 Activity—Using COPY with Subdirectories KEY CONCEPTS: è Importance of spacing when keying in commands (COPY command spacing) è Use of \ - as a root, as a delimiter è When to use absolute/ relative path è Changing directories è Using DIR to locate files

Ch 547 Using Subdirectory Markers with the COPY Command Can use shortcuts to write commands: è Dot (.) è Double dot (..)

Ch 548 Using Subdirectory Markers with the COPY Command è The.. represents parent of current directory. è Only directory that does not have a parent is the root directory.

Ch 549 Activity—Using Shortcuts: The Subdirectory Marker KEY CONCEPTS: è Child vs. parent directory è Absolute path è Using.. è Using \ as a delimiter

Ch 550 Overwriting Files with the COPY Command Each file must have a unique name on same disk and subdirectory.

Ch 551 Overwriting Files with the COPY Command Overwrite: è Old data replaced by new data

Ch 552 Overwriting Files with the COPY Command Fig 5.4 Overwriting Files p. 264

Ch 553 Overwriting Files with the COPY Command è Overwrite files on regular basis as you want to backup files. è Now Windows informs user that an overwrite will occur.

Ch 554 Activity—Overwriting Files Using COPY Command KEY CONCEPTS: è When overwriting is not allowed è Confirmation prior to overwriting

Ch 555 Combining Text Files with the COPY Command Concatenation is creating another file by combining contents of two or more text (ASCII) files.

Ch 556 Combining Text Files with the COPY Command Concatenation should never be done with program files, or with data files generated by programs.

Ch 557 Combining Text Files with the COPY Command To avoid accidental concatenation of files, read all messages DOS displays on the screen.

Ch 558 Combining Text Files with the COPY Command è COPY syntax never changes: åCOPY source destination è Plus sign (+) between source files tells OS that you are joining files. è Two or more items separated by pipe symbol (|) - either/or choice

Ch 559 Activity—Combining Files Using the COPY Command KEY CONCEPTS: è Where spaces are in COPY command è Join text files with plus sign è Never concatenate: åProgram files åData files created with application programs è Read messages è Only text files can be combined å Wildcards can be used

Ch 560 Printing Files è Have not printed contents of any file. è May have: å Redirected output to printer using: ä DIR command ä TYPE command å Copied file to printer

Ch 561 Printing Files PRINT command: è Prints contents of files è Automatically ejects pages è Works only for ASCII files

Ch 562 Printing Files Data files generated by application programs can only be printed from within application program.

Ch 563 Printing Files Reasons for printing ASCII files: è Need hard copy of configuration information on computer è Verify if printer problem is a software problem

Ch 564 Printing Files Three ways to print a text file from the command line: è Use PRINT command è Use redirection with DIR command è Copy contents of file to printer

Ch 565 Printing Files PRINT command syntax: PRINT [D:device] [[drive:] [path] filename […]]

Ch 566 Printing in a Lab Environment Printing is complicated without a local printer.

Ch 567 Activity- Setting Up Printing in a Lab Environment KEY CONCEPTS: è Created shortcut to enable printing on the desktop è Created second shortcut on desktop to disable command line printing

Ch 568 Activity—Printing Files KEY CONCEPTS: è Print job è Status report è Can direct output to screen or another device è Cannot use redirection with COPY command