File Paths *referenced from

Slides:



Advertisements
Similar presentations
The Web Wizards Guide to HTML Chapter Four All About Hyperlinks.
Advertisements

XP 1 Developing a Basic Web Site Tutorial 2: Web Site Structures & Links.
Developing a Web Site: Links Using a link is a quicker way to access information at the bottom of a Web page than scrolling down A user can select a link.
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.
Exploring the UNIX File System and File Security
MCT260-Operating Systems I Operating Systems I Navigating the File System.
XP Adding Hypertext Links to a Web Page. XP Objectives Create hypertext links between elements within a Web page Create hypertext links between Web pages.
1 File Systems Chapter Files 6.2 Directories 6.3 File system implementation 6.4 Example file systems.
XP Managing Your Files 1. XP Managing Your Files 2 Objectives Develop file management strategies Explore files and folders Create, name, copy, move, and.
Chapter 5 Accessing Files and Directories. How Directories Get Created OS installation: usr, dev, etc, export, kernel and others places to store installation.
Trees. 2 Definition of a tree A tree is a node with a value and zero or more children Depending on the needs of the program, the children may or may not.
The UNIX File System.
Guide To UNIX Using Linux Third Edition
Announcement #1 1 Lecture 9. Announcement #2  Midterm exam will be on Oct. 12 (Tuesday)  pm – 1.45 pm  Exam will cover all materials till Oct.
SD2520 Databases using XML and JQuery
1 Deploying a Web Application. 2 Virtual Directories Web servers map URLs to directories in their file systems. Called virtual directories. Normally one.
 AFS name space managed as mini-file systems (aka Volumes)  AFS Mount Points are the equivalent of NTFS Junctions and DFS Referrals which are stored.
Guide To UNIX Using Linux Fourth Edition
Chapter 4 Operating Systems and File Management. 4 Chapter 4: Operating Systems and File Management 2 Chapter Contents  Section A: Operating System Basics.
Chapter 11 File Systems and Directories. 2 Chapter Goals Describe the purpose of files, file systems, and directories Distinguish between text and binary.
Lesson 7-Creating and Changing Directories. Overview Using directories to create order. Managing files in directories. Using pathnames to manage files.
Chapter Three Designing The File System. Chapter Objectives Describe the components of the NetWare file system Describe the purpose of each NetWare-created.
4 1 Operating System Activities  An operating system is a type of system software that acts as the master controller for all activities that take place.
XP New Perspectives on XML Tutorial 6 1 TUTORIAL 6 XSLT Tutorial – Carey ISBN
XP 1 CREATING AN XML DOCUMENT. XP 2 INTRODUCING XML XML stands for Extensible Markup Language. A markup language specifies the structure and content of.
WORKING WITH XSLT AND XPATH
Mohammed Mohsen Links Links are what make the World Wide Web web-like one document on the Web can link to several other documents, and those.
Hyperlinks. Linking pages…Hyperlinks 2 Lecture 8  Hyperlink “A clickable HTML element that will direct the web browser to display a different Web page.
Operating Systems Programs for performing surgery NOT! –Sorry I got carried away.
Developing a Web Site. Web Site Navigational Structures A storyboard is a diagram of a Web site’s structure, showing all the pages in the site and indicating.
Database-Driven Web Sites, Second Edition1 Chapter 5 WEB SERVERS.
COMPSCI 210 Semester Tutorial 7 – C Exercises.
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.
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.
1 John Magee 9 November 2012 CS120 Lecture 17: The World Wide Web and HTML Web Publishing.
1 Administering Shared Folders Understanding Shared Folders Planning Shared Folders Sharing Folders Combining Shared Folder Permissions and NTFS Permissions.
Storing data on your computer & network. Storage devices Hardware Hard drive Flash drive Tape File server (HD) SAN NAS Software System software Windows.
Chapter Two Exploring the UNIX File System and File Security.
Internal and External Links Web Design – Section 3-6 Part or all of this lesson was adapted from the University of Washington’s “Web Design & Development.
Tutorial 2 Developing a Web Site. XP Objectives Learn how to storyboard various Web site structures Create links among documents in a Web site Understand.
Dreamweaver: Introduction and Basics. Introduction 4 Dreamweaver is a WYSIWYG HTML editor 4 WYSIWYG = What You See Is What You Get. 4 BUT..
XP 1 HTML Tutorial 2: Developing a Basic Web Site.
8-2 What is a program? What is a “Window Manager” ? What is a “GUI” ? How do you navigate the Unix directory tree? What is a wildcard? Readings: See CCSO’s.
Chapter 3 Understanding Ant datatypes and properties.
IST 222 Day 3. Homework for Today Take up homework and go over Go to Microsoft website and check out their hardware compatibility list.
ET710 HTML Paths: Dot Dot Slash Notation. Directory (folder) Hierarchy. We can think of a computer’s file structure as a tree with branches. The trunk.
Internal and External Links Web Design – Section 3-6 Part or all of this lesson was adapted from the University of Washington’s “Web Design & Development.
Site Organization. The Need to Organize Site Files Thus far, we have placed all our site files into the main (root) website folder. As a website becomes.
CSCI N241: Fundamentals of Web Development Copyright ©2006  Department of Computer & Information Science Navigation, Links & Images.
HTML Chapter 4 Source: CSE 190 M (Web Programming) lecture notes, es/slides/lecture02-basic_xhtml.html.
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.
PHP Form Processing * referenced from
Chapter 8 File Systems FAT 12/16/32. Defragmentation Defrag a hard drive – Control Panel  System and Security  Administration tools  Defrag hard drive.
1 Introduction to Shared Folders Shared folders provide network users access to files. Users connect to the shared folder over the network. Users must.
Naming CSCI 6900/4900. Names & Naming System Names have unique importance –Resource sharing –Identifying entities –Location reference Name can be resolved.
Tanenbaum & Van Steen, Distributed Systems: Principles and Paradigms, 2e, (c) 2007 Prentice-Hall, Inc. All rights reserved DISTRIBUTED SYSTEMS.
Dr. Lam TECM  Design thinking/web design process  Content, content strategy, and writing for the web  Layout and grids  Visual design  Typography.
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.
Slide 1 Structured Naming. Slide 2 Given Credit Where It Is Due The following slides are borrowed from Dr. Katerina Goseva-Popstojanova at West Virginia.
COMP Streams and File I/O
Site Organization.
Exploring the UNIX File System and File Security
Managing Your Files.
Site Organization.
CNIT 131 HTML5 – Anchor/Link.
Organizing Files What is a file?
Week 1: File Systems and Directories
Objectives To define files and folders.
Azure Information Protection
Presentation transcript:

File Paths *referenced from And

What Is a Path? A file system stores and organizes files on some form of media, generally one or more hard drives, in such a way that they can be easily retrieved. Most file systems in use today store the files in a tree (or hierarchical) structure. At the top of the tree is one (or more) root nodes. Under the root node, there are files and directories (folders in Microsoft Windows). Each directory can contain files and subdirectories, which in turn can contain files and subdirectories, and so on, potentially to an almost limitless depth.

What Is a Path? The following figure shows a sample directory tree containing a single root node. Microsoft Windows supports multiple root nodes. Each root node maps to a volume, such as C:\ or D:\. The Solaris OS supports a single root node, which is denoted by the slash character,

A file is identified by its path through the file system, beginning from the root node. For example, the statusReport file in the previous figure is described by the following notation in the Solaris OS: /home/user2/statusReport In Microsoft Windows, statusReport is described by the following notation: C:\home\user2\statusReport

The character used to separate the directory names (also called the delimiter) is specific to the file system: The Solaris OS and Unix systems (most web servers use Unix) uses the forward slash (/), and Microsoft Windows uses the backslash slash (\).

Relative or Absolute? A path is either relative or absolute. An absolute path always contains the root element and the complete directory list required to locate the file. For example,/home/user2/statusReport is an absolute path. All of the information needed to locate the file is contained in the path string.

A relative path needs to be combined with another path in order to access a file. For example, user1/foo is a relative path. Without more information, a program cannot reliably locate the user1/foo directory in the file system. Relative paths use../ to move up the directory tree

Exercises Use the following directory tree to answer the questions in this section:

What is the root? D: What is the absolute path to Base? D:\Data\Final\Base What is the absolute path to Infrastructure? D:\Data\Final\Infrastructure What information is needed prior to constructing a relative path to these two files? directory tree relationship position Assume a file in Posters needs to reference Base. What would be its relative path?../Date/Final/Base Assume the file is now in Base. What is the relative path to Infrastructure? /Infrastructure

Use the following image of a directory tree to answer the questions on the following slides:

What is the root? life What is the absolute path to german_shepard.jpg? Life\animals\dogs\large\german_sgeepard.jpg dog_gallery.html needs to reference kitty.jpg. Write down the absolute and relative paths that could be used? Life\animals\cats\long_haired\kitty.jpg../cats/long_haired/kitty.jpg Why should we never use absolute paths? Microsoft Windows uses the backslash slash (\). dog_gallery.html needs to reference labrador_retriever.jpg. Write down the absolute and relative paths. medium/ labrador_retriever.jpg

IMPORTANT Place this powerpoint with all completed questions/answers in your myWork folder under Unit 1 When you have been taught how to create links you will be responsible for creating a link to this pptx and uploading it your class website Don’t forget…your website will be marked at the end of each unit (unless otherwise stated) for completeness, design and functionality A total of 10 APP marks will be assigned each time