FILES  A file is a collection of related information  Files are kept in directories on a disk.

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.
Understanding the Boot Process and Command Line
Lesson 4 0x Operating Systems.
Operating System Type of Operating System
2 © 2004, Cisco Systems, Inc. All rights reserved. IT Essentials I v. 3 Module 4 Operating System Fundamentals.
Drives, Directories and Files. A computer file is a block of arbitrary information, or resource for storing information. Computer files can be considered.
A+ Guide to Software, 4e Chapter 6 Windows 9x/Me Commands and Startup Disk.
Chapter 3 Understanding the Boot Process and Command Line.
Disk Operating System (DOS)
© 2007 The McGraw-Hill Companies, Inc. All rights reserved Working with the Command- Line Interface Chapter 14.
Micro Op SYS (DOS) Chapters 1, 2, 3, 5, 6, 7. 2 Hardware Four Categories –CPU (Central Processing Unit) –Primary Storage (RAM) –Input/Output Devices Keyboard.
Working in DOS DOS is a true operating system
Operating System Commands. Commands External / internal command In MS-DOS there are two types of commands. An Internal command, which is a command embedded.
Operating System Fundamentals
Command Line Interface
Or CMD/BATCH.  Title this comand makes the cmd prompt’s title whatever you would like it to be.
Comandos Windows. ASSOC - Displays or modifies file extension associations.
© 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.
Department of Computer Science.  Operating System is a set of software that controls and manages hardware and basic system operation of a computer. 
Ch 71 Using ATTRIB, SUBST, XCOPY, DOSKEY, and the Text Editor.
1 Partitioning a Hard Drive ©Richard Goldman Revised January 8, 2001 Revised December 9, 2002.
System Software. BIOS Basic Input Output System A kind of ROM Execute routines Checking RAM, detecting hard disk, floppy disk, CDROM, … etc.
By Umesh ks. Dos is a single user operating system. Its support the all operating system wizards Support the disk scheduling. File management Network.
Computer Systems Week 10: File Organisation Alma Whitfield.
1. 2 Disk Operating System (DOS) Finding DOS and Understanding its Strengths and Weaknesses Installing DOS How the FAT File System Works Working with.
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.
DOS Commands What is a command Types of DOS Commands Basic Terms
Lesson 7-Creating and Changing Directories. Overview Using directories to create order. Managing files in directories. Using pathnames to manage files.
Topics Introduction Hardware and Software How Computers Store Data
Operating System Basics Chapter 1 Release 16/07/20 09 powered by dj.
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
Ch Review1 Review Chapter Microcomputer Systems Hardware, Software, and the Operating System.
Ch 21 Command Syntax Using the DIR Command with Parameters and Wildcards.
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.
Computer Troubleshooting Basics. Illegal Operations Memory conflicts (bad memory?) Dirty CD or corrupt files on a floppy Highly fragmented hard drive.
CPSC Pascal Brent M. Dingle Texas A&M University Chapter 1.
Getting Started Additional information. Important DOS Commands Getting Started dirlists disk directories verdisplays OS version clsclear command prompt.
The Operating System ICS3M.  The operating system (OS) provides a consistent environment for other software programs to execute commands.  It gives.
BY PREETHI DOS INTERNAL COMMANDS. INTERNAL COMMANDS  DOS commands that are present in the COMMAND.COM file and are automatically loaded into RAM when.
OPERAING SYSTEM 1 CA-210 WINDOWS XP. CHAPTER 1 OPERATING SYSTEM FUNDAMENTALS.
Common DOS Commands Additional information. Important DOS Concepts Common DOS Commands  Why format a disk?  Partitioning and Formatting disks  Structure.
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.
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:
I T Essentials I Chapter 5 JEOPARDY Installing & UpgradingComputerBasicsErrorsServicePotpourri
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.
IT Essentials 1 v3 Module 4 JEOPARDY IT Essentials 1 RouterModesWANEncapsulationWANServicesRouterBasicsRouterCommands RouterModesWANEncapsulationWANServicesRouterBasicsRouterCommands.
A+ Guide to Managing and Maintaining your PC, 6e Chapter 15 Windows 9x/Me Commands and Startup Disk.
Ahmadu Bello Computer Repair Training Course 6: Use of Software By Suprix Technology Nigeria ( A.B.U repair computer training.
A+ Guide to Software Managing, Maintaining and Troubleshooting THIRD EDITION Chapter 3 Understanding the Boot Process and Command Line.
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)
EXTERNAL COMMANDS 1) ATTRIB(Attribute) :- This command allows the user to change the properties/attributes of a specific file. Using attrib command ,
DOS MS-DOS stands for Microsoft Disk Operating System. MS-DOS controls the computer’s hardware and provides an environment for programs to run. This.
Introduction To MS-DOS
Lecture-7 Introduction to DOS. Introduction to UNIX/LINUX OS.
Topics Introduction Hardware and Software How Computers Store Data
Introduction to Operating Systems
Chapter 6 Windows 9x/Me Commands and Startup Disk
Chapter Overview Operating System Basics
Presentation transcript:

