Common DOS Commands Additional information. Important DOS Concepts Common DOS Commands  Why format a disk?  Partitioning and Formatting disks  Structure.

Slides:



Advertisements
Similar presentations
DOS commands.
Advertisements

Chapter 3 Disks and Formatting Ch 3.
A+ Guide to Software, 4e Chapter 6 Windows 9x/Me Commands and Startup Disk.
Chapter 3 Understanding the Boot Process and Command Line.
FILE SYSTEMS. File Names 1 to 255 characters in length  This includes the path You can use uppercase and lowercase (case-aware, but not case-sensitive)
Chapter 7: Configuring Server Storage, Backup, and Performance Options
© 2007 The McGraw-Hill Companies, Inc. All rights reserved Working with the Command- Line Interface Chapter 14.
Lecture 10: The FAT, VFAT, and NTFS Filesystems 6/17/2003 CSCE 590 Summer 2003.
Connecting with Computer Science, 2e
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.
Chapter 7: Configuring Disks. 2/24 Objectives Learn about disk and file system configuration in Vista Learn how to manage storage Learn about the additional.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment Chapter 7: Advanced File System Management.
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.
FILES  A file is a collection of related information  Files are kept in directories on a disk.
Command Prompt Chapter 7 Using ATTRIB, SUBST, XCOPY, DOSKEY, and the MS-DOS Text Editor Richard Goldman ©January 31, 2000.
70-293: MCSE Guide to Planning a Microsoft Windows Server 2003 Network, Enhanced Chapter 14: Problem Recovery.
MCSE Guide to Microsoft Windows 7 Chapter 5 Managing File Systems.
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.
Lesson 7-Creating Network File Systems. Overview Understand Novell’s network file system (NFS). Understand Windows file storage. Utilization of NFS.
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.
System Software. BIOS Basic Input Output System A kind of ROM Execute routines Checking RAM, detecting hard disk, floppy disk, CDROM, … etc.
Operating Systems and File Management Chapter 4. 4 Chapter 4: Operating Systems and File Management2 Chapter Contents  Section A: Operating System Basics.
Objectives Learn what a file system does
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.
Presented to: Sir Ahmad Karim
®® Microsoft Windows 7 for Power Users Tutorial 5 Comparing Windows 7 File Systems.
Disk Structures. CTEC 1102 Formatting a Disk Two parts to formatting a disk:  Low-level (physical) formatting  High level (logical) formatting Low-level.
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
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.
Using Hard Drives Additional information.  Hierarchical Filing Systems  Why Organize a Hard Disk?  Relative and Absolute Paths  Subdirectory Markers.
Fall 2011 Nassau Community College ITE153 – Operating Systems Session 14 Windows XP Professional 1.
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.
Window NT File System JianJing Cao (#98284).
Bits, Bytes, Files, Hard Drives. Bits, Bytes, Letters and Words ● Bit – single piece of information ● Either a 0 or a 1 ● Byte – 8 bits of information.
PC Maintenance: Preparing for A+ Certification Chapter 10: Introduction to Disk Storage.
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.
Managing Disks and Drives Chapter 13 powered by dj.
The disk surface is divided into tracks. into tracks. 1.
Getting Started Additional information. Important DOS Commands Getting Started dirlists disk directories verdisplays OS version clsclear command prompt.
Chapter 3 Partitioning Drives using NTFS and FAT32 Prepared by: Khurram N. Shamsi.
A+ Guide to Managing and Maintaining Your PC Fifth Edition Chapter 7 Floppy Drives.
Windows Vista Inside Out Chapter 28 - Chapter 28 - Managing Disks and Drives Last modified
OPERAING SYSTEM 1 CA-210 WINDOWS XP. CHAPTER 1 OPERATING SYSTEM FUNDAMENTALS.
MCSE Guide to Microsoft Windows Vista Professional Chapter 5 Managing File Systems.
Operating System Concepts and Techniques Lecture 18 Information management-2* FFS, UFS2, NTFS M. Naghibzadeh Reference M. Naghibzadeh, Operating System.
1 Floppy Drive Formatting ©Richard Goldman February, 2001.
Lab Assignment 2 Common DOS Commands. Submitting the LABS for grading Subject line of message: CTEC 110 WA Lab 2 Assignments Attachment file names:
FILE SYSTEMS. Presented to: Sir. Ahmad Kareem Presented by: Sadia Rasheed Bsit
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.
MCSE GUIDE TO MICROSOFT WINDOWS 7 Chapter 5 Managing File Systems.
NTFS Filing System CHAPTER 9. New Technology File System (NTFS) Started with Window NT in 1993, Windows XP, 2000, Server 2003, 2008, and Window 7 also.
Digital Forensics Dr. Bhavani Thuraisingham The University of Texas at Dallas Lecture #8 File Systems September 22, 2008.
Hands-On Microsoft Windows Server 2008 Chapter 7 Configuring and Managing Data Storage.
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.
DIT314 ~ Client Operating System & Administration CHAPTER 7 MANAGING DISKS AND FILE SYSTEM Prepared By : Suraya Alias.
EXTERNAL COMMANDS 1) ATTRIB(Attribute) :- This command allows the user to change the properties/attributes of a specific file. Using attrib command ,
Disks and Formatting Ch 3.
INTERNAL COMMANDS CLS(Clear Screen):-
Windows XP File Systems
Chapter 6 Using DEL, REN, MOVE, and RD /S Ch 6.
Partitioning & Formatting
Command Prompt Using DEL, DELTREE, RENAME and MOVE
Presentation transcript:

Common DOS Commands Additional information

Important DOS Concepts Common DOS Commands  Why format a disk?  Partitioning and Formatting disks  Structure of a disk Physical structure of a disk Logical structure of a disk File System Formats  Backing up Files  Overwriting Files  Making Exact Copies of Files Chapter 2 adds (42 slides)CTEC 1102

Important DOS Commands Common DOS Commands  FORMAT  LABEL  VOL  MOVE  DIR  CHKDSK  TYPE  COPY  DEL  RENAME Chapter 2 adds (42 slides)CTEC 1103

Why Format a Disk?  Disks used for: Permanent storage of data and programs Distributing data from one computer to another Making copies  Formatting (initializing) the disk: Process of preparing disk so that it is compatible with an operating system All disks (including hard disks) can be formatted. All information on disk will be erased CTEC 1104Chapter 2 adds (42 slides)

Partitioning and Formatting Disks  Hard disks must be: Partitioned Formatted with file system  Types of disk storage configuration: Basic disks Dynamic disks CTEC 1105Chapter 2 adds (42 slides)

Partitioning and Formatting Disks  Windows supports four file systems: NTFS Plus three FAT file systems –FAT12 –FAT16 –FAT32 CTEC 1106Chapter 2 adds (42 slides)

Structure of a Disk  Two parts to formatting a disk: Low-level (physical) formatting High level (logical) formatting  Low-level (physical) formatting: Sequentially numbers tracks and sectors Identifies each track and sector Disk is physically prepared to hold data  High-level (logical) formatting: Determines how OS uses a disk Builds structure to keep track of location of files Done so files can be stored and retrieved. CTEC 1107Chapter 2 adds (42 slides)

Structure of a Disk Windows will monitor the status of all data sectors One or more sectors are combined into logical units called clusters or allocation units CTEC 1108Chapter 2 adds (42 slides)

Physical Structure Track, Sector, & Cluster CTEC 1109Chapter 2 adds (42 slides)

Logical Structure Master Boot Record & Boot Sector  Master boot record (MBR): First part of hard disk Locates bootable partition of hard disk and gives control over to it  Boot sector: First sector on logical drive Has table of drive’s characteristics Has bootstrap loader program All disks (including non-system disks) have a boot sector. CTEC 11010Chapter 2 adds (42 slides)

Logical Structure CTEC 11011Chapter 2 adds (42 slides)

Logical Structure FAT and the Root Directory  FAT tracks “where” data is on the disk  FAT – File Allocation Table A table that tracks the physical clusters  Root directory tracks “what” is on the disk.  Root Directory: A table that tracks file information CTEC 11012Chapter 2 adds (42 slides)

File System Formats FAT16, VFAT & FAT32  FAT essential for: Managing data Following trail of clusters that make up a file  VFAT maintains backwards compatibility and accommodates long file names  FAT32: Enhancement of FAT file system Introduced to overcome limitations of VFAT CTEC 11013Chapter 2 adds (42 slides)

FAT32  FAT32: Movable Root Directory Can be located anywhere on hard disk NOTE: For disk security, performance, and efficiency use the NTFS file system CTEC 11014Chapter 2 adds (42 slides)

NTFS  Advantages of NTFS: Secure file system Efficient storage of data Faster file access Better data recovery Can compress files/assign disk quotas Encryption of files CTEC 11015Chapter 2 adds (42 slides)

