CS 1308 Computer Literacy and the Internet File Systems and Directories.

Slides:



Advertisements
Similar presentations
Chapter 11 File Systems and Directories. 2 Chapter Goals Describe the purpose of files, file systems, and directories Distinguish between text and binary.
Advertisements

Chapter 4 : File Systems What is a file system?
1 Chapter 2 The Digital World. 2 Digital Data Representation.
1 Chapter 11: File-System Interface  File Concept  Access Methods  Directory Structure  File System Mounting  File Sharing  Protection  Chapter.
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 11: File-System Interface File Concept Access Methods Directory Structure.
Chapter 11 File Systems and Directories Nell Dale John Lewis.
Chapter 10: File-System Interface
Chapter 11 File-System Interface
Dr. Kalpakis CMSC 421, Operating Systems. Fall File-System Interface.
Chapter 11 File Systems and Directories. 2 File Systems File: A named collection of related data. File system: The logical view that an operating system.
File System CS105. File Systems A method of storing and organizing computer files and their data Usually reside on secondary storage devices – Hard disks.
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition, Chapter 10: File-System Interface.
11/7/06 1 Hofstra University - CSC005 Chapter 11 File Systems and Directories.
Chapter 11 File Systems and Directories. 2 Chapter Goals Describe the purpose of files, file systems, and directories Distinguish between text and binary.
1 File Systems Chapter Files 6.2 Directories 6.3 File system implementation 6.4 Example file systems.
Binary Expression Numbers & Text CS 105 Binary Representation At the fundamental hardware level, a modern computer can only distinguish between two values,
Chapter 10: File-System Interface Silberschatz, Galvin and Gagne ©2005 Operating System Concepts Chapter 10: File-System Interface File Concept.
File Concept l Contiguous logical address space l Types: Data: numeric, character, binary Program: source, object (load image) Documents.
Files & Folders Mrs. Marshell Faubion Middle School.
Communications Technology 2104 Mercedes Lahey. Bit 1. bit=From a shortening of the words “binary digit” 2. the basic unit of information for computers.
Why Program? Computer – programmable machine designed to follow instructions Program – instructions in computer memory to make it do something Programmer.
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition Chapter 10: File-System Interface.
Chapter 10 File System Interface
Chapter 11 File Systems and Directories Chapter Goals Describe the purpose of files, file systems, and directories Distinguish between text and.
Computer Systems Week 10: File Organisation Alma Whitfield.
Chapter 11 File Systems and Directories. 2 Chapter Goals Describe the purpose of files, file systems, and directories Distinguish between text and binary.
UNIX Unbounded 5 th Edition Amir Afzal Chapter 1 First Things First.
Data and Program Representation
Computer Systems Chapter 1 Pages Hardware-physical pieces Key hardware components in a computer system: The physical parts. – Central processing.
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition, Chapter 10: File-System Interface.
Silberschatz, Galvin and Gagne  Operating System Concepts File Concept Contiguous logical address space Smallest user allocation Non-volatile.
Data Representation and Storage Lecture 5. Representations A number value can be represented in many ways: 5 Five V IIIII Cinq Hold up my hand.
File Systems Long-term Information Storage Store large amounts of information Information must survive the termination of the process using it Multiple.
Chapter 10: File-System Interface 10.1 Silberschatz, Galvin and Gagne ©2011 Operating System Concepts – 8 th Edition 2014.
File Systems CSCI What is a file? A file is information that is stored on disks or other external media.
File System Interface. File Concept Access Methods Directory Structure File-System Mounting File Sharing (skip)‏ File Protection.
Operating Systems (CS 340 D) Dr. Abeer Mahmoud Princess Nora University Faculty of Computer & Information Systems Computer science Department.
Page 110/19/2015 CSE 30341: Operating Systems Principles Chapter 10: File-System Interface  Objectives:  To explain the function of file systems  To.
Chapter 11 File Systems and Directories. 2 File Systems File: A named collection of related data. File system: The logical view that an operating system.
File Systems (1). Readings r Reading: Disks, disk scheduling (3.7 of textbook; “How Stuff Works”) r Reading: File System Implementation ( of textbook)
 Computers store all information digitally as 0s and 1s; we refer to this collectively as “data.”  We’re used to dealing with physical objects in reality,
