Guide to Parallel Operating Systems with Microsoft Windows XP and Linux Chapter 5 Files and File Attributes.

Slides:



Advertisements
Similar presentations
CC SQL Utilities.
Advertisements

Getting Started: Ansoft HFSS 8.0
XP Tutorial 4 New Perspectives on Microsoft Windows XP 1 Microsoft Windows XP Personalizing Your Windows Environment Tutorial 4.
Pasewark & Pasewark Microsoft Office XP: Introductory Course 1 INTRODUCTION Lesson 1 – Microsoft Office XP Basics and the Internet.
© 2007 The McGraw-Hill Companies, Inc. All rights reserved Working with the Command- Line Interface Chapter 14.
Microsoft Office Illustrated Brief File Management Understanding.
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
A+ Guide to Software, 4e Chapter 4 Supporting Windows 2000/XP Users and Their Data.
XP New Perspectives on Microsoft Office Word 2003 Tutorial 1 1 Microsoft Office Word 2003 Tutorial 1 – Creating a Document.
Hands-On Microsoft Windows Server 2003 Administration Chapter 5 Administering File Resources.
Lab 03 Windows Operating Systems (Cont.). PYP002 Preparatory Computer ScienceWindows Operating System2 Objectives Develop a good understanding of 1. The.
70-270, MCSE/MCSA Guide to Installing and Managing Microsoft Windows XP Professional and Windows Server 2003 Chapter Nine Managing File System Access.
Module 6 Windows 2000 Professional 6.1 Installation 6.2 Administration/User Interface 6.3 User Accounts 6.4 Managing the File System 6.5 Services.
Chapter 2: The Visual Studio.NET Development Environment Visual Basic.NET Programming: From Problem Analysis to Program Design.
The sequence of folders to a file or folder is called a(n) ________.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment Chapter 7: Advanced File System Management.
MCDST : Supporting Users and Troubleshooting a Microsoft Windows XP Operating System Chapter 5: User Environment and Multiple Languages.
Chapter 11 Basic Windows and Windows Commands. Overview of what an Operating System does To identify and use common desktop and home screen icons To manipulate.
Installing Windows XP Professional Using Attended Installation Slide 1 of 41Session 2 Ver. 1.0 CompTIA A+ Certification: A Comprehensive Approach for all.
COMPREHENSIVE Windows Tutorial 2 Organizing Your Files.
1 Chapter Overview Creating User and Computer Objects Maintaining User Accounts Creating User Profiles.
Laboratory Exercise # 3 – Basic File Management Office Productivity Tools 1 Laboratory Exercise # 3 Basic File Management Objectives: At the end of the.
Course ILT Folder and file management Unit objectives Explore the contents of a hard disk and view file and folder attributes by using Windows Explorer.
XP Tutorial 6 New Perspectives on Microsoft Windows XP 1 Microsoft Windows XP Searching for Information Tutorial 6.
Chapter 7 Working with Files.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment, Enhanced Chapter 7: Advanced File System Management.
Computer Literacy BASICS: A Comprehensive Guide to IC 3, 5 th Edition Lesson 3 Windows File Management 1 Morrison / Wells / Ruffolo.
Microsoft Office 2013 ®® Managing Your Files. XP Objectives Explore the differences between Windows 7 and Windows 8 Plan the organization of files and.
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.
Project 3 File, Document, Folder Management, Windows XP Explorer Windows XP Service Pack 2 Edition Comprehensive Concepts and Techniques.
Microsoft Office 2003 Illustrated Introductory with Programs, Files, and Folders Working.
Understanding the Boot Process and Command Line
Getting Started with Application Software
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment Chapter 7: Advanced File System Management.
Windows Management Computer Literacy 1 Transition Plus Services.
®® Microsoft Windows 7 for Power Users Tutorial 13 Using the Command-Line Environment.
Introduction To Windows Operating Systems Manipulating Windows GUI
Interfacing with Computer ADE100- Computer Literacy Lecture 05.
Linux+ Guide to Linux Certification, Third Edition
XP 1 Microsoft Word 2002 Tutorial 1 – Creating a Document.
1. Chapter 25 Protecting and Preparing Documents.
XP New Perspectives on Windows XP Tutorial 1 Exploring the Basics.
Computing Fundamentals Module Lesson 3 — Changing Settings and Customizing the Desktop Computer Literacy BASICS.
Copyright © 2010 Wolters Kluwer Health | Lippincott Williams & Wilkins Introduction to Windows Chapter 2.
Week 3 Exploring Linux Filesystems. Objectives  Understand and navigate the Linux directory structure using relative and absolute pathnames  Describe.
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.
Project 6 Advanced File and Web Searching. 2 CHAPTER OBJECTIVES  Begin a new file or folder search, save a search, and find a file using a saved search.
Lesson 9: Windows Management Ms. Tracy Digital Literacy.
CMPF124: Basics Skills for Knowledge Workers Manipulating Windows GUI.
®® Microsoft Windows 7 for Power Users Tutorial 3 Managing Folders and Files.
XP Tutorial 8 New Perspectives on Microsoft Windows XP 1 Microsoft Windows XP Object Linking and Embedding Tutorial 8.
> > >> < <
Computer Literacy BASICS: A Comprehensive Guide to IC 3, 5 th Edition Lesson 3 Windows File Management 1 Morrison / Wells / Ruffolo.
®® Microsoft Windows 7 Windows Tutorial 2 Organizing Your Files.
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 7 Files and File Attributes.
Module 2 Part II Introduction To Windows Operating Systems Manipulating Windows GUI Introduction To Windows Operating Systems Manipulating Windows GUI.
Section 4 The Basics of Windows 7. Windows 7 Versions  Home Premium  Professional  Specialized.
File and File Systems Compiled by IITG Team Need to be reorganized and reworded.
1 Lesson 9 Windows Management Computer Literacy BASICS: A Comprehensive Guide to IC 3, 3 rd Edition Morrison / Wells.
Windows Management Computer Literacy 1 Transition Plus Services.
Chapter 2: The Visual Studio.NET Development Environment Visual Basic.NET Programming: From Problem Analysis to Program Design.
Computer Literacy BASICS: A Comprehensive Guide to IC 3, 5 th Edition Lesson 3 Windows File Management 1 Morrison / Wells / Ruffolo.
Chapter 2 – Introduction to Windows Operating System II Manipulating Windows GUI 1CMPF112 Computing Skills for Engineers.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment, Enhanced Chapter 7: Advanced File System Management.
Searching for Information
Lesson 9 Windows Management
File System Management
Presentation transcript:

Guide to Parallel Operating Systems with Microsoft Windows XP and Linux Chapter 5 Files and File Attributes

Guide to Parallel Operating Systems with Microsoft Windows XP and Linux2 Objectives Describe the contents of files and name the application that created a particular file Describe the use of file attributes Find files based on name or content

Guide to Parallel Operating Systems with Microsoft Windows XP and Linux3 Files and File Attributes General file handling topics –Identifying a file’s contents –Determining which application can edit a file –Using a file’s attributes to access files –Searching files by filenames or contents

Guide to Parallel Operating Systems with Microsoft Windows XP and Linux4 Contents Of Files File: discrete set of information OS stores program modules in file systems Save documents under filenames for future use Section learning goals –Recognizing the contents of files –Recognizing actions a given OS takes to open a file

Guide to Parallel Operating Systems with Microsoft Windows XP and Linux5 Contents of Files in Windows XP Filename: name plus “.” plus extension –Examples: requirements.htm, requirments.html Two types of extensions –Short extension is three characters (older convention) –Long extension exceeds three characters Extensions indicate the type of data stored in a file Windows XP appends extension to filename prefix

Guide to Parallel Operating Systems with Microsoft Windows XP and Linux6 Viewing File Extensions in Windows XP Windows tracks the extensions your PC uses Viewing registered file extensions –Click Start-> Control Panel -> Folder Options -> Files –Next, click the File Types tab –Example: MS Word documents have.doc extension Administrative rights required to modify extensions