NTFS  NTFS: Uses FAT cluster scheme for allocating data. Has less overhead. CTEC 11016Chapter 2 adds (42 slides)

Master File Table (MFT)  Master File Table (MFT): Database of all files in system Used by NTFS to track all files and directories in a volume Dynamic MFT is different from FAT. CTEC 11017Chapter 2 adds (42 slides)

File System Format Notes  You can convert FAT to FAT32/NTFS  You CANNOT convert FAT32/NTFS to FAT  Make use of the NTFS file system for disk security, performance, and efficiency CTEC 11018Chapter 2 adds (42 slides)

Backing Up Files  Application programs can usually be reinstalled from original disks.  You may want to take snapshots or backup the configuration of your programs for quicker recovery  Always keep track of any special licensing tricks you need to do 19Chapter 2 adds (42 slides)CTEC 110

 DOS has three ways to back up data files: DISKCOPY – (floppy drives) COPY XCOPY 20Chapter 2 adds (42 slides)CTEC 110 Backing Up Files

 Develop a regular backup routine. You can use “tape backup” You can use writable CDs You can use “external drives” 21Chapter 2 adds (42 slides)CTEC 110 Backing Up Files

 Notes on the Backup disk Keep current Have two or more Check your backups with restore regularly  Some organizations need to recreate records Need archival backup Need transaction history 22Chapter 2 adds (42 slides)CTEC 110 Backing Up Files

 Do regular backups: Back up files that have changed or are new  Reasons for copying files: Copy files from one disk to another Making changes on existing file Create backup copy of various data files 23Chapter 2 adds (42 slides)CTEC 110 Backing Up Files

Overwriting Files The file must have a unique name on same disk and subdirectory Old data replaced by new data Overwrite files on regular basis as you want to backup files Windows will inform the user that an overwrite will occur 24Chapter 2 adds (42 slides)CTEC 110

 Concatenation is creating another file by combining the contents of two or more text (ASCII) files  Concatenation should never be done with program files, or with data files generated by programs  To avoid accidental concatenation of files, read all messages DOS displays on the screen COPY FILE1 + FILE2 NEWFILE COPY *.TXT ALLFILES 25Chapter 2 adds (42 slides)CTEC 110 Overwriting Files

Exact Copy of Files  You can have two files with identical contents on same disk  However there are some restrictions… For the same name Use different subdirectories For the same subdirectory Use different file names 26Chapter 2 adds (42 slides)CTEC 110

A Review on Some Commands CTEC FORMATformats drive LABELlabels drive VOLlist volume label on drive COPYcopies files XCOPYcopies files TYPEdisplay the contents of files DELdeletes files RENrename files MOVEmove files DATEset the date TIMEset the time UNDELETEundelete a file Chapter 2 adds (42 slides)

The FORMAT command  The FORMAT command syntax: FORMAT volume [/FS:file-system] [/V:label] [/Q] [/A:size] [/C] [/X] [/P:passes] [/S:state] FORMAT volume [/V:label] [/Q] [/F:size] [/P:passes] FORMAT volume [/V:label] [/Q] [/T:tracks /N:sectors] [/P:passes] FORMAT volume [/V:label] [/Q] [/P:passes] FORMAT volume [/Q] Chapter 2 adds (42 slides)CTEC 11028

Use /V: switch for the volume label No spaces between the colon and label Use /Q switch for a quick format Fast way to clear previously formatted disks Works like the usual FORMAT command Skips low level formatting Clears the FAT and root tables Does not check for bad sectors  Examples: FORMAT A: /V:FLOPPY1 FORMAT C: /Q FORMAT Z: /FS:FAT FORMAT U: /FS:FAT32 CTEC 11029Chapter 2 adds (42 slides) The FORMAT command

The LABEL Command  The LABEL command syntax: LABEL [drive:] [label] Creates, changes or deletes the volume label of a disk  Example: LABEL A: OLDNAME LABEL A: NEWNAME LABEL A: Input volume label - Up to 11 characters. Press ENTER only to delete label. CTEC 11030Chapter 2 adds (42 slides)

The VOL Command  The VOL command syntax: VOL [drive:] Displays the disk volume label, if any  Example: VOL Z: Volume in drive Z is USB_DISK_02 Volume Serial Number is 64B8-54F3 CTEC 11031Chapter 2 adds (42 slides)

