Using Hard Drives Additional information.  Hierarchical Filing Systems  Why Organize a Hard Disk?  Relative and Absolute Paths  Subdirectory Markers.

Slides:



Advertisements
Similar presentations
DOS commands.
Advertisements

A+ Guide to Software, 4e Chapter 6 Windows 9x/Me Commands and Startup Disk.
Chapter 3 Understanding the Boot Process and Command Line.
1 Chapter 11: File-System Interface  File Concept  Access Methods  Directory Structure  File System Mounting  File Sharing  Protection  Chapter.
Exploring the UNIX File System and File Security
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.
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.
Hands-On Microsoft Windows Server 2003 Administration Chapter 5 Administering File Resources.
70-270, MCSE/MCSA Guide to Installing and Managing Microsoft Windows XP Professional and Windows Server 2003 Chapter Nine Managing File System Access.
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.
Command Console Tutorial BCIS 3680 Enterprise Programming.
Command Prompt Chapter 7 Using ATTRIB, SUBST, XCOPY, DOSKEY, and the MS-DOS Text Editor Richard Goldman ©January 31, 2000.
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.
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.
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.
1 THE UNIX FILE SYSTEM By Chokechai Chuensukanant ID COSC 513 Operating System.
The file structure and related utilities CS240 Computer Science II.
Project 3 File, Document, Folder Management, Windows XP Explorer Windows XP Service Pack 2 Edition Comprehensive Concepts and Techniques.
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.
Chapter Three Designing The File System. Chapter Objectives Describe the components of the NetWare file system Describe the purpose of each NetWare-created.
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.
Linux+ Guide to Linux Certification, Second Edition
Ch 41 Program Files, Data Files, and Subdirectories.
Module 4 Managing Access to Resources in Active Directory ® Domain Services.
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.
Getting Started Additional information. Important DOS Commands Getting Started dirlists disk directories verdisplays OS version clsclear command prompt.
Chapter Two Exploring the UNIX File System and File Security.
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.
MCSE Guide to Microsoft Windows Vista Professional Chapter 5 Managing File Systems.
Linux+ Guide to Linux Certification, Third Edition
Linux+ Guide to Linux Certification, Third Edition
Λειτουργικά Συστήματα – Lab2 Γιάννης Πετράκης. Directory Navigation and Control  The Unix file system is set up like a tree branching out from the root.
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:
1 Introduction to NTFS Permissions Assign NTFS permissions to specify Which users and groups can gain access to folders and files What they can do with.
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.
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.
Guide to Parallel Operating Systems with Windows 7 and Linux Chapter 6 Directory Commands.
Managing Data by Using NTFS. Overview Introduction to NTFS Permissions How Windows 2000 Applies NTFS Permissions Using NTFS Permissions Using Special.
Linux Tutorial Lesson Two *Getting Help in Linux *Data movement and manipulation *Relative and Absolute path *Processes Note: see chapter 1,2,3 from Linux.
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.
11 SUPPORTING WINDOWS XP FILE AND FOLDER ACCESS Chapter 5.
Agenda The Linux File System (chapter 4 in text) Directory Structures / Navigation Terminology File Naming Rules Relative vs Absolute pathnames Unix Commands:
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment, Enhanced Chapter 7: Advanced File System Management.
Introduction to NTFS Permissions
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
Chapter 6 Using DEL, REN, MOVE, and RD /S Ch 6.
Presentation transcript:

Using Hard Drives Additional information

 Hierarchical Filing Systems  Why Organize a Hard Disk?  Relative and Absolute Paths  Subdirectory Markers  The Current & Default Drive and Directory  Understanding the PATH Command  The PROMPT Command Metastrings Chapter 3 adds (50 slides)CTEC 1102 Important DOS Concepts Using Hard Drives

Important DOS Commands Using Hard Drives treeGraphically displays the folder structure of a drive or path dirDisplays a list of files and subdirectories in a directory mkdir or mdCreates a directory rmdir or rdRemoves (deletes) a directory chdir or cdDisplays the name of or changes the current directory moveMoves files and renames files and directories path Displays or sets a search path for executable files promptChanges the cmd.exe command prompt attribDisplays or changes file attributes (FAT) icaclsDisplays or modifies discretionary access control lists (DACLs) on specified files, and applies stored DACLs to files in specified directories. (NTFS) Chapter 3 adds (50 slides)CTEC 1103