Guide to Parallel Operating Systems with Microsoft Windows XP and Linux7 Viewing File Extensions in Windows XP (continued)

Guide to Parallel Operating Systems with Microsoft Windows XP and Linux8 File Associations XP identifies file associations by extension File association partly determines OS handling –Which icon appears for a file in Windows Explorer –Which commands appear in a file’s shortcut menu –Which application opens if a user double-clicks a file

Guide to Parallel Operating Systems with Microsoft Windows XP and Linux9 Icon Appearance in Windows Explorer File icon displayed is associated with the file’s type Set icons using File Types tab in Folder Options Changing a file icon –Go to Folder Options dialog box –Click the Advanced button on the File Types tab –Click the Change Icon button –Choose a new icon from the list

Guide to Parallel Operating Systems with Microsoft Windows XP and Linux10 Icon Appearance in Windows Explorer (continued)

Guide to Parallel Operating Systems with Microsoft Windows XP and Linux11 Commands in a File’s Shortcut Menu Right-click a file icon to view a shortcut menu Choices appearing on all file shortcut menus –Create a shortcut –Delete a file –Rename a file –View file properties Some shortcut menu items are object specific –Example: Open and Print are used in MS WordPad Bold items identify default response to double-click

Guide to Parallel Operating Systems with Microsoft Windows XP and Linux12 Commands in a File’s Shortcut Menu (continued)

Guide to Parallel Operating Systems with Microsoft Windows XP and Linux13 Opening Applications Default response to double-clicking a file icon –Windows XP opens file in associated application Example: response to double-clicking Document.doc –OS opens the file In WordPad WordPad is associated with.doc files Default action in Folder Options is defined as Open Changing the default action –Go to Folder Options dialog box –Select the file type you want –Click the Advanced button on the File Types tab –Choose new action (if available) in Actions list

Guide to Parallel Operating Systems with Microsoft Windows XP and Linux14 Opening Applications (continued)

Guide to Parallel Operating Systems with Microsoft Windows XP and Linux15 Applications in Windows XP Learn common extensions to quickly assess files Situations that show the value of knowing extensions –Evaluate file attached to before opening –View files on USB drive, infer application association Table 5-1 lists some common file extensions – Use the information to determine if you can edit a file Table 5-2 identifies programming source files

Guide to Parallel Operating Systems with Microsoft Windows XP and Linux16 Applications in Windows XP (continued)

Guide to Parallel Operating Systems with Microsoft Windows XP and Linux17 Applications in Windows XP (continued)

Guide to Parallel Operating Systems with Microsoft Windows XP and Linux18 Applications in Windows XP (continued)

Guide to Parallel Operating Systems with Microsoft Windows XP and Linux19 Applications in Windows XP (continued) Table 5-3 lists common Internet file extensions –Use information to troubleshoot browser problems Table 5-4 lists common file types used by Windows –Use information to work with Windows XP –Example: discuss a problem with a vendor

Guide to Parallel Operating Systems with Microsoft Windows XP and Linux20 Applications in Windows XP (continued)

Guide to Parallel Operating Systems with Microsoft Windows XP and Linux21 Applications in Windows XP (continued)

Guide to Parallel Operating Systems with Microsoft Windows XP and Linux22 Applications in Windows XP (continued)