The COPY Command  The COPY command syntax: COPY [/D] [/V] [/N] [/Y | /-Y] [/Z] [/L] [/A | /B ] source [/A | /B] [+ source [/A | /B] [+...]] [destination [/A | /B]] Copies one or more files to another location Can be used to combine file contents  Examples: copy c:\Windows\System32\cmd.exe c:\ 32Chapter 2 adds (42 slides)CTEC 110

The XCOPY Command  The XCOPY command syntax: XCOPY source [destination] [/A | /M] [/D[:date]] [/P] [/S [/E]] [/V] [/W] [/C] [/I] [/Q] [/F] [/L] [/G] [/H] [/R] [/T] [/U] [/K] [/N] [/O] [/X] [/Y] [/-Y] [/Z] [/B] [/EXCLUDE:file1[+file2][+file3]...] Has the capability of moving files, directories, and even whole drives from one location to another The /S switch copies subdirectories and files The /E switch copies empty subdirectories  Examples: XCOPY c: a: /s XCOPY n:\*.* o:\ /e Chapter 2 adds (42 slides)CTEC 11033

The TYPE Command  The TYPE command syntax: TYPE [drive:] [path] filename Internal command Opens/displays contents of file on screen Must be a text/ASCII file for the display to be meaningful and readable  Example: TYPE z:\ctec110\breakusb.bat TYPE o:\name.bat 34Chapter 2 adds (42 slides)CTEC 110

The DEL Command  The DEL command syntax: DEL [/P] [/F] [/S] [/Q] [/A [[:] attributes]] [drive:] [path] filename ERASE [/P] [/F] [/S] [/Q] [/A [[:] attributes]] [drive:] [path] filename Used to remove files from the disk Files are generally not recoverable The /P switch will ask to confirm deletion The /S switch will delete files in the subdirectories  Examples: DEL TEST.TXT DEL /p c:\Part* DEL /s p:\*.* (Directories will require confirmation) 35Chapter 2 adds (42 slides)CTEC 110

The RENAME command  The RENAME command syntax: RENAME [drive:][path]filename1 filename2 REN [drive:][path]filename1 filename2 Renames a file or files You cannot specify a new drive or path for your destination file  Examples: REN test testing REN testing test 36Chapter 2 adds (42 slides)CTEC 110

The MOVE command  The MOVE command syntax: MOVE [/Y | /-Y] [drive:][path]filename1[,...] destination MOVE [/Y | /-Y] [drive:][path]dirname1 dirname2 Can be used to rename a file or directory  Examples: move c:\windows\web c:\web2 move c:\web2 c:\web3 Chapter 2 adds (42 slides)37CTEC 110

 There are some restrictions… When moving group of files you cannot change the names When moving an individual file/subdirectory you can change the name You can move files/directories from one directory to another and from one drive to another 38Chapter 2 adds (42 slides)CTEC 110 The MOVE command

The DATE command  The DATE command syntax: DATE [/T | date] Displays or sets the date Requires Administrator rights to change Type DATE without parameters to display the current date setting and to prompt for a new one Press ENTER to keep the same date Use /T switch to skip the prompting for a new date  Examples: DATE DATE /T DATE (Set the date to May 22 nd, 2013) DATE DATE 05/22/13 39Chapter 2 adds (42 slides)CTEC 110

The TIME command  The TIME command syntax: TIME [/T | time] Displays or sets the system time Requires Administrator rights to change Type TIME with no parameters to display the current time setting and a prompt for a new one Press ENTER to keep the same time Use /T switch to skip the prompting for a new time  Examples: TIME TIME /T TIME 15:22 (Set the time to 3:22 pm) 40Chapter 2 adds (42 slides)CTEC 110

The UNDELETE command  The UNDELETE command syntax: UNDELETE [d:][path][filename] [/DT|/DS|/DOS] UNDELETE [/list|/all|/purge[d:]|/status|/load|/U|/S[d:]|/Td:[-entries]] Has been removed from current Windows OS versions Restores files deleted with the DELETE command Removes the first character of the file Requires user to supply first character of the file upon undelete  Examples: UNDELETE \letters\*.* /all (Recover all files in the letters directory) UNDELETE /dt (Recover files in current directory using the delete-tracking file) 41Chapter 2 adds (42 slides)CTEC 110

END of Addition Information  HOMEWORK Lab 2 DOS Quiz 2 Chapter 2 adds (42 slides)CTEC 11042