Operating Systems Foundation Computing Half the people you know are below average.
Describe the purpose of files, file systems, and directories Distinguish between text and binary files Identify various file types by their extensions.
Chapter 11 File Systems and Directories. 2 Chapter Goals Describe the purpose of files, file systems, and directories Distinguish between text and binary.
CPS120: Introduction to Computer Science File Systems and Directories Nell Dale John Lewis.
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 11: File-System Interface File Concept Access Methods Directory Structure.
Networking for Home and Small Businesses –.  Explain the binary representation of data.
CS 346 – Chapter 11 File system –Files –Access –Directories –Mounting –Sharing –Protection.
Chapter 10: File-System Interface Silberschatz, Galvin and Gagne ©2005 Operating System Concepts Chapter 10: File-System Interface File Concept.
A little hardware; a little software CS 139 – 08/29/07.
14.1 Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition Chapter 10 & 11: File-System Interface and Implementation.
2.1.4 Data Representation Units.
Chapter 11 File Systems and Directories. 2 File Systems (Chapter 11.1) File: 1. A named collection of related data. 2.smallest amount of information that.
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 11: File-System Interface File Concept Access Methods Directory Structure.
Binary a. express numbers in binary, binary-coded decimal (BCD), octal and hexadecimal;
Binary Numbers. Base 10 and Base 2  We normally work with numbers in base 10.  In base 10 we use the digits 0, 1, 2, 3, 4, 5, 6, 7, 8 and 9.  Everything.
Operating Systems (CS 340 D) Princess Nora University Faculty of Computer & Information Systems Computer science Department.
CSE Operating System Principles File Systems.
CC111 Lec#2 The System Unit The System Unit: Processing and Memory Lecture 2 Binary System.
Module 10: File-System Interface
Chapter 11: File-System Interface
File Systems and Directories
Week 1: File Systems and Directories
Chapter 10: File-System Interface
Files Management – The interfacing
Algorithms File Systems Lab Environment.
Module 10: File-System Interface
Lecture 4: File-System Interface
Chapter 5 File Systems -Compiled for MCA, PU
Presentation transcript:

CS 1308 Computer Literacy and the Internet File Systems and Directories

Chapter Goals 2 Describe the purpose of files, file systems, and directories Distinguish between text and binary files Identify various file types by their extensions Explain how file types improve file usage Define the basic operations on a file

Chapter Goals (cont.) 3 Discuss the issues related to file protection Describe a directory tree Create absolute and relative paths for a directory tree

File Systems 4 File A named collection of related data File system The logical view that an operating system provides so that users can manage information as a collection of files Directory A named group of files

Text and Binary Files 5 Text file A file in which the bytes of data are organized as characters from the ASCII or Unicode character sets Binary file A file that contains data in a specific format, requiring interpretation

Text and Binary Files 6 The terms text file and binary file are somewhat misleading They seem to imply that the information in a text file is not stored as binary data Ultimately, all information on a computer is stored as binary digits These terms refer to how those bits are formatted: as chunks of 8 or 16 bits, interpreted as characters, or in some other special format

File Types 7 Most files, whether they are in text or binary format, contain a specific type of information For example, a file may contain a Java program, a JPEG image, or an MP3 audio clip The kind of information contained in a document is called the file type Most operating systems recognize a list of specific file types

File Types 8 File names are often separated, usually by a period, into two parts Main name File extension The file extension indicates the type of the file Figure 11.1 Some common file types and their extensions

File Operations 9 Create a file Delete a file Open a file Close a file Read data from a file Write data to a file Reposition the current file pointer in a file Append data to the end of a file Truncate a file (delete its contents) Rename a file Copy a file

File Protection 10 In multiuser systems, file protection is of primary importance We don’t want one user to be able to access another user’s files unless the access is specifically allowed A file protection mechanism determines who can use a file and for what general purpose

File Protection 11 A file’s protection settings in the Unix operating system is divided into three categories Owner Group World Page 356

Directory Trees 12 A directory of files can be contained within another directory The directory containing another is usually called the parent directory, and the one inside is called a subdirectory Directory tree A logical view of a file system; a structure showing the nested directory organization of a file system Root directory The directory at the highest level

Directory Trees 13 Figure 11.4 A Windows directory tree

Directory Trees 14 At any point in time, you can be thought of as working in a particular location (that is, a particular subdirectory) Working directory The subdirectory in which you are working

Figure 11.5 A Unix Directory Tree 15

Path Names 16 Path A text designation of the location of a file or subdirectory in a file system, consisting of the series of directories through which you must go to find the file Absolute path A path that begins at the root and specifies each step down the tree until it reaches the desired file or directory Relative path A path name that begins at the current working directory

Path Names 17 Examples of absolute path C:\Program Files\MS Office\WinWord.exe C:\My Documents\letters\applications\vaTech.doc C:\My Documents\images\background.jpg C:\Windows\System\QuickTime Suppose the current working directory is C:\My Documents\letters Then the following relative path names could be used cancelMag.doc applications\calState.doc. (current directory.. (parent directory)../images/background.jpg (means up to the parent, down to images, then find file)

CS Computer Fluency 18 Common abbreviations kb – kilobits (1024 bits) Bits are used more in network transmission speeds kB –kiloBytes (1024 bytes) Notice the capital B Sometimes the K is capitalized, too, for either the kilobits or kilobytes mb – megabits ( bits) MB – megaBytes ( bytes) Gb – gigabits (2 30, about a billion bits) GB – gigaBytes (2 30, about a billion Bytes)

CS Computer Fluency 19 About how many… 850 kilobyte pictures can I put on my 128MB flash memory? 30MB songs can I put on my 40GB iPod? Bits are there on my 700MB CD?

Graphical views of file systems 20 Windows Webspace A graphical view of a unix system