Guide to Parallel Operating Systems with Microsoft Windows XP and Linux23 Contents of Files in Fedora Core 4 Fedora Core 4 and Windows XP file similarities –Filenames may have extensions –OS associations open file in a usable format Fedora Core 4 and Windows XP file differences –Extension not required to open a file from the CLI OS reads file header to check the file type –More compression and archive extensions available List of extensions:.bz2,.gz,.tar,.zip,.tgz Multimedia file extensions in Fedora Core 4 –.au,.wav,.gif,.html,.htm,.jpg,.pdf,.png,.txt,.xpm

Guide to Parallel Operating Systems with Microsoft Windows XP and Linux24 Contents of Files in Fedora Core 4 (continued) Configuration and installation packaging file types –.conf: a configuration file –.rpm: a Red Hat Package Manager Some extensions for programming files –.c: a C programming language source file –.sh: a shell script Inode: stores file and directory attributes ls –l /dev | more: lists file types in the devices folder file canoe: determines the canoe file type

Guide to Parallel Operating Systems with Microsoft Windows XP and Linux25 Contents of Files in Fedora Core 4 (continued)

Guide to Parallel Operating Systems with Microsoft Windows XP and Linux26 Contents of Files in Fedora Core 4 (continued)

Guide to Parallel Operating Systems with Microsoft Windows XP and Linux27 Viewing Files in Fedora Core 4 Use cat command to view or concatenate files –Example: cat –bsT canoe will open canoe for viewing more command syntax: more [-dlfpcsu] [file...] Some more command options –-num: specifies screen size in lines (an integer value) –-d: displays “[Press ‘h’ for instructions]” –-f: causes more to count logical lines (not folded) –-s: squeezes multiple blank lines into one more –dfs red_canoe: displays red_canoe contents

Guide to Parallel Operating Systems with Microsoft Windows XP and Linux28 Viewing Files in Fedora Core 4 (continued)

Guide to Parallel Operating Systems with Microsoft Windows XP and Linux29 Using File Attributes File attributes: labels describing and regulating files –Associated with every file in Windows XP –Maintained by components in Windows XP Windows XP handles file attributes most of the time Users can also manipulate file attributes –Learning the technique will prove useful

Guide to Parallel Operating Systems with Microsoft Windows XP and Linux30 Using File Attributes in the Windows XP CLI File attributes have binary values of 1 (on) or 0 (off) Four attributes in every DOS file –Read-only: allows file viewing, but not modification –Archive: set to on when file is created or modified –System: marks a file as a system file (a warning) –Hidden: hides a file from other commands

Guide to Parallel Operating Systems with Microsoft Windows XP and Linux31 Viewing the DOS File Attributes View attributes and access methods with ATTRIB ATTRIB syntax: ATTRIB [drive:][path][filename][/S] –[drive:][path][filename]: specifies file(s) to process –/S: matches files in current folders and subfolders Syntax is similar to DIR command Wildcards must be used in ATTRIB command –Without wildcards, no files will match

Guide to Parallel Operating Systems with Microsoft Windows XP and Linux32 Viewing the DOS File Attributes (continued)

Guide to Parallel Operating Systems with Microsoft Windows XP and Linux33 Setting the DOS File Attributes Use ATTRIB to show or change DOS file attributes ATTRIB syntax: ATTRIB [+R | -R] [+A | -A] [+S | -S] [+H | -H] [drive:][path][filename] [/S [/D]] –+: sets an attribute –-: clears an attribute –R: read-only file attribute –A: archive file attribute –S: system file attribute –H: hidden file attribute Example: ATTRIB +H Secret –Hides the directory named Secret

Guide to Parallel Operating Systems with Microsoft Windows XP and Linux34 Using the DIR Command with File Attributes Use DIR to view filenames and specified attributes Syntax: DIR [drive:][path][filename] [/A[[:]attributes]] –[drive:][path][filename]: specifies drive, directory, files –/A: displays files with specified attributes –Attributes: “D”,“R”, “H”, “A”, “S”, “-” (logical not prefix)

Guide to Parallel Operating Systems with Microsoft Windows XP and Linux35 Using the DIR Command with File Attributes (continued)

