© 2007 The McGraw-Hill Companies, Inc. All rights reserved Working with the Command- Line Interface Chapter 14.

Slides:



Advertisements
Similar presentations
The Windows File System and Windows Explorer To move around the file system and examine your files or get to one you want (say, to modify, delete or copy.
Advertisements

DOS commands.
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
Tutorial 8: Developing an Excel Application
A+ Guide to Software, 4e Chapter 6 Windows 9x/Me Commands and Startup Disk.
Chapter 3 Understanding the Boot Process and Command Line.
MCT260-Operating Systems I Operating Systems I Navigating the File System.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment, Enhanced Chapter 7: Advanced File System Management.
A+ Guide to Software, 4e Chapter 4 Supporting Windows 2000/XP Users and Their Data.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment Chapter 7: Advanced File System Management.
Working in DOS DOS is a true operating 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.
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.
© 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.
Chapter 7 Working with Files.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment, Enhanced Chapter 7: Advanced File System Management.
PC Maintenance: Preparing for A+ Certification Chapter 29: Managing Files.
Computer Systems Week 10: File Organisation Alma Whitfield.
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.
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.
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.
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
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.
Ch 41 Program Files, Data Files, and Subdirectories.
1 The EDIT Program The Edit program is a full screen text editor that allows you to: Create text files Create text files Edit an existing text files Edit.
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.
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.
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.
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:
Windows XP Lab 2 Organizing Your Work Competencies.
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.
© 2015 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner.
XP New Perspectives on Microsoft Windows XP Tutorial 2 1 Microsoft Windows XP Working with Files Tutorial 2.
Operating System. What is Operating System OS is system software, which may be viewed as collection of software consisting of procedures for operating.
A+ Guide to Managing and Maintaining your PC, 6e Chapter 15 Windows 9x/Me Commands and Startup Disk.
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.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment, Enhanced Chapter 7: Advanced File System Management.
Systems Administration (Windows) BIT3111 – Lecture 5 (Introduction to Windows OS)
Chapter 6 Windows 9x/Me Commands and Startup Disk
Working with the Command-Line Interface
Operating System Fundamentals
Working with the Command- Line Interface
File System Management
Chapter 6 Using DEL, REN, MOVE, and RD /S Ch 6.
OPERATING SYSTEM B-TECH III YEAR I SEM BRANCH :ECE
Presentation transcript:

© 2007 The McGraw-Hill Companies, Inc. All rights reserved Working with the Command- Line Interface Chapter 14

© 2007 The McGraw-Hill Companies, Inc. All rights reserved Overview In this chapter, you will learn to –Explain the operation of the command-line interface –Execute fundamental commands from the command line –Manipulate files and folders from the command line

© 2007 The McGraw-Hill Companies, Inc. All rights reserved Historical/Conceptual IBM invented the PC in the late ’70s but needed an operating system –Digital Research had an OS but turned them down –IBM went to a small company (Bill Gates at Microsoft) that had created BASIC –Microsoft had never written an OS but accepted the challenge Gates found an OS called Quick-and-Dirty-Operating- System (QDOS) and purchased it from the person who wrote it Microsoft released it as MS-DOS V 1.1 (Microsoft Disk Operating System) MS-DOS 6.22 ultimately released in 1994 DOS used a command-line interface

© 2007 The McGraw-Hill Companies, Inc. All rights reserved Deciphering the Command-Line Interface IT Technician CompTIA A+ Technician

© 2007 The McGraw-Hill Companies, Inc. All rights reserved Command-Line Interface (CLI) How does a command-line interface work? –Begins with a prompt indicating the computer is ready to do something –Type in a command and press ENTER –The command is executed –A new prompt is displayed—ready for the next command –CLI executes commands like the Windows GUI In CLI, type the command and press ENTER In GUI, point and click to execute commands

© 2007 The McGraw-Hill Companies, Inc. All rights reserved Accessing the Command Line In Windows 2000 use the Run dialog box –Start | Run –Type cmd You may also access the command line through the Start | All Programs menu

© 2007 The McGraw-Hill Companies, Inc. All rights reserved The Command Prompt The command prompt is always focused on a specific folder –Any commands operate on the files and folders in the folder in which you are focused –You must first focus on the drive and folder where you want to work

© 2007 The McGraw-Hill Companies, Inc. All rights reserved Filenames and File Formats Each program or piece of data is stored as a file on the drive Filenames have two parts –Filename In DOS, up to 8 characters long –Extension In DOS, up to 3 characters long Optional The filename and extension are separated by a dot –Called the 8.3 naming system These characters may not be used / \ [ ] | ÷ + = ;, * ?

© 2007 The McGraw-Hill Companies, Inc. All rights reserved Filenames and Formats Windows does not restrict the filename to 8.3 (can be up 255 characters) –To be backward-compatible with DOS you need to follow the 8.3 standard –Windows creates two filenames for every file to ensure backward-compatibility The extension tells the computer the type of file –.exe,.doc,.xls

© 2007 The McGraw-Hill Companies, Inc. All rights reserved File Formats All files written in binary format American Standard Code for Information Interchange (ASCII) used for text –Universal file format –Defines bit characters Unicode –Uses 16-bit code to cover every character for the most common languages

© 2007 The McGraw-Hill Companies, Inc. All rights reserved ASCII Character Chart

© 2007 The McGraw-Hill Companies, Inc. All rights reserved Drives and Folders At boot, Windows assigns partitions and a drive letter –Floppy drives are usually assigned A: or B: –Hard drive partitions may be assigned C: to Z: –CD-ROM drives are named after hard drives Windows uses a hierarchical directory tree –Files are put into groups called folders In DOS we call folders directories –The root directory is at the beginning of the hierarchical structure with folders underneath

© 2007 The McGraw-Hill Companies, Inc. All rights reserved Folders and Files Folders and files must be unique –Can’t be the same name in the same folder C:\ represents the root directory of C To describe a subfolder, add the name of the folder –C:\TEST The location of a file is called the path –The path of C:\test\file.txt is C:\test

© 2007 The McGraw-Hill Companies, Inc. All rights reserved Directory Tree

© 2007 The McGraw-Hill Companies, Inc. All rights reserved Mastering Fundamental Commands

© 2007 The McGraw-Hill Companies, Inc. All rights reserved Structure: Syntax and Switches The command line requires the exact syntax for each command Type the name of the command and desired or allowed switches –Switches modify the behavior of the command –Multiple switches may be allowable –DIR /W /P Displays the directory in wide mode and one page at a time

© 2007 The McGraw-Hill Companies, Inc. All rights reserved Help Help with any command is readily available in one of three ways –HELP gives a one-line description of each command –HELP command gives specific help for the command –Command /? gives specific help for the command

© 2007 The McGraw-Hill Companies, Inc. All rights reserved DIR Command The DIR command lists the contents of a particular directory –The DIR/W command lists only the filenames

© 2007 The McGraw-Hill Companies, Inc. All rights reserved DIR Command Switches

© 2007 The McGraw-Hill Companies, Inc. All rights reserved Directories: CD Command The CD (or CHDIR) command is used to change the focus to a different directory The CD\ command is used to return to the root directory CD.. Goes up one directory To switch between drives, type the drive letter followed by a colon –C: –D:

© 2007 The McGraw-Hill Companies, Inc. All rights reserved Making and Removing Directories The MD (or MKDIR) command is used for creating a directory The DEL command is used for deleting files, and the RD (RMDIR) command is used for deleting directories and subdirectories The DELTREE command is used for deleting directories containing files and subdirectories

© 2007 The McGraw-Hill Companies, Inc. All rights reserved Running a Program To run a program: –Change the DOS focus to the directory where the program is stored CD C:\Program Files\My Program –Type the filename with or without its extension and press ENTER Setup.exe

© 2007 The McGraw-Hill Companies, Inc. All rights reserved Working with Files

© 2007 The McGraw-Hill Companies, Inc. All rights reserved Working with Files Attributes (H, R, S, A) are special values assigned to a file –Hidden: hides the file –Read-only: protects a file from being deleted or modified –System: identifies system files –Archive: identifies files that have not been backed up The ATTRIB.EXE program is used to inspect and change file attributes

© 2007 The McGraw-Hill Companies, Inc. All rights reserved Attrib Attrib can be used to change the attributes –Use + to add attribute -Use – to remove attribute Attrib +R AILOG.TXTMakes it read only Attrib –H AILOG.TXTMakes it no longer hidden

© 2007 The McGraw-Hill Companies, Inc. All rights reserved Working with Files Wildcards: –Wildcards are special characters that enable commands to act on more than one file at a time –The * represents any number of characters –The ? represents a single character DIR *.TXTLists all files that end in.TXT DIR *.?XTLists all files that end in XT

© 2007 The McGraw-Hill Companies, Inc. All rights reserved Working with Files REN command is used to rename files DEL and ERASE commands are used to delete files COPY command is used for making a copy of the file in a new location MOVE command is used for moving the file to a new location XCOPY command is used for working with multiple directories

© 2007 The McGraw-Hill Companies, Inc. All rights reserved Mike’s Five-Step COPY/MOVE Process 1.Point the command prompt to the directory containing the files to be copied or moved C:\> CD \DOCS 2. Type COPY or MOVE and a space C:\DOCS> COPY 3. Type the name(s) of the file(s) to be copied/moved and a space C:\DOCS> COPY *.doc 4. Type the path of the new location for the files C:\DOCS> COPY *.doc c:\Steam 5. Press ENTER

© 2007 The McGraw-Hill Companies, Inc. All rights reserved Working with Batch Files Batch files are text files that store a series of commands –One command on each line –Batch files use the.BAT extension –Batch files may be edited with any text editor Notepad EDIT –Batch files get their own type of icon

© 2007 The McGraw-Hill Companies, Inc. All rights reserved EDIT EDIT is a command-line command that starts a basic text editor

© 2007 The McGraw-Hill Companies, Inc. All rights reserved Creating a Batch File Using EDIT, type in some commands on their own line (such as cd:\ and Dir) Save the file with a.BAT extension –C:\test.bat Launch a command prompt and run the batch file C:\> CD \ C:\> Test.bat

© 2007 The McGraw-Hill Companies, Inc. All rights reserved Additional Commands Some additional commands are –VER shows the current version of Windows –ECHO tells the batch file to put text on the screen –TYPE displays the contents of a batch file on the screen –SET display settings that Windows has loaded by default

© 2007 The McGraw-Hill Companies, Inc. All rights reserved ECHO Command ECHO will display text on the screen ECHO OFF turns off the display of text on the at the beginning of a line prevents displaying the command, but not the result of the OFF is frequently used in batch files to “clean up” the appearance when the batch file is run

© 2007 The McGraw-Hill Companies, Inc. All rights reserved SET and PATH Commands SET will display the list of settings that Windows loads by default Programs (and batch files) are run from the location where the prompt is –If the program is not located in the current folder, you receive an error message –To tell your command to look in other places, use the PATH command PATH by itself lists the current list of places to look for a program PATH= location; location; location; … will add locations

© 2007 The McGraw-Hill Companies, Inc. All rights reserved Beyond A+

© 2007 The McGraw-Hill Companies, Inc. All rights reserved Using Special Keys F1 function key brings back the previous command one letter at a time F3 function key brings back the entire command at once The DOSKEY command stores a list of all previously typed commands and can be accessed by using the up arrow key –Type DOSKEY –Windows XP/2000 automatically starts the program

© 2007 The McGraw-Hill Companies, Inc. All rights reserved COMPACT Command COMPACT –Displays or alters the compression state of files –compact /c

© 2007 The McGraw-Hill Companies, Inc. All rights reserved CIPHER Command CIPHER –Displays or alters the encryption state of files –/e specifies encryption operation –/a says to apply it to the files as well as the directory

© 2007 The McGraw-Hill Companies, Inc. All rights reserved