FILES  A file is a collection of related information  Files are kept in directories on a disk.

FILES  The two system areas on a disk  Directories  File Allocation Table(FAT) -They enable MS_DOS to recognize and organize the files on your disk. -FAT is copied onto a new disk when you format it with the MS_DOS format command, and one empty directory is created, called the root directory.

File Allocation Table  A table that the operating system uses to locate files on a disk.  Due to fragmentation, a file may be divided into many sections that are scattered around the disk.  The FAT keeps track of all these pieces. In DOS systems, FATs are stored just after the boot sector.

File Allocation Table  A file system to control how files & folders are stored on your hard disk.  Files are stored in small clusters.  Smaller the cluster, more efficiently the disk stores information.  Cluster depends on the size of the partition, partition depends on the file system used.

File Allocation Table  Partitions larger than 2GB are not supported with FAT16.  Partitions smaller than 512MB are not supported with FAT32.

File Allocation Table Advantages of FAT32 file system over FAT16:  Allows programs to open more quickly-36% faster.  Uses smaller cluster size, hence more efficient use of disk space-28% more disk space.  Allows hard disk upto 2TB to be formatted as a single drive-no need to partition the hard disk.  Can relocate the root directory and use backup copies of FAT-computer less vulnerable to crashes.

Files  For DOS to run an application file, it has to be one of three kinds:.COM.EXE.BAT COM - A file in machine language, must be less than 64K in size. EXE - A file in machine language, can be larger than 64K. EXE files also have information at the beginning of the file that tells DOS what type of file it is and how to load and run it. BAT - A batch file that is written with a text editor and is in ASCII text format, it contains DOS commands that are executed in batch mode, which means that each command is executed in sequence until the file ends.

DIRECTORIES  Directories are a way of dividing your files into convenient groups of files.  Directories also contain information on the size of files, and the dates they were created and updated.

DIRECTORIES  Directories can also contain subdirectories.  A multilevel directory structure can be thought of as a tree structure, with the root at the top.

MULTILEVEL DIRECTORY STRUCTURE ROOT DIR FILE C:\>

PATHS  When you use multilevel directories, you must tell MS-DOS where the files are located in the directory structure.  This can be done by giving MS-DOS a pathname to the file.

PATHNAME  a pathname is a sequence of directory names followed by a filename, each separated from the previous one by a backslash.  dir_name\dir_name\file_name

USING DIRECTORIES  A:\USER\JOE :09a :09a. working directory \USER\JOE..Parent directory\USER

COMMANDS  A command is a way of communicating with the computer.

COMMAND OPTIONS  Used to give MS-DOS commands extra information.  The format of all MS-DOS commands: command [options….]

COMMAND OPTIONS  Where options can be one of the following:  drive  filename  pathname  switches - options which control MS-DOS commands.  arguments- provide more information to MS-DOS commands. Eg. ON or OFF

INPUT AND OUTPUT  MS-DOS always assumes that input comes from the keyboard and output goes to the screen.  However, the flow of command input and output can be redirected.  Input can come from a file rather than a keyboard, and output can go to a file or to a line printer instead of to the screen.  Pipes can be created that allow output from one command to become the input to another,

REDIRECTION  dir>newfiles - puts the directory listing in the file new files by overwriting it.  dir>>newfiles - appends the directory listing to an existing file named newfiles.  Sort list1 - sorts the filename names and sends the sorted output to a file named list1