Guide to Parallel Operating Systems with Microsoft Windows XP and Linux36 Using the XCOPY Command with File Attributes XCOPY syntax: XCOPY source [destination] [/A | /M] [/H] [/R] [/K] Attribute options –/A: copies only files with the archive attribute set Used for differential backup as archive bit is not reset –/M: copies files with archive bit set; turns off archive bit Used in incremental backup as archive bit is reset –/H: copies hidden and system files –/R: overwrites read-only files –/K: copies attributes; read-only is typically reset

Guide to Parallel Operating Systems with Microsoft Windows XP and Linux37 Using File Attributes in the Windows XP GUI Additional attributes: Index, Compression, Encryption –Applies to folders or files residing on an NTFS volume Index –File/Folder indexed by Indexing Service when bit is set –Windows Indexing Service organizes files for search –Index created by Windows XP can be queried Compression –File or folder is compressed when bit is set Encryption –File or folder encrypted when bit is set

Guide to Parallel Operating Systems with Microsoft Windows XP and Linux38 Using File Attributes in the Windows XP GUI (continued)

Guide to Parallel Operating Systems with Microsoft Windows XP and Linux39 Using Compression in Windows XP Compressing files –Decreases file size –Reduces space that files use on your drives Compressing folders –Decreases space used by files stored in a folder Disadvantage of compression –Potential loss of performance

Guide to Parallel Operating Systems with Microsoft Windows XP and Linux40 Using Encryption in Windows XP Encryption: restricts file viewing Users who may view (decrypt) encrypted files –Individual who encrypted the file –Administrator (account has a global key) Encrypting File System (EFS) performs encryption –Installed automatically on Windows XP

Guide to Parallel Operating Systems with Microsoft Windows XP and Linux41 Using File Attributes in Fedora Core 4 lsattr: used to view attributes on extended file system Some attributes (meaning when bit is set) –A (“no Access time”): last access time not updated –a (“append only”) Set for file: only allows append operations Set for directory: files may only be added to directory lsattr command syntax: lsattr [options] [file(s)] Some lsattr command options –-d: lists directories like other files –-v: lists the file’s version/generation number

Guide to Parallel Operating Systems with Microsoft Windows XP and Linux42 Finding Files Ability to quickly locate files improves computing Scenario: you are asked to write a report –Startup strategy: use a similar report as a template –Problem: finding the old report on the hard drive –Possible solution: search for file using various names File searching techniques covered in next sections

Guide to Parallel Operating Systems with Microsoft Windows XP and Linux43 Finding Files in the Windows XP CLI Searches are based on filenames or file contents Pattern-matching methods used in content searches Three commands used to search for files –DIR –FIND –FINDSTR

Guide to Parallel Operating Systems with Microsoft Windows XP and Linux44 Finding Files with the DIR Command DIR command supports wildcards Two wildcards used: question (?), asterisk (*) Use ? to substitute for single character only –Example: DIR ?.cpp Command applies in current directory Lists all files beginning with any letter and ending in.cpp Use * to substitute for multiple unknown characters –*.* extends search to include all file extensions –Example: DIR h*.* Lists all files beginning with “h” in the current directory

Guide to Parallel Operating Systems with Microsoft Windows XP and Linux45 Finding Files with the FIND Command FIND syntax: FIND [/V] [/C] [/N] [/I] "string" [[drive:][path]filename[...]] –/V: displays all lines without the specified string –/C: displays the count of lines that contain the string –/N: displays line numbers with the displayed lines –/I: ignores the case of characters when searching Example: FIND /I "Good" *.* Redirection operators: “ ” for output –Example: FIND /I "Football" Football.txt Find lines with “Football” in input file, “Winners.txt” Store the output in a file named “Football.txt”

Guide to Parallel Operating Systems with Microsoft Windows XP and Linux46 Finding Files with the FIND Command (continued)

