Chapter 5: Accessing Files and Directories

Media:

Chapter Overview
5.1 The File System
5.1.1 Class File Tree Structure
5.1.2 How Directories Get Created
Common UNIX Directories
5.1.3 Class File Tree Structure
Directory Tree
Folder Relationships
5.2 Directory Paths
5.2.1 Solar System Hierarchy
Folder Relationships
5.2.2 Path to Coffees
5.2.3 Class File Tree Structure
Absolute Pathname Examples
Relative Pathname Examples
Pathnames Exercise
5.3 Navigating the File System
5.3.1 Command-Line Syntax
UNIX Syntax Rules
UNIX Command Examples
5.3.2 Using the pwd Command
5.3.3 Using the cd Command
Using Navigation Shortcuts
5.4 Listing Directory Contents
5.4.1 Using the ls command
Class File Tree Structure
Using the ls command
5.4.2 Using the ls -a Command
Displaying Hidden Files
5.4.3 File Type Symbols
Using the -F Command
Displaying File Types
5.4.4 Directory Information
Detailed Information from the ls -l Command
Displaying a Long Listing
5.4.5 Using the ls -l and ls -ld Commands
5.4.6 Listing Directories Recursively
5.5 Identifying and Using Metacharacters
5.5.1 Metacharacters
5.5.2 The ls Command with the Asterisk
Files within the Current Directory
The ls Command with the Question Mark
Using the ls Command with the Square Brackets
Using the Semicolon to Separate Commands
Using Metacharacters
Chapter Summary

Chapter Quiz