Hierarchical Filing Systems  Root directory: Created when disk is formatted Represented by (\) - the backslash Acts as an index to disk Chapter 3 adds (50 slides)CTEC 1104

 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 Chapter 3 adds (50 slides)CTEC 1105 Hierarchical Filing Systems

 Subdirectories: Important part of organizing disk Can contain subdirectories No limit in number of files  Subdirectory structure: Looks like inverted family tree Root directory At top of tree Point of entry in hierarchical structure Chapter 3 adds (50 slides)CTEC 1106 Hierarchical Filing Systems

Chapter 3 adds (50 slides)CTEC 1107 Hierarchical Filing Systems

Chapter 3 adds (50 slides)CTEC 1108 Hierarchical Filing Systems

9Chapter 3 adds (50 slides)CTEC 110 Hierarchical Filing Systems

 General comments: Only one root directory point of entry Directories Have only one parent directory Can have any # of child directories Chapter 3 adds (50 slides)CTEC Hierarchical Filing Systems

 General comments: Each subdirectory Dependent upon structure above it Knows only its parents and children User can name subdirectories but not the root directory Chapter 3 adds (50 slides)CTEC 11011

Why Organize a Hard Disk?  Windows OS is installed, certain folders are created including: Windows Program Files Documents and Settings My Documents Chapter 3 adds (50 slides)CTEC 11012

Why Organize a Hard Disk?  Need to determine: How program is installed Where program is installed  Can choose own installation location. Presents problems when asking for technical support. Chapter 3 adds (50 slides)CTEC 11013

Why Organize a Hard Disk?  Part of good organizational scheme is to create meaningful names for data files Need naming conventions Long file names problematic Use of spaces can create problems Similar file names problematic  Organize disk by way you work.  Application programs are tools. Chapter 3 adds (50 slides)CTEC 11014

Example Programs & Data Files  The WUGXP directory contains: The subdirectory “Games” which contains: The directory “BOG2” which contains: The application program called “BOG” BOG.EXE is the application program. BOG.DAT is the data file. Chapter 3 adds (50 slides)CTEC 11015

Relative path: Route from where you are to where you want to go Can move to directory above it and beneath it Absolute path: Direct route from root directory to the subdirectory of interest Is always absolutely correct Chapter 3 adds (50 slides)CTEC 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 either start from the root or give relative path  The root directory is the parent or common “ancestor” of all directories. Chapter 3 adds (50 slides)CTEC Relative and Absolute Paths

Chapter 3 adds (50 slides)CTEC 11018

Relative and Absolute Paths  Absolute path examples: cd p:\ctec110 cd p:\ctec110\homework\movies  Relative path examples: cd.. cd ctec110 cd..\phone\personal cd..\..\.. Chapter 3 adds (50 slides)CTEC 11019

Subdirectory Markers  Single. (one period) Specifies the current directory  Double.. (two periods) Specifies the parent directory of current subdirectory  Can use.. (two periods) To move up one directory position You cannot use this shortcut symbol to move down in the directory hierarchy Chapter 3 adds (50 slides)CTEC 11020

The Current and Default Drive and Directory  Using the CD command with no parameters will display the present current and default directory  Example: CD [drive:][path] The CD command does not use spaces as delimiters Chapter 3 adds (50 slides)CTEC 11021

 When Z: \ > is displayed on screen it is the: Prompt Default drive and directory Current drive and directory  The default drive can be changed  The default directory can be changed  DOS Command line is not case sensitive Chapter 3 adds (50 slides)CTEC The Current and Default Drive and Directory

The TREE Command  The TREE command syntax: TREE [drive:] [path] [/F] [/A] Used to view Disk Structures Presents a graphic representation of the disk structure  Examples: Shows the disk structure hierarchy TREE G: TREE N: TREE O: TREE P: TREE C: Chapter 3 adds (50 slides)CTEC 11023

The DIR Command  The DIR command syntax: DIR [drive:][path][filename] [/A[[:]attributes]] [/B] [/C] [/D] [/L] [/N] [/O[[:]sortorder]] [/P] [/Q] [/R] [/S] [/T[[:]timefield]] [/W] [/X] [/4] Displays a list of files and subdirectories in a directory Has many options and can be used to search for files  Examples: DIR c:\Windows /w DIR c:\Windows /p DIR hosts /s DIR c:\Windows /a:d Chapter 3 adds (50 slides)CTEC 11024