Guide to Parallel Operating Systems with Microsoft Windows XP and Linux47 Finding Files with the FINDSTR Command Use FINDSTR for more refined searches FINDSTR command syntax: FINDSTR [/B][/E][/L][/R][/S][/I][/X][/V][/N][/M][/O][/P] [/C:string] strings [[drive:][path]filename[...]] Some switches –/B: matches the pattern at the beginning of a line –/I: specifies that the search is not case sensitive –/P: skips files with nonprintable characters Example: FINDSTR /I "good fool" *.* –Finds files containing “good” or “fool”

Guide to Parallel Operating Systems with Microsoft Windows XP and Linux48 Finding Files with the FINDSTR Command (continued)

Guide to Parallel Operating Systems with Microsoft Windows XP and Linux49 Using the FINDSTR Command with Regular Expressions Regular expressions: specify patterns of text Notation uses metacharacters and literal characters –Metacharacter: symbol pointing to another character Examples: an operator or delimiter –Literal character: refers only to itself Examples: letters and numbers Some examples of regular expressions –w.*ing: strings starting with “w” and ending with “ing” –[ABX]: matches any occurrence of “A”, “B”, or “C”

Guide to Parallel Operating Systems with Microsoft Windows XP and Linux50 Using the FINDSTR Command with Regular Expressions (continued)

Guide to Parallel Operating Systems with Microsoft Windows XP and Linux51 Using the FINDSTR Command with Regular Expressions (continued)

Guide to Parallel Operating Systems with Microsoft Windows XP and Linux52 Finding Files in Windows XP with the Search Companion Versatile graphical search tool –Search by time, file type, filename (all or part) –Use wildcards High-level search options –Pictures, music, video –Documents (word processing, spreadsheet, etc.) –All files and folders –Computers or people Advanced options allow for refined searches Use Change preferences to alter the interface

Guide to Parallel Operating Systems with Microsoft Windows XP and Linux53 Finding Files in Windows XP with the Search Companion (continued)

Guide to Parallel Operating Systems with Microsoft Windows XP and Linux54 Finding Files in Fedora Core 4 How the find command works –Searches a directory tree by evaluating an expression –Lists the files that match the expression –Returns 0 if all files are processed successfully –Returns greater than 0 if an errors occurs Three elements in the search expression –Options: affect overall operation; always return true –Tests: these elements return a true or false value –Actions: have side effects; return a true or false value Elements are separated by operators; e.g., -and

Guide to Parallel Operating Systems with Microsoft Windows XP and Linux55 Finding Files in Fedora Core 4 (continued)

Guide to Parallel Operating Systems with Microsoft Windows XP and Linux56 Finding Files in Fedora Core 4 (continued) Some options used with the find command –-xdev: does not check directories on other file systems –-ctime n: file’s status last changed n * 24 hours ago –-empty: file is empty (either a regular file or a directory) –-links n: file has n links Example 1: find /etc –type d | more –Locates directories Example 2: find /etc –type l | more –Locates links

Guide to Parallel Operating Systems with Microsoft Windows XP and Linux57 Finding Files in Fedora Core 4 (continued)

Guide to Parallel Operating Systems with Microsoft Windows XP and Linux58 Finding Files in Fedora Core 4 (continued)

Guide to Parallel Operating Systems with Microsoft Windows XP and Linux59 Summary Filename: prefix plus “.” plus extension File extensions may have three or more characters File extensions help identify associations Access files in Windows XP with Windows Explorer View file contents in Fedora Core 4 using cat and more

Guide to Parallel Operating Systems with Microsoft Windows XP and Linux60 Summary (continued) File attributes describe and regulate file use File attribute tools in Windows XP: ATTRIB, DIR, XCOPY, Windows XP GUI File attribute tool in Fedora Core 4: lsattr Tools for finding files in Windows XP: DIR, FIND, FINDSTR, Windows Search Companion (GUI) Tool for finding files in Fedora Core 4: find command