Introducing UNIX and Linux |
UNIX and Linux Design and OrganisationOverview |
FilesOn any machine there will be a large amount of information (or data) that must be stored, including programs, text, and the UNIX operating system itself. Each unit of data - which may be small (for instance, a few words of text) or large (like parts of the UNIX operating system itself) - is stored in a file. Files are simply sequences of bytes, stored somewhere on the system, perhaps on magnetic disks, CD-ROMs, or other storage devices. We are not interested in exactly where the file is stored, merely in its contents. Each file has a name, which should consist of any letter, digit, or the characters . (period), - (minus sign), or _ (underscore). Other characters are also acceptable in a filename, but are discouraged in order to promote clarity. When we use files, we will normally refer to them by name. Some examples are:
|
Copyright © 2002 Mike Joy, Stephen Jarvis and Michael Luck