FILTERS  A filter is a command that reads your input, transforms it in some way, and then outputs it, usually to your screen or to a file.  FIND - searches for some text in a file.  MORE - Displays text one screenful at a time.  SORT - sorts text

COMMAND PIPING  To give more than one command at a time, you can pipe commands to MS-DOS.  Dir|sort|more  dir|sort>direc.fil

INTERNAL COMMANDS  The way you do anything in DOS is through commands that the computer understands.  A command may cause the computer to take some action, or to execute some file.

INTERNAL COMMANDS  COMMAND.COM is loaded during the boot process, which means that COMMAND.COM is resident in memory at all times, and the commands that it understands are available to the user at all times.

INTERNAL COMMANDS  If you have created a DOS boot disk, it will contain three files,  IO.SYS  MSDOS.SYS  COMMAND.COM. HIDDEN

INTERNAL COMMANDS  The third file, COMMAND.COM, must be in the root directory. Since it is on the boot disk (you cannot boot without it), that means that the commands it contains are available to you when you boot from this disk.

INTERNAL COMMANDS  The internal commands contained within COMMAND.COM are the commands that are used in writing batch files.  The batch file will not run properly if it cannot find COMMAND.COM.

DOS Operating System  The interface is Command Line Interface or Character User Interface No mouse,no menus, no graphical components.

DOS Operating System  Text commands were entered from the keyboard, and the computer's response appeared as text on the monitor.

DOS Operating System  DOS controlled some aspects of the computer hardware, particularly disk access and basic CPU operations, but it was still common to need to configure the video display, sound card, printer, etc. for each application that would use them.

DOS Operating System  DOS a single-tasking operating system, i.e only one program could be run at a time.

INTERNAL COMMANDS  Some Internal Commands contained within the COMMAND.COM command interpreter: break cd chdir cls copy date del dir echo erase exit md mkdir move path pause prompt rd rem ren rename rmdir type ver vol

EXTERNAL COMMANDS Not all DOS commands are understood by COMMAND.COM. There are commands called external commands that reside as separate files on your hard drive, and must be called specifically for you to use them.

EXTERNAL COMMANDS If you look in your DOS directory on your hard drive (usually C:\DOS), you will see these external commands represented by files that are either *.EXE or *.COM files.

EXTERNAL COMMANDS  Some commands do not need to be loaded into memory every time you boot, because they are used infrequently, or possibly because they are large and take up a lot of space.  These commands are stored as separate files in your C:\DOS directory. (Usually; C:\DOS is the normal default, but during the installation it is possible to specify a different directory.)

EXTERNAL COMMANDS  Some External Commands append assign attrib chkdsk Compdeltree diskcomp diskcopy Doskeyeditfc fdisk find format graphics help label moremsbackup msav print replace restore scandisk Sortsystree undelete unformat xcopy

THE PATH The Command Line  Everything you do in DOS is done from the command line. The command line begins with a prompt, which is the computer's way of saying "I'm ready. Give me something to do." The prompt usually looks something like this: C:\>

THE PATH  From the command line you can do two things: you can run an internal command (one that is contained in COMMAND.COM), or you can run a program.  External commands are programs, which are found in separate files in your DOS directory, so running programs includes running external commands, but it also means running the applications software you use to do things with your computer.  You can also run a batch file, but in that case all you are doing is running a series of commands or programs that are listed in the batch file.

THE PATH  If you enter a name that is not recognized by DOS as either an internal command or a program, you get the error message "Bad command or file name"

THE PATH  When you enter the name of an executable application file, DOS has to find it. DOS looks for the file in a specific hierarchy of locations:  The active directory of the current drive (called the working directory). If you are in the directory C:\DOS, and you type in the name FOOBAR.EXE, DOS will logically enough look in C:\DOS for such a file. If DOS finds this file, it will run it.

THE PATH  If DOS does not find this file, it will consult something called the PATH. This is a list of directories that DOS has been instructed to check whenever it cannot find a file in the current active directory

THE PATH  You can see what the path is for your computer at any time by using the PATH command. Just type "path" at the DOS prompt, and you will get back your path. Here is what I got on one of my machines: C:\>path

THE PATH  that is set in the AUTOEXEC.BAT. This is a batch file that automatically executes (hence the name) when you boot your computer.  You can edit this file with the DOS program EDIT. To see or edit the contents of this file you need to enter the following command: C:\>edit autoexec.bat