Hour 10. Files and Directories

Files in your operating system provide a convenient storage metaphor for data: The OS provides a name for the data (a filename) and an organizational structure so that you can find the data later. This structure is called a file system. Your computer's file system then organizes files into groups called directories— sometimes called folders. These directories can store files or other directories.

This nesting of directories inside directories provides a tree-like structure to the file system on your computer. Each file is part of a directory, and each directory is part of a parent directory. In addition to providing an organizational structure for your files, the operating system also stores data about the file: ...

Get Sams Teach Yourself Perl in 24 Hours now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.