The DIR Command  DIR /s /s Searches subdirectories  Try This… cd /d c:\Windows DIR hosts /s  Now change to the directory the hosts file is in (first entry) and look inside it type hosts Chapter 3 adds (50 slides)CTEC 11025

The MKDIR (MD) Command  The MD command syntax: MKDIR [drive:] path MD [drive:] path Formatting a disk will prepare it to hold files. Setting up subdirectories prepares the disk to hold logical groups of files 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.  Examples: Creates directories and subdirectories MD c:\sales MD c:\ctec110 MD p:\sales\old MD p:\sales\new Chapter 3 adds (50 slides)CTEC 11026

The RMDIR (RD) Command  The RD command syntax: RMDIR [/S] [/Q] [drive:]path RD [/S] [/Q] [drive:]path Removes (deletes) a directory The directory must be empty unless a switch is used  Examples: Deletes files, directories and subdirectories RD p:\files RD p:\history\europe RD p:\history\us Chapter 3 adds (50 slides)CTEC 11027

The RMDIR (RD) Command Used to remove directories Cannot remove Directories containing hidden or system files Directory you are presently in [Current Directory] Default subdirectory Root directory Cannot use with wildcards Chapter 3 adds (50 slides)CTEC 11028

 Without parameters: Removes only empty subdirectories One file at a time from the bottom up  With parameters: Can remove directory trees Can remove directories … with hidden or system files Can traverse the directory tree from the top down Chapter 3 adds (50 slides)CTEC The RMDIR (RD) Command

 RD with /S parameter: Deletes directory and contents … (subdirectories/files) with one command Removes a complete directory tree path  RD with /Q parameter: RD runs in quiet mode Useful, fast, powerful, and DANGEROUS! Chapter 3 adds (50 slides)CTEC The RMDIR (RD) Command

The CHDIR (CD) Command  The CD command syntax: CHDIR [/D] [drive:][path] CHDIR [..] CD [/D] [drive:][path] CD [..] Displays the name of or changes the current directory CD with no parameters will display the current and default directory CD followed by path name will change the current and default directory Current is what you see Default is what the drive is on The /D parameter will change the default drive and directory  Examples: cd cd z:\ctec110 cd /d c:\Windows Chapter 3 adds (50 slides)CTEC 11031

The MOVE Command  The MOVE command syntax: MOVE [/Y | /-Y] [drive:][path]filename1[,...] destination MOVE [/Y | /-Y] [drive:][path]dirname1 dirname2 Moves files and renames files and directories Can move one or more files Can rename a directory  Examples: MOVE text.txt p: (file move) MOVE p:text o:\Books (file move to directory) MOVE letter1,letter2 o:\memos (files moved to directory) MOVE o:\89memos o:\90memos (directory move) Chapter 3 adds (50 slides)CTEC 11032

The MOVE Command  MOVE command can: Move files to new location Rename files at the same time Rename directories/subdirectories Safe to move data files and data directories.  Moving program files and renaming program directories could cause programs to fail Chapter 3 adds (50 slides)CTEC 11033

The PATH Command  The PATH command syntax: PATH [[drive:] path [;…] [%PATH%]] PATH Displays or sets a search path for executable files Type PATH ; to clear all search-path settings and direct cmd.exe to search only in the current directory Type PATH without parameters to display the current path Including %PATH% in the new path setting causes the old path to be appended to the new setting.  Examples: path path o:;%path% path %path%;p: path ; Chapter 3 adds (50 slides)CTEC 11034

Understanding the PATH Command  PATH command: Locates/executes executable program files Searches Memory Current directory Subdirectories specified with PATH command Chapter 3 adds (50 slides)CTEC 11035

Understanding the PATH Command Chapter 3 adds (50 slides)CTEC 11036

The PROMPT Command  The PROMPT Command syntax: PROMPT [text] Changes the cmd.exe command prompt Has a number of Metastrings that can be used  Example: Prompt $p$g (default) Prompt $d$q$g ({date}=>) Chapter 3 adds (50 slides)CTEC 11037

The PROMPT Command  PROMPT command without parameters displays current drive and > sign  Changes the way the prompt is displayed and does not change its function  PROMPT command information: Is contained within CMD.EXE Syntax - PROMPT [text] Can include Metastrings Chapter 3 adds (50 slides)CTEC 11038

