11.1 File Concept
- What is a file?
- What are some of the typical file attributes?
- What is a directory?
- What are some of the file information a directory would keep?
- Name and explain the six common operations for a file.
- Once a file is “open”, that is, ready for programs to access, the file system keeps track of a few pieces
of information for each file. Name and explain the four pieces of information listed in the text. - What is the relation, if any, between these four pieces of information and the typical file information kept by a directory?
- Unix/Linux view files as a stream of bytes. Explain how this concept (stream of bytes) can be used to describe various types of files such as text, executable (binary), image, and others.
11.2 Access Methods
- Explain how sequential access works.
- Explain how direct access works.
- Try to explore the relation, if any, between direct access file and the Linux view of stream file.
- We also talked about random access method. Explore the relation between random access and direct access files.
11.3 Directory and Disk Structure
- Explain general structure of a directory system.
- What kinds of information does a directory contain?
- How do we traverse a directory system?
11.6 Protection
- The textbook listed six types of common accesses to a file. Explain the meaning of each.
- Explain the concepts of owner, group, and the universe in the file protection context.
- How does file protection work in Linux?
- How to set a file in Linux to be readable, writable, and executable by the owner only? By the group and owner? By the owner, group, and the universe?