Lecture 1
Lecture 1
File Concept
• Files are the building blocks of any operating system.
• When you execute a command in UNIX:
1)the UNIX kernel fetches the corresponding
executable file from a file system,
2)loads its instruction text to memory,
3) creates a process to execute the command on
your behalf.
• In the course of execution, a process may read from
or write to files. All these operations involve files.
• Hence ,the design of an operating system always
begins with an efficient file management system
File Types
A file in a UNIX or POSIX system may be one of
the following types:
• regular file
• directory file
• FIFO file
• Character device file
• Block device file
What is POSIX???
• POSIX (Portable Operating System Interface) is a
set of standard operating system interfaces based
on the Unix operating system.
• The need for standardization arose because
enterprises using computers wanted to be able to
develop programs that could be moved among
different manufacturer's computer systems
without having to be recoded. Unix was selected
as the basis for a standard system interface.
• The POSIX interfaces were developed by the
Institute of Electrical and Electronics Engineers
(IEEE).
• POSIX.1 is the standard for an application
program interface in the C language.
• POSIX.2 is the standard shell and utility
interface
Regular file