PROMPT Command Metastrings Chapter 3 adds (50 slides)CTEC 11039

PROMPT Command Metastrings Chapter 3 adds (50 slides)CTEC 11040

The ATTRIB Command  The ATTRIB command syntax: ATTRIB [+R | -R] [+A | -A ] [+S | -S] [+H | -H] [+I | -I] [drive:][path][filename] [/S [/D] [/L]] Displays or changes file attributes  Example: ATTRIB +R text.txt ATTRIB +RSH iosys.sys ATTRIB -R text.txt ATTRIB /? Chapter 3 adds (50 slides)CTEC 11041

The ATTRIB Command  Based on FAT file systems  Used to determine the attributes of a file  Used to change the attributes of a file  ATTRIB +R text.txt makes the file read only  ATTRIB -R text.txt Removes the read only  ATTRIB /? help on options Chapter 3 adds (50 slides)CTEC 11042

The ATTRIB Command A for Archive H for Hidden R for Read-only S for System Chapter 3 adds (50 slides)CTEC 11043

The ICACLS Command  The ICACLS command syntax 1.ICACLS name /save aclfile [/T] [/C] [/L] [/Q] 2.ICACLS directory [/substitute SidOld SidNew [...]] /restore aclfile [/C] [/L] [/Q] 3.ICACLS name /setowner user [/T] [/C] [/L] [/Q] 4.ICACLS name /findsid Sid [/T] [/C] [/L] [/Q] 5.ICACLS name /verify [/T] [/C] [/L] [/Q] 6.ICACLS name /reset [/T] [/C] [/L] [/Q] 7.ICACLS name [/grant[:r] Sid:perm[...]] [/deny Sid:perm [...]] [/remove[:g|:d]] Sid[...]] [/T] [/C] [/L] [/Q] [/setintegritylevel Level:policy[...]] Chapter 3 adds (50 slides)CTEC 11044

The ICACLS Command  The ICACLS command syntax (continued) 1.Stores the DACLs for the files and folders that match the name into aclfile for later use with /restore. Note that SACLs, owner, or integrity labels are not saved. 2.Applies the stored DACLs to files in directory. 3.Changes the owner of all matching names. This option does not force a change of ownership; use the takeown.exe utility for that purpose. 4.Finds all matching names that contain an ACL explicitly mentioning Sid. 5.Finds all files whose ACL is not in canonical form or whose lengths are inconsistent with ACE counts. 6.Replaces ACLs with default inherited ACLs for all matching files 7.See the help on this command for more detailed information! Chapter 3 adds (50 slides)CTEC 11045

The ICACLS Command  The ICACLS command syntax NOTES (continued) Sids may be in either numerical or friendly name form. If a numerical form is given, affix a * to the start of the SID. /T indicates that this operation is performed on all matching files/directories below the directories specified in the name. /C indicates that this operation will continue on all file errors. Error messages will still be displayed. /L indicates that this operation is performed on a symbolic link itself versus its target. /Q indicates that icacls should supress success messages. Chapter 3 adds (50 slides)CTEC 11046

The ICACLS Command  Examples: icacls c:\windows\* /save AclFile /T - Will save the ACLs for all files under c:\windows and its subdirectories to AclFile. icacls c:\windows\ /restore AclFile - Will restore the Acls for every file within AclFile that exists in c:\windows and its subdirectories. icacls file /grant Administrator:(D,WDAC) - Will grant the user Administrator Delete and Write DAC permissions to file. icacls file /grant *S-1-1-0:(D,WDAC) - Will grant the user defined by sid S Delete and Write DAC permissions to file. Chapter 3 adds (50 slides)CTEC 11047

The ICACLS Command  Based on NTFS file systems  Used to determine the attributes of a file  Used to change the attributes of a file  Has way too many different command syntaxes to list  Do a “help icacls” at the command prompt to see the different ways to use it Chapter 3 adds (50 slides)CTEC 11048

The ICACLS Command  -Nuser has no access  -Fuser has full access  -Muser has right to modify/delete file  -RXuser has read and execute rights  -Ruser has read-only access  -WUser has write-only access, can’t delete  -DUser can delete file  /denyDenied attribute access Chapter 3 adds (50 slides)CTEC 11049

END of Additional Information  HOMEWORK Lab 3 DOS Quiz 3 Chapter 3 adds (50 slides)